George F Luger ARTIFICIAL INTELLIGENCE 5th edition Structures and Strategies for Complex Problem Solving Structures and Strategies For Space State Search.

Slides:



Advertisements
Similar presentations
Artificial Intelligence (AI)
Advertisements

Heuristic Search techniques
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal.
CSC411Artificial Intelligence 1 Chapter 3 Structures and Strategies For Space State Search Contents Graph Theory Strategies for Space State Search Using.
PROBLEM SOLVING AND SEARCH
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
Part2 AI as Representation and Search
KU NLP Artificial Intelligence1 Ch 3. Structures and Strategies for State Space Search q Introduction q Graph Theory  Structures for state space search.
Problem Solving Agents A problem solving agent is one which decides what actions and states to consider in completing a goal Examples: Finding the shortest.
Solving Problems by Searching Currently at Chapter 3 in the book Will finish today/Monday, Chapter 4 next.
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
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 27 Graph Applications.
Graphs Graphs are the most general data structures we will study in this course. A graph is a more general version of connected nodes than the tree. Both.
September 26, 2012Introduction to Artificial Intelligence Lecture 7: Search in State Spaces I 1 After our “Haskell in a Nutshell” excursion, let us move.
Artificial Intelligence Lecture No. 7 Dr. Asad Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Lecture 3 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
HEURISTIC SEARCH ARTIFICIAL INTELLIGENCE 5th edition George F Luger
CPSC 322 Introduction to Artificial Intelligence October 27, 2004.
Nyhoff, ADTs, Data Structures and Problem Solving with C++, Second Edition, © 2005 Pearson Education, Inc. All rights reserved Graphs.
Structures and Strategies for State Space Search
Structures and Strategies for State Space Search
1 Heuristic Search 4 4.0Introduction 4.1An Algorithm for Heuristic Search 4.2Admissibility, Monotonicity, and Informedness 4.3Using Heuristics in Games.
Using Search in Problem Solving
CISC220 Fall 2009 James Atlas Nov 13: Graphs, Line Intersections.
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 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.
Solving Problems by Searching
Strong Method Problem Solving.
The Predicate Calculus
Introduction to search Chapter 3. Why study search? §Search is a basis for all AI l search proposed as the basis of intelligence l inference l all learning.
Knowledge Representation CPTR 314. The need of a Good Representation  The representation that is used to represent a problem is very important  The.
Building Control Algorithms For State Space Search.
1 CS 385 Fall 2006 Chapter 3 Structures and Strategies for State Space Search.
Introduction to search Chapter 3. Why study search? §Search is a basis for all AI l search proposed as the basis of intelligence l all learning algorithms,
Artificial Intelligence Tarik Booker. What we will cover… History Artificial Intelligence as Representation and Search Languages used in Artificial Intelligence.
Reasoning in Uncertain Situations
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.
State-Space Searches. 2 State spaces A state space consists of A (possibly infinite) set of states The start state represents the initial problem Each.
Structures and Strategies For Space State Search
Nyhoff, ADTs, Data Structures and Problem Solving with C++, Second Edition, © 2005 Pearson Education, Inc. All rights reserved Graphs.
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,
George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving Artificial Intelligence as Empirical Enquiry Luger:
Lecture 3: Uninformed Search
1 Solving problems by searching 171, Class 2 Chapter 3.
1 Branch and Bound Searching Strategies Updated: 12/27/2010.
1 Directed Graphs Chapter 8. 2 Objectives You will be able to: Say what a directed graph is. Describe two ways to represent a directed graph: Adjacency.
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.
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.
Brute Force and Exhaustive Search Brute Force and Exhaustive Search Traveling Salesman Problem Knapsack Problem Assignment Problem Selection Sort and Bubble.
Artificial Intelligence Solving problems by searching.
Breadth First and Depth First
AI Classnotes #5, John Shieh, 2012
Problem Solving Agents
Artificial Intelligence Problem solving by searching CSC 361
CSE 4705 Artificial Intelligence
Search Exercise Search Tree? Solution (Breadth First Search)?
A General Backtracking Algorithm
Blay Whitby 2003 Search Blay Whitby 2003
Haskell Tips You can turn any function that takes two inputs into an infix operator: mod 7 3 is the same as 7 `mod` 3 takeWhile returns all initial.
Artificial Intelligence Chapter 8 Uninformed Search
CPSC 322 Introduction to Artificial Intelligence
Chap 4: Searching Techniques
Presentation transcript:

George F Luger ARTIFICIAL INTELLIGENCE 5th edition Structures and Strategies for Complex Problem Solving Structures and Strategies For Space State Search Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited, Introduction 3.1 Graph Theory 3.2Strategies for Space State Search 3.3Using Space State to Represent Reasoning with the Predicate Calculus 3.4Epilogue and References 3.5Exercises 1 To be discussed later

Figure 3.1: The city of Königsberg. Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited,

Figure 3.2:Graph of the Königsberg bridge system. Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited,

Figure 3.3:A labeled directed graph. Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited,

Figure 3.4:A rooted tree, exemplifying family relationships. Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited,

6

Fig 3.5(a) The finite state graph for a flip flop and (b) its transition matrix. Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited,

Fig 3.6(a) The finite state graph and (b) the transition matrix for string recognition example 8

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

Fig 3.8 State space of the 8-puzzle generated by “move blank” operations 10

Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited, 2005 Fig 3.9 An instance of the travelling salesperson problem 11

Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited, 2005 Fig 3.10Search for the travelling salesperson problem. Each arc is marked with the total weight of all paths from the start node (A) to its endpoint. 12

Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited, 2005 Fig 3.11An instance of the travelling salesperson problem with the nearest neighbor path in bold. Note this path (A, E, D, B, C, A), at a cost of 550, is not the shortest path. The comparatively high cost of arc (C, A) defeated the heuristic. 13

Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited, 2005 Fig 3.12State space in which goal-directed search effectively prunes extraneous search paths. 14 Stop Here!!

Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited, 2005 Fig 3.13State space in which data-directed search prunes irrelevant data and their consequents and determines one of a number of possible goals. 15 Skip!!

Function backtrack algorithm Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited,

Luger Backtracking vs. Nilsson’s “True Backtracking” Nilsson’s algorithms forgets all paths (and the states that are on the path) that lead to failure. Luger memorizes all previously visited states. Storage cost Nilsson (O(log b (n)); Luger (O(n))—b being the branching factor; the number of operators applicable for a given state. Nilsson creates new states only when necessary; Luger creates new states beforehand, which is inefficient. Luger backtracks for states that have been previously visited; Nilsson only backtracks for states that already occur on the current path. Nilssons algorithm only memorizes the currently explored path; for each state on the path it memorizes the operators that are left to be applied Nilssons’ code is kind of interpretive and recursive; however, it is easy to replace the recursive version by an iterative version. Nilsson contains plug-in functions for incorporating domain specific knowledge into the algorithm; Luger does not—which is bizarre for AI book.

A trace of backtrack on the graph of figure 3.12 Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited,

Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited, 2005 Fig 3.14Backtracking search of a hypothetical state space space. 18

Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited, 2005 Fig 3.15Graph for breadth - and depth - first search examples. 19

Function breadth_first search algorithm Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited,

A trace of breadth_first_search on the graph of Figure 3.13 Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited,