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.

Slides:



Advertisements
Similar presentations
Cooperating Intelligent Systems
Advertisements

Review: Search problem formulation
Uninformed search strategies
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal.
A* Search. 2 Tree search algorithms Basic idea: Exploration of state space by generating successors of already-explored states (a.k.a.~expanding states).
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.5) Sept, 14, 2012.
State Space Representation and Search
CSC411Artificial Intelligence 1 Chapter 3 Structures and Strategies For Space State Search Contents Graph Theory Strategies for Space State Search Using.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
Review Binary Search Trees Operations on Binary Search Tree
Solving Problem by Searching
Problem Solving and Search Andrea Danyluk September 9, 2013.
CS 480 Lec 3 Sept 11, 09 Goals: Chapter 3 (uninformed search) project # 1 and # 2 Chapter 4 (heuristic search)
Blind Search1 Solving problems by searching Chapter 3.
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.4) January, 14, 2009.
Search Strategies Reading: Russell’s Chapter 3 1.
May 12, 2013Problem Solving - Search Symbolic AI: Problem Solving E. Trentin, DIISM.
Structures and Strategies For Space State Search
Implementation and Evaluation of Search Methods. Use a stack data structure. 1. Push root node of tree on the stack. 2. Pop the top node off the stack.
Touring problems Start from Arad, visit each city at least once. What is the state-space formulation? Start from Arad, visit each city exactly once. What.
Uninformed Search Jim Little UBC CS 322 – Search 2 September 12, 2014
UNINFORMED SEARCH Problem - solving agents Example : Romania  On holiday in Romania ; currently in Arad.  Flight leaves tomorrow from Bucharest.
Artificial Intelligence Lecture No. 7 Dr. Asad Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Review: Search problem formulation
Artificial Intelligence
UnInformed Search What to do when you don’t know anything.
Structures and Strategies for State Space Search
Quiz Oct “Solving” a Jiggsaw puzzle We want to build a “jigsaw puzzle solver”. You are given 3 jigsaw puzzle pieces, A,B,C and a template. Your.
Structures and Strategies for State Space Search
Blind Search-Part 2 Ref: Chapter 2. Search Trees The search for a solution can be described by a tree - each node represents one state. The path from.
1 Tree Searching Strategies. 2 The procedure of solving many problems may be represented by trees. Therefore the solving of these problems becomes a tree.
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.
Structures and Strategies For Space State Search
Uninformed Search (cont.)
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.
Review: Search problem formulation Initial state Actions Transition model Goal state (or goal test) Path cost What is the optimal solution? What is the.
Problem Solving and Search Andrea Danyluk September 11, 2013.
Computer Science CPSC 322 Lecture 4 Search: Intro (textbook Ch: ) 1.
KU NLP Structures and Strategies for State Space Search Depth-First and Breadth-First Search q A search algorithm must determine the order in which.
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.
Artificial Intelligence
Search by partial solutions.  nodes are partial or complete states  graphs are DAGs (may be trees) source (root) is empty state sinks (leaves) are complete.
Informed search strategies Idea: give the algorithm “hints” about the desirability of different states – Use an evaluation function to rank nodes and select.
Search with Costs and Heuristic Search 1 CPSC 322 – Search 3 January 17, 2011 Textbook §3.5.3, Taught by: Mike Chiang.
Review: Tree search Initialize the frontier using the starting state While the frontier is not empty – Choose a frontier node to expand according to search.
Lecture 3: Uninformed Search
1 Solving problems by searching Chapter 3. Depth First Search Expand deepest unexpanded node The root is examined first; then the left child of the root;
Basic Problem Solving Search strategy  Problem can be solved by searching for a solution. An attempt is to transform initial state of a problem into some.
CSCI 4310 Lecture 2: Search. Search Techniques Search is Fundamental to Many AI Techniques.
Uninformed search strategies A search strategy is defined by picking the order of node expansion Uninformed search strategies use only the information.
CPSC 322, Lecture 6Slide 1 Uniformed Search (cont.) Computer Science cpsc322, Lecture 6 (Textbook finish 3.5) Sept, 17, 2012.
Breadth First Search and Depth First Search. Greatest problem in Computer Science Has lead to a lot of new ideas and data structures Search engines before.
George F Luger ARTIFICIAL INTELLIGENCE 5th edition Structures and Strategies for Complex Problem Solving Structures and Strategies For Space State Search.
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.
Implementation: General Tree Search
Artificial Intelligence Midterm 고려대학교 컴퓨터학과 자연어처리 연구실 임 해 창.
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.5) Sept, 13, 2013.
Representation and Search The function of a representation is to capture the critical features of the problem domain –and make the information accessible.
Brian Williams, Fall 041 Analysis of Uninformed Search Methods Brian C. Williams Sep 21 st, 2004 Slides adapted from: Tomas Lozano Perez,
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.
Artificial Intelligence Solving problems by searching.
Lecture 3 Problem Solving through search Uninformed Search
What to do when you don’t know anything know nothing
Principles of Computing – UFCFA3-30-1
Informed search algorithms
Search Exercise Search Tree? Solution (Breadth First Search)?
Search Strategies CMPT 420 / CMPG 720.
Presentation transcript:

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 Reasoning with the Predicate Calculus 3.4Epilogue and References 3.5Exercises

2 BFS and DFS Both brute-force search techniques (uninformed, weak) Worst case scenarios are equally bad (exponential) How to evaluate search algorithms  Completeness  Quality of solution  Cost of finding the solution (time, memory)

3 Evaluating BFS Complete? Yes Optimal quality solution? Yes Time required in the worst case O(b d ) Memory required in the worst case (in OPEN) O(b d ) where b is the branching factor, d is the depth of the solution

4 Evaluating DFS Complete? Yes (only if the tree is finite) Optimal quality solution? No Time required in the worst case O(b m ) Memory required in the worst case (in OPEN) O(bm) where b is the branching factor, m is the maximum depth of the tree

5 State space graph of a set of implications in propositional calculus

6 And/or graph of the expression q  r  p

7 Hypergraph A hypergraph consists of: N: a set of nodes. H: a set of hyperarcs. Hyperarcs are defined by ordered pairs in which the first element of the pairs is a single node from N and the second element is a subset of N. An ordinary graph is a special case of hypergraph in which all the sets of descendant nodes have a cardinality of 1.

8 And/or graph of the expression q  r  p

9 And/or graph of a set of propositional calculus expressions

10

11 And/or graph of the part of the state space for integrating a function (Nilsson 1971)

12 The solution subgraph showing that fred is at the museum

13 Facts and rules for the example

14 Five rules for a simple subset of English grammar

15 Figure 3.25:And/or graph for the grammar of Example Some of the nodes (np, art, etc.) have been written more than once to simplify drawing the graph.

16 Parse tree for the sentence