AI Classnotes #5, John Shieh, 2012

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."
Adversarial Search Reference: “Artificial Intelligence: A Modern Approach, 3 rd ed” (Russell and Norvig)
Artificial Intelligence
Tic Tac Toe Architecture CSE 5290 – Artificial Intelligence 06/13/2011 Christopher Hepler.
Problem-solving as search. History Problem-solving as search – early insight of AI. Newell and Simon’s theory of human intelligence and problem-solving.
Structures and Strategies For Space State Search
HEURISTIC SEARCH ARTIFICIAL INTELLIGENCE 5th edition George F Luger
Mahgul Gulzai Moomal Umer Rabail Hafeez
1 Game Playing Chapter 6 Additional references for the slides: Luger’s AI book (2005). Robert Wilensky’s CS188 slides:
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?
1 Heuristic Search 4 4.0Introduction 4.1An Algorithm for Heuristic Search 4.2Admissibility, Monotonicity, and Informedness 4.3Using Heuristics in Games.
Monotonicity Admissible Search: “That finds the shortest path to the Goal” Monotonicity: local admissibility is called MONOTONICITY This property ensures.
5-Nov-2003 Heuristic Search Techniques What do you do when the search space is very large or infinite? We’ll study three more AI search algorithms: Backtracking.
Structures and Strategies For Space State Search
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.
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.
Artificial Intelligence Tarik Booker. What we will cover… History Artificial Intelligence as Representation and Search Languages used in Artificial Intelligence.
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,
George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving HEURISTIC SEARCH Luger: Artificial Intelligence,
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.
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.
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.
Adversarial Search and Game-Playing
Last time: search strategies
Iterative Deepening A*
CS3754 Class Notes, John Shieh, 2012
PENGANTAR INTELIJENSIA BUATAN (64A614)
CS 460 Spring 2011 Lecture 4.
Adversarial Search and Game Playing (Where making good decisions requires respecting your opponent) R&N: Chap. 6.
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.
Pengantar Kecerdasan Buatan
Game Playing in AI by: Gaurav Phapale 05 IT 6010
CSE 4705 Artificial Intelligence
Game playing.
Chapter 6 : Game Search 게임 탐색 (Adversarial Search)
CSE 4705 Artificial Intelligence
Review session covering text book pages and
NIM - a two person game n objects are in one pile
Instructor: Vincent Conitzer
Introduction to Artificial Intelligence Lecture 9: Two-Player Games I
Search and Game Playing
Pruned Search Strategies
4 Heuristic Search 4.0 Introduction
Approaches to search Simple search Heuristic search Genetic search
Game Playing Fifth Lecture 2019/4/11.
CSE (c) S. Tanimoto, 2007 Search 2: AlphaBeta Pruning
Informed Search Idea: be smart about what paths to try.
SEG 4560 Midterm Review.
Informed Search Idea: be smart about what paths to try.
Adversarial Search Game Theory.
CS51A David Kauchak Spring 2019
Unit II Game Playing.
Presentation transcript:

AI Classnotes #5, John Shieh, 2012 HEURISTIC SEARCH 4.0 Introduction 4.1 An Algorithm for Heuristic Search 4.2 Admissibility, Monotonicity, and Informedness 4.3 Using Heuristics in Games 4.4 Complexity Issues AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.1 First three levels of the tic-tac-toe state space reduced by symmetry AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.2 The “most wins” heuristic applied to the first children in tic-tac-toe. AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.3 Heuristically reduced state space for tic-tac-toe. AI Classnotes #5, John Shieh, 2012 4

AI Classnotes #5, John Shieh, 2012 Fig 4.4 The local maximum problem for hill-climbing with 3-level look ahead Insert fig 4.4 AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.10 Heuristic search of a hypothetical state space. AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 A trace of the execution of best_first_search for Figure 4.4 AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.11 Heuristic search of a hypothetical state space with open and closed states highlighted. AI Classnotes #5, John Shieh, 2012 15

AI Classnotes #5, John Shieh, 2012 Fig 4.12 The start state, first moves, and goal state for an example-8 puzzle. Insert fig 4.12 AI Classnotes #5, John Shieh, 2012 16

AI Classnotes #5, John Shieh, 2012 Fig 4.14 Three heuristics applied to states in the 8-puzzle. AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.15 The heuristic f applied to states in the 8-puzzle. Insert fig 4.15 AI Classnotes #5, John Shieh, 2012 18

AI Classnotes #5, John Shieh, 2012 Fig 4.16 State space generated in heuristic search of the 8-puzzle graph. Insert fig 4.16 AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.17 Open and closed as they appear after the 3rd iteration of heuristic search AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Insert def box page 146 AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Insert def box, pg 147 AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Insert def box, pg 148 AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.18 Comparison 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. AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.19 State space for a variant of nim. Each state partitions the seven matches into one or more piles. AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.20 Exhaustive 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. Insert fig 4.20 AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.21 Minimax to a hypothetical state space. Leafstates show heuristic values; internal states show backed-up values. Insert fig 4.21 AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.22 Heuristic measuring conflict applied to states of tic-tac-toe. AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.23 Two-ply minimax applied to the opening move of tic-tac-toe, from Nilsson (1971). AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.24 Two ply minimax, and one of two possible MAX second moves, from Nilsson (1971). AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.25 Two-ply minimax applied to X’s move near the end of the game, from Nilsson (1971). AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.26 Alpha-beta pruning applied to state space of Fig 4.21. States without numbers are not evaluated. AI Classnotes #5, John Shieh, 2012

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

AI Classnotes #5, John Shieh, 2012 Fig 4.28 Informal plot of cost of searching and cost of computing heuristic evaluation against informedness of heuristic, adapted from Nilsson (1980). AI Classnotes #5, John Shieh, 2012 7

AI Classnotes #5, John Shieh, 2012 Fig 4.29 The sliding block puzzle. AI Classnotes #5, John Shieh, 2012 8

AI Classnotes #5, John Shieh, 2012 Fig 4.30. AI Classnotes #5, John Shieh, 2012

AI Classnotes #5, John Shieh, 2012 Fig 4.31. AI Classnotes #5, John Shieh, 2012