Control and Implementation of State Space Search

Slides:



Advertisements
Similar presentations
Artificial Intelligent
Advertisements

Artificial Intelligence By Mr. Ejaz CIIT Sahiwal.
Artificial Intelligence Presentation
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
Iterative Deepening A* & Constraint Satisfaction Problems Lecture Module 6.
Comp 307 Problem Solving and Search Formalize a problem as State Space Search Blind search strategies Heuristic search.
Part2 AI as Representation and 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)
CMSC 471 Spring 2014 Class #4 Thu 2/6/14 Uninformed Search Professor Marie desJardins,
Search Strategies Reading: Russell’s Chapter 3 1.
Biointelligence Lab School of Computer Sci. & Eng. Seoul National University Artificial Intelligence Chapter 8 Uninformed Search.
Structures and Strategies For Space State Search
Artificial Intelligence (CS 461D)
Artificial Intelligence Lecture No. 7 Dr. Asad Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
State Space Search 2 Chapter 3 Three Algorithms. Backtracking Suppose We are searching depth-first No further progress is possible (i.e., we can only.
Artificial Intelligence for Games Depth limited search Patrick Olivier
1 CS 385 Fall 2006 Chapter 6 Building Control Algorithms for State Space Search Read
Building Control Algorithms For State Space Search
CPSC 322 Introduction to Artificial Intelligence October 27, 2004.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2004.
Artificial Intelligence
Search I Tuomas Sandholm Carnegie Mellon University Computer Science Department [Read Russell & Norvig Chapter 3]
Structures and Strategies for State Space Search
Artificial Intelligence Chapter 3: Solving Problems by Searching
1 Heuristic Search 4 4.0Introduction 4.1An Algorithm for Heuristic Search 4.2Admissibility, Monotonicity, and Informedness 4.3Using Heuristics in Games.
Intelligent Agents What is the basic framework we use to construct intelligent programs?
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.
Structures and Strategies For Space State Search
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.
1 Control and Implementation of State Space Search 5 5.0Introduction 5.1Recursion-Based Search 5.2Pattern-directed Search 5.3Production Systems 5.4The.
Solving Problems by Searching
Artificial Intelligence Course outline Introduction Problem solving Generic algorithms Knowledge Representation and Reasoning Expert Systems Uncertainty.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Chapter 14: Artificial Intelligence Invitation to Computer Science, C++ Version, Third Edition.
CS62S: Expert Systems Based on: The Engineering of Knowledge-based Systems: Theory and Practice A. J. Gonzalez and D. D. Dankel.
Artificial Intelligence LECTURE 3 ARTIFICIAL INTELLIGENCE LECTURES BY ENGR. QAZI ZIA 1.
Production Systems A production system is –a set of rules (if-then or condition-action statements) –working memory the current state of the problem solving,
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.
Building Control Algorithms 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,
Control Algorithms 1 Chapter 6 Control Algorithms 1 Chapter 6 Pattern Search.
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.
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,
Artificial Intelligence LECTURE 4 ARTIFICIAL INTELLIGENCE LECTURES BY ENGR. QAZI ZIA.
For Friday Finish reading chapter 4 Homework: –Lisp handout 4.
For Monday Read chapter 4, section 1 No homework..
Lecture 3: Uninformed Search
1 Solving problems by searching 171, Class 2 Chapter 3.
Artificial Intelligence for Games Informed Search (2) Patrick Olivier
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;
A General Introduction to Artificial Intelligence.
Chapter 4: Inference Techniques
George F Luger ARTIFICIAL INTELLIGENCE 5th edition Structures and Strategies for Complex Problem Solving Structures and Strategies For Space State Search.
RULES Patty Nordstrom Hien Nguyen. "Cognitive Skills are Realized by Production Rules"
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.
3.5 Informed (Heuristic) Searches This section show how an informed search strategy can find solution more efficiently than uninformed strategy. Best-first.
Building Control Algorithms for State Space Search. Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited, 2005.
Search Methodologies Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Blind Search Russell and Norvig: Chapter 3, Sections 3.4 – 3.6 CS121 – Winter 2003.
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.
For Monday Chapter 6 Homework: Chapter 3, exercise 7.
Informed Search and Exploration
Search Exercise Search Tree? Solution (Breadth First Search)?
Presentation transcript:

Control and Implementation of State Space Search 5 Control and Implementation of State Space Search 5.0 Introduction 5.1 Recursion-Based Search 5.2 Pattern-directed Search 5.3 Production Systems 5.4 The Blackboard Architecture for Problem Solving 5.5 Epilogue and References 5.6 Exercises

Chapter Objectives Compare the recursive and iterative implementations of the depth-first search algorithm Learn about pattern-directed search as a basis for production systems Learn the basics of production systems The agent model: Has a problem, searches for a solution, has different ways to model the search

Function depthsearch algorithm

Function depthsearch (current_state) algorithm

A chess knight’s tour problem Legal moves of a knight Move rules

A production system is defined by: A set of production rules (aka productions): condition-action pairs. Working memory: the current state of the world The recognize-act cycle: the control structure for a production system Initialize working memory Match patterns to get the conflict set (enabled rules) Select a rule from the conflict set (conflict resolution) Fire the rule

A production system is defined by: A set of production rules (aka productions): condition-action pairs. Working memory: the current state of the world The recognize-act cycle: the control structure for a production system Initialize working memory Match patterns to get the conflict set (enabled rules) Select a rule from the conflict set (conflict resolution) Fire the rule

A production system

Trace of a simple production system

The 8-puzzle as a production system

Production system search with loop detection & depth bound 5 (Nilsson, 1971)

A production system solution to the 3  3 knight’s tour problem

The recursive path algorithm: a production system

Data-driven search in a production system

Goal-driven search in a production system

Bidirectional search missing in both directions, resulting in excessive search.

Bidirectional search meeting in the middle

Major advantages of production systems for artificial intelligence Separation of knowledge and control A natural mapping onto state space search Modularity of production rules Pattern-directed control Opportunities for heuristic control of search Tracing and explanation Language independence A plausible model of human problem solving

Comparing search models Given a start state and a goal state State space search keeps the “current state” in a “node”. Children of a node are all the possible ways an operator can be applied to a node Pattern-directed search keeps the all the states (start, goal, and current) as logic expressions. Children of a node are all the possible ways of using modus ponens. Production systems keep the “current state” in “working memory.” Children of the current state are the results of all applicable productions.

Variations on a search theme Bidirectional search: Start from both ends, check for intersection (Sec. 5.3.3). Depth-first with iterative deepening: implement depth first search using a depth-bound. Iteratively increase this bound (Sec. 3.2.4). Beam search: keep only the “best” states in OPEN in an attempt to control the space requirements (Sec. 4.4). Branch and bound search: Generate paths one at a time, use the best cost as a “bound” on future paths, i.e., do not pursue a path if its cost exceeds the best cost so far (Sec. 3.1.2).

Blackboard architecture KS1 Global blackboard . . . KSn