George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving HEURISTIC SEARCH Luger: Artificial Intelligence,

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Ch 4. Heuristic Search 4.0 Introduction(Heuristic)
1 CS 385 Fall 2006 Chapter 4 Heuristic Search. 2 Heuristics eurisko ("I discover" in Greek) "the study of the methods and rules of discovery and invention."
Classic AI Search Problems
Using Heuristics in Games At that time two opposing concepts of the game called forth commentary and discussion. The foremost players distinguished two.
Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2011
ICS-271:Notes 6: 1 Notes 6: Game-Playing ICS 271 Fall 2008.
Artificial Intelligence
Problem-solving as search. History Problem-solving as search – early insight of AI. Newell and Simon’s theory of human intelligence and problem-solving.
CS 480 Lec 3 Sept 11, 09 Goals: Chapter 3 (uninformed search) project # 1 and # 2 Chapter 4 (heuristic search)
Structures and Strategies For Space State Search
MINIMAX SEARCH AND ALPHA- BETA PRUNING: PLAYER 1 VS. PLAYER 2.
HEURISTIC SEARCH ARTIFICIAL INTELLIGENCE 5th edition George F Luger
Mahgul Gulzai Moomal Umer Rabail Hafeez
CPSC 322 Introduction to Artificial Intelligence October 27, 2004.
CPSC 322 Introduction to Artificial Intelligence October 25, 2004.
1 Game Playing Chapter 6 Additional references for the slides: Luger’s AI book (2005). Robert Wilensky’s CS188 slides:
Artificial Intelligence
1 search CS 331/531 Dr M M Awais A* Examples:. 2 search CS 331/531 Dr M M Awais 8-Puzzle f(N) = g(N) + h(N)
1 Heuristic Search 4 4.0Introduction 4.1An Algorithm for Heuristic Search 4.2Admissibility, Monotonicity, and Informedness 4.3Using Heuristics in Games.
Uninformed Search Reading: Chapter 3 by today, Chapter by Wednesday, 9/12 Homework #2 will be given out on Wednesday DID YOU TURN IN YOUR SURVEY?
Problem Solving and Search in AI Heuristic Search
1 Heuristic Search 4 4.0Introduction 4.1An Algorithm for Heuristic Search 4.2Admissibility, Monotonicity, and Informedness 4.3Using Heuristics in Games.
Cooperating Intelligent Systems Informed search Chapter 4, AIMA 2 nd ed Chapter 3, AIMA 3 rd ed.
Structures and Strategies For Space State Search
Automated Reasoning ARTIFICIAL INTELLIGENCE 6th edition George F Luger
HEURISTIC SEARCH. Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited, 2005 Portion of the state space for tic-tac-toe.
1 Heuristic Search 4 4.0Introduction 4.1An Algorithm for Heuristic Search 4.2Admissibility, Monotonicity, and Informedness 4.3Using Heuristics in Games.
Heuristic Search Heuristic - a “rule of thumb” used to help guide search often, something learned experientially and recalled when needed Heuristic Function.
KU NLP Heuristic Search Heuristic Search and Expert Systems (1) q An interesting approach to implementing heuristics is the use of confidence.
Game Playing.
Search CSE When you can’t use A* Hill-climbing Simulated Annealing Other strategies 2 person- games.
The Predicate Calculus
October 3, 2012Introduction to Artificial Intelligence Lecture 9: Two-Player Games 1 Iterative Deepening A* Algorithm A* has memory demands that increase.
Heuristic Search In addition to depth-first search, breadth-first search, bound depth-first search, and iterative deepening, we can also use informed or.
Building Control Algorithms For State Space Search.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 9 of 14 Friday, 10 September.
Artificial Intelligence Tarik Booker. What we will cover… History Artificial Intelligence as Representation and Search Languages used in Artificial Intelligence.
CS 415 – A.I. Slide Set 5. Chapter 3 Structures and Strategies for State Space Search – Predicate Calculus: provides a means of describing objects and.
Structures and Strategies For Space State Search
1 CSE 4705 Artificial Intelligence Jinbo Bi Department of Computer Science & Engineering
George F Luger ARTIFICIAL INTELLIGENCE 5th edition Structures and Strategies for Complex Problem Solving Machine Learning: Social and Emergent Luger: Artificial.
George F Luger ARTIFICIAL INTELLIGENCE 5th edition Structures and Strategies for Complex Problem Solving HEURISTIC SEARCH Luger: Artificial Intelligence,
George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving Machine Learning: Symbol-Based Luger: Artificial.
Search exploring the consequences of possible actions.
HEURISTIC SEARCH.
CS 415 – A.I. Slide Set 6. Chapter 4 – Heuristic Search Heuristic – the study of the methods and rules of discovery and invention State Space Heuristics.
Game Playing. Introduction One of the earliest areas in artificial intelligence is game playing. Two-person zero-sum game. Games for which the state space.
George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving Machine Learning: Probabilistic Luger: Artificial.
Ch4 Heuristic Search Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2011.
Search (continued) CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
1 CSE 4705 Artificial Intelligence Jinbo Bi Department of Computer Science & Engineering
Knowledge Search CPTR 314.
George F Luger ARTIFICIAL INTELLIGENCE 5th edition Structures and Strategies for Complex Problem Solving Structures and Strategies For Space State Search.
George F Luger ARTIFICIAL INTELLIGENCE 5th edition Structures and Strategies for Complex Problem Solving HEURISTIC SEARCH Luger: Artificial Intelligence,
HEURISTIC SEARCH 4 4.0Introduction 4.1An Algorithm for Heuristic Search 4.2Admissibility, Monotonicity, and Informedness 4.3Using Heuristics in Games 4.4Complexity.
STRUCTURES AND STRATEGIES FOR STATE SPACE SEARCH 3 3.0Introduction 3.1Graph Theory 3.2Strategies for State Space Search 3.3Using the State Space to Represent.
STRUCTURES AND STRATEGIES FOR STATE SPACE SEARCH 3 3.0Introduction 3.1Graph Theory 3.2Strategies for State Space Search 3.3Using the State Space to Represent.
CMSC 421: Intro to Artificial Intelligence October 6, 2003 Lecture 7: Games Professor: Bonnie J. Dorr TA: Nate Waisbrot.
3.5 Informed (Heuristic) Searches This section show how an informed search strategy can find solution more efficiently than uninformed strategy. Best-first.
1 HEURISTIC SEARCH ( INFORMED SEARCH). 2  From Greek heuriskein, “to find”.  Of or relating to a usually speculative formulation serving as a guide.
1 HEURISTIC SEARCH ( INFOREMD SEARCH). 2  From Greek heuriskein, “to find”.  Of or relating to a usually speculative formulation serving as a guide.
For Monday Read chapter 4 exercise 1 No homework.
Biointelligence Lab School of Computer Sci. & Eng. Seoul National University Artificial Intelligence Chapter 8 Uninformed Search.
AI Classnotes #5, John Shieh, 2012
Iterative Deepening A*
Heuristic Search A heuristic is a rule for choosing a branch in a state space search that will most likely lead to a problem solution Heuristics are used.
Review session covering text book pages and
NIM - a two person game n objects are in one pile
Introduction to Artificial Intelligence Lecture 9: Two-Player Games I
Presentation transcript:

George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving HEURISTIC SEARCH Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, Introduction 4.1 An Algorithm for Heuristic Search 4.2Admissibility, Monotonicity, and Informedness 4.3Using Heuristics I n Games 4.4Complexity Issues 4.5Epilogue and References 4.6Exercises 1

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.1First three levels of the tic-tac-toe state space reduced by symmetry 2

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.2The “most wins” heuristic applied to the first children in tic-tac-toe. 3

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.3Heuristically reduced state space for tic-tac-toe. 4

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.4The local maximum problem for hill-climbing with 3-level look ahead 5

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.5The initialization stage and first step in completing the array for character alignment using dynamic programming. 6

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.6The completed array reflecting the maximum alignment information for the strings. 7

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.7A completed backward component of the dynamic programming example giving one (of several possible) string alignments. 8

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.8Initialization of minimum edit difference matrix between intention and execution (adapted from Jurafsky and Martin, 2000). 9

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited,

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Intention ntentiondelete I, cost 1 etentionreplace n with e, cost 2 exentionreplace t with x, cost 2 exenution insert u, cost 1 execution replace n with c, cost 2 Fig 4.9Complete array of minimum edit difference between intention and execution (adapted from Jurafsky and Martin, 2000) (of several possible) string alignments. 11

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited,

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.10Heuristic search of a hypothetical state space. 13

A trace of the execution of best_first_search for Figure 4.4 Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited,

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.11Heuristic search of a hypothetical state space with open and closed states highlighted. 15

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.12The start state, first moves, and goal state for an example-8 puzzle. 16

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.14Three heuristics applied to states in the 8-puzzle. 17

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.15The heuristic f applied to states in the 8-puzzle. 18

The successive stages of open and closed that generate this graph are: Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited,

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.16State space generated in heuristic search of the 8-puzzle graph. 20

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.17Open and closed as they appear after the 3rd iteration of heuristic search 21

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited,

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited,

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited,

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.18Comparison of state space searched using heuristic search with space searched by breadth-first search. The proportion of the graph searched heuristically is shaded. The optimal search selection is in bold. Heuristic used is f(n) = g(n) + h(n) where h(n) is tiles out of place. 25

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.19State space for a variant of nim. Each state partitions the seven matches into one or more piles. 26

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.20Exhaustive minimax for the game of nim. Bold lines indicate forced win for MAX. Each node is marked with its derived value (0 or 1) under minimax. 27

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.21Minimax to a hypothetical state space. Leafstates show heuristic values; internal states show backed-up values. 28

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.22Heuristic measuring conflict applied to states of tic-tac-toe. 29

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.23Two-ply minimax applied to the opening move of tic-tac-toe, from Nilsson (1971). 30

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.24Two ply minimax, and one of two possible MAX second moves, from Nilsson (1971). 31

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.25Two-ply minimax applied to X’s move near the end of the game, from Nilsson (1971). 32

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.26Alpha-beta pruning applied to state space of Fig States without numbers are not evaluated. 33

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.27Number of nodes generated as a function of branching factor, B, for various lengths, L, of solution paths. The relating equation is T = B(B L – 1)/(B – 1), adapted from Nilsson (1980). 34

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.28Informal plot of cost of searching and cost of computing heuristic evaluation against informedness of heuristic, adapted from Nilsson (1980). 35

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 4.29The sliding block puzzle. 36

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig

Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig