Done Done Course Overview What is AI? What are the Major Challenges?

Slides:



Advertisements
Similar presentations
Artificial Intelligence: Knowledge Representation
Advertisements

Course Overview What is AI? What are the Major Challenges? What are the Main Techniques? Where are we failing, and why? Step back and look at the Science.
Heuristic Search techniques
Presentation on Artificial Intelligence
Search Techniques MSc AI module. Search In order to build a system to solve a problem we need to: Define and analyse the problem Acquire the knowledge.
Adversarial Search Chapter 5.
Chapter 6: The physical symbol system hypothesis
Games CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
An Introduction to Artificial Intelligence. Introduction Getting machines to “think”. Imitation game and the Turing test. Chinese room test. Key processes.
Use “Search” for Pathfinding FactorySchool Library Hospital Park Newsagent University church Example from Alison Cawsey’s book start finish.
Structures and Strategies for State Space Search
Ch1 AI: History and Applications Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2011.
Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at.
Artificial Intelligence Dr. Paul Wagner Department of Computer Science University of Wisconsin – Eau Claire.
Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at.
1 State Space of a Problem Lecture 03 ITS033 – Programming & Algorithms Asst. Prof.
Artificial Intelligence
Do you drive? Have you thought about how the route plan is created for you in the GPS system? How would you implement a cross-and- nought computer program?
Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at.
Game Playing. Towards Intelligence? Many researchers attacked “intelligent behavior” by looking to strategy games involving deep thought. Many researchers.
Minimax with Alpha Beta Pruning The minimax algorithm is a way of finding an optimal move in a two player game. Alpha-beta pruning is a way of finding.
Games. Adversaries Consider the process of reasoning when an adversary is trying to defeat our efforts In game playing situations one searches down the.
Introduction to Artificial Intelligence Mitch Marcus CIS391 Fall, 2008.
So what is AI?.
Adversarial Search Chapter Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time limits.
Today’s Topics Playing Deterministic (no Dice, etc) Games –Mini-max –  -  pruning –ML and games? 1997: Computer Chess Player (IBM’s Deep Blue) Beat Human.
KNOWLEDGE BASED SYSTEMS
CSCI 4310 Lecture 2: Search. Search Techniques Search is Fundamental to Many AI Techniques.
Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at.
PART-2 CSC 450-AI by Asma Tabuk 1 CSC AI Informed Search Algorithms College of Computer and Information Technology Department of Computer.
Introduction to Artificial Intelligence Heshaam Faili University of Tehran.
Chap 4: Searching Techniques Artificial Intelligence Dr.Hassan Al-Tarawneh.
Brief Intro to Machine Learning CS539
Game playing Types of games Deterministic vs. chance
Game Playing Why do AI researchers study game playing?
Instructor: Vincent Conitzer
Chapter 11: Artificial Intelligence
Done Done Course Overview What is AI? What are the Major Challenges?
CS 460 Spring 2011 Lecture 4.
Artificial Intelligence (AI)
CS Fall 2016 (Shavlik©), Lecture 11, Week 6
Adversarial Search Chapter 5.
Chap 4: Searching Techniques Artificial Intelligence Dr.Hassan Al-Tarawneh.
Adversarial Search.
Artificial Intelligence and Searching
Artificial Intelligence (AI)
Done Done Course Overview What is AI? What are the Major Challenges?
Instructor: Vincent Conitzer
CSE (c) S. Tanimoto, 2001 Search-Introduction
CO Games Development 1 Week 8 Depth-first search, Combinatorial Explosion, Heuristics, Hill-Climbing Gareth Bellaby.
Approaches to search Simple search Heuristic search Genetic search
Russell and Norvig: Chapter 3, Sections 3.1 – 3.3
CPSC 322 Introduction to Artificial Intelligence
Chap 4: Searching Techniques
Solving problems by searching
Instructor: Vincent Conitzer
CSE (c) S. Tanimoto, 2002 State-Space Search
Mini-Max search Alpha-Beta pruning General concerns on games
Introduction to Artificial Intelligence
State-Space Searches.
State-Space Searches.
Search.
CSE (c) S. Tanimoto, 2004 State-Space Search
Search.
Introduction to Artificial Intelligence
Artificial Intelligence and Searching
State-Space Searches.
Artificial Intelligence and Searching
Adversarial Search Chapter 6 Section 1 – 4.
Solving problems by searching
Presentation transcript:

Done Done Course Overview What is AI? What are the Major Challenges? What are the Main Techniques? Where are we failing, and why? Step back and look at the Science Step back and look at the History of AI What are the Major Schools of Thought? What of the Future? Done

Course Overview What are the Main Techniques? (How do we do it?) What is AI? What are the Major Challenges? What are the Main Techniques? (How do we do it?) Where are we failing, and why? Step back and look at the Science Step back and look at the History of AI What are the Major Schools of Thought? What of the Future?

Course Overview What are the Main Techniques? (How do we do it?) What is AI? What are the Major Challenges? What are the Main Techniques? (How do we do it?) Where are we failing, and why? Step back and look at the Science Step back and look at the History of AI What are the Major Schools of Thought? What of the Future? Search Logics (knowledge representation and reasoning) Planning and acting Bayesian belief networks Neural networks Evolutionary computation Reinforcement learning Language parsing and speech techniques Statistical methods (language, learning)

Course Overview What are the Main Techniques? (How do we do it?) What is AI? What are the Major Challenges? What are the Main Techniques? (How do we do it?) Where are we failing, and why? Step back and look at the Science Step back and look at the History of AI What are the Major Schools of Thought? What of the Future? Search Logics (knowledge representation and reasoning) Planning and acting Bayesian belief networks Neural networks Evolutionary computation Reinforcement learning Language parsing and speech techniques Statistical methods (language, learning)

Use “Search” for Pathfinding School Factory Hospital Newsagent church Library Park University Example from Alison Cawsey’s book

Use “Search” for Pathfinding School Factory start Hospital Newsagent church Library Park University finish Example from Alison Cawsey’s book

Use “Search” for Pathfinding library school hospital newsagent park factory university church

Breadth First Search library school hospital newsagent park factory university church

Breadth First Search library school hospital newsagent park factory university church

Breadth First Search library school hospital newsagent park factory university church Put things on the back of the list “to visit later”

Depth First Search library school hospital newsagent park factory university church

Depth First Search library school hospital newsagent park factory university church

Depth First Search library school hospital newsagent park factory university church Put things on the front of the list “to visit later”

Breadth vs. Depth Which is better?

Breadth vs. Depth Which is better? library school university newsagent park factory church stadium grocers hospital market bridge fountain

Breadth vs. Depth Which is better? library school market newsagent park factory church stadium grocers hospital bridge university

Breadth vs. Depth Which is better? Depends on problem Breadth usually needs a lot more memory Remember all the bits you need to expand next Breadth could be good if There are many long dead ends, But one very short successful path Depth could be good if There are many successful paths But all are quite long Can also combine – set a depth limit

What about a big open space? See demo… In Practical 4 Break it up into squares Each node has 8 children (Be careful about looping) That’s an awfully big tree! Need some clever tricks… How would a human do it? Heuristics Search we did before is called “blind” or “brute force” (not clever) Heuristic is a clever rule of thumb

Hill-climbing with Heuristic Heuristic: how close to goal School Factory finish start Hospital Newsagent church Library Park University

Hill-climbing with Heuristic Heuristic: how close to goal Library 9 School 7 Hospital 5 finish Newsagent 0 Park 6 Factory 5 University 3 Church 4

Hill-climbing with Heuristic Heuristic: how close to goal School Factory start Hospital Newsagent church Library Park University finish

Hill-climbing with Heuristic Heuristic: how close to goal Library 9 School 7 Hospital 5 Newsagent 4 Park 2 Factory 5 University 0 Church 4 finish

Hill-climbing with Heuristic Heuristic: how close to goal from Russell and Norvig’s book

Best first Search finish Library 9 School 7 Hospital 5 Newsagent 4 Heuristic: how close to goal Order the list of nodes “to visit later” Do best first But try others later Very good, e.g. in open space Doesn’t consider how far we’ve come though A* - more in practical Library 9 School 7 Hospital 5 Newsagent 4 Park 2 Factory 5 University 0 Church 4 finish

Search is an abstract technique…

Remember: General Problem Solving

Remember: General Problem Solving Problem formulation Initial situation Goal situation Actions that can be done +cost of action Constraints Task: Find the best sequence of permissible actions that can transform the initial situation into the goal situation. 6 1 7 3 4 5 8 2

Search is an abstract technique… Jugs problem Two jugs, 4 litre and 3 litre Want to get 2 litres in 4 litre jug Formulate problem Can represent state as (0,0) or (4,0) or (4,2)… Actions: Fill 4 litre ( _ , _ )  ( 4 , _ ) Fill 3 litre ( _ , _ )  ( _ , 3 ) Empty 4 litre ( _ , _ )  ( 0 , _ ) Empty 3 litre ( _ , _ )  ( _ , 0 ) What else?

Search for games: Minimax

Search for games: Minimax

Alpha-Beta pruning example

Alpha-Beta pruning example Alpha value I get at least this

Alpha-Beta pruning example Alpha value I get at least this Beta value I get at most this (if I go here)

Alpha-Beta pruning example Beta value I get at most this (if I go here)

Alpha-Beta pruning example

Alpha-Beta pruning example

Alpha-Beta pruning example No question about 3 now

What about real (hard) games? So far we searched all the way to the end of the game Not feasible in chess, branching factor 35 So far we didn’t use heuristics Do a limited lookahead Distance to goal? Evaluate the board state Requires intelligence: pieces, their positions, and stage in game How much lookahead? Modern computer? Alpha beta can give about double 4 moves ≈ human novice 8 moves ≈ human master 12 moves ≈ Deep Blue, Kasparov Deep Blue had extra tricks to look further on interesting paths Go Branching factor ≈ 300… forget it! Use databases of patterns Explain combinatorial explosion Exponential growth

What is search good for? Pretty much everything! Pathfinding, puzzles, general problem solver, games Scheduling deliveries Arranging the CS1013 timetable Diagnostic systems find a set of malfunctions that explain the symptoms Speech recognition find the right sequence of words Finding templates/models to match a visual scene Learning is search for a hypothesis Planning systems Find a sequence of actions that achieves a given goal We will look at this next week

Defence A big user of AI. "... the deployment of a single logistics support aid called DART during the Desert Shield/Storm Campaign paid back all US government investment in AI/KBS research over a 30 year period." Tate A. Smart Planning. ARPI Proc. 1996.

Search is an abstract technique… What are we really doing here? What is the science of abstraction? Mathematics Look at problems abstractly See that they’re the same Use one technique for many problems

Note on Heuristics Interesting because human heuristics go awry Hard to come up with a good heuristic Often use human intelligence Is the chess computer smart? What about TD-Backgammon Try the Missionaries and Cannibals http://www.learn4good.com/games/puzzle/boat.htm Interesting because human heuristics go awry Computer is not confused Remember the first law 6 1 7 3 4 5 8 2 1 2 3 4 5 6 7 8

Recap: What have you learned about “Search” “Blind” or “brute force” techniques Breadth first Depth first Heuristic techniques Hill-climbing Best first A* - more in practical General problem solving Game playing Minimax Alpha-Beta pruning Search can apply to many diverse problems Makes some tasks simple for computers Heuristics need some intelligence Musings… Computer: Some simple tricks can go a long way Power of computer to store so much and go so fast Just like life – simple blocks

Course Overview What are the Main Techniques? (How do we do it?) What is AI? What are the Major Challenges? What are the Main Techniques? (How do we do it?) Where are we failing, and why? Step back and look at the Science Step back and look at the History of AI What are the Major Schools of Thought? What of the Future? Search Logics (knowledge representation and reasoning) Planning and acting Bayesian belief networks Neural networks Evolutionary computation Reinforcement learning Language parsing and speech techniques Statistical methods (language, learning)