State space search Represented by a four-tuple [N,A,S,GD], where: N is the problem space A is the set of arcs (or links) between nodes. These correspond.

Slides:



Advertisements
Similar presentations
Solving problems by searching
Advertisements

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.
Informed search algorithms
Playing Fair at Sudoku Joshua Cooper USC Department of Mathematics.
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.
5-1 Chapter 5 Tree Searching Strategies. 5-2 Satisfiability problem Tree representation of 8 assignments. If there are n variables x 1, x 2, …,x n, then.
Chapter 8, Part I Graph Algorithms.
EIE426-AICV 1 Blind and Informed Search Methods Filename: eie426-search-methods-0809.ppt.
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.
Feng Zhiyong Tianjin University Fall  datatype PROBLEM ◦ components: INITIAL-STATE, OPERATORS, GOAL- TEST, PATH-COST-FUNCTION  Measuring problem-solving.
Search: Representation and General Search Procedure Jim Little UBC CS 322 – Search 1 September 10, 2014 Textbook § 3.0 –
Problem Solving and Search in AI Part I Search and Intelligence Search is one of the most powerful approaches to problem solving in AI Search is a universal.
Search: Representation and General Search Procedure CPSC 322 – Search 1 January 12, 2011 Textbook § 3.0 –
Artificial Intelligence
Branch and Bound Similar to backtracking in generating a search tree and looking for one or more solutions Different in that the “objective” is constrained.
Structures and Strategies for State Space Search
Structures and Strategies for State Space Search
Lecture 3 Informed Search CSE 573 Artificial Intelligence I Henry Kautz Fall 2001.
5-1 Chapter 5 Tree Searching Strategies. 5-2 Breadth-first search (BFS) 8-puzzle problem The breadth-first search uses a queue to hold all expanded nodes.
State-Space Representation Read Chapter 3. Searches you use MapQuest –road maps Google –documents CiteSeer –research documents.
Solving problems by searching
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.
Problem-solving agents
Review: Search problem formulation Initial state Actions Transition model Goal state (or goal test) Path cost What is the optimal solution? What is the.
3.0 State Space Representation of Problems 3.1 Graphs 3.2 Formulating Search Problems 3.3 The 8-Puzzle as an example 3.4 State Space Representation using.
Digital Image Processing
Solving Problems by Searching CPS Outline Problem-solving agents Example problems Basic search algorithms.
Graph Theory Hamilton Paths and Hamilton Circuits.
Heuristic Search In addition to depth-first search, breadth-first search, bound depth-first search, and iterative deepening, we can also use informed or.
Knowledge Representation CPTR 314. The need of a Good Representation  The representation that is used to represent a problem is very important  The.
1 CO Games Development 1 Week 11 Search Methods Gareth Bellaby.
Artificial Intelligence Tarik Booker. What we will cover… History Artificial Intelligence as Representation and Search Languages used in Artificial Intelligence.
1 Solving problems by searching 171, Class 2 Chapter 3.
Artificial Intelligence and Knowledge Based Systems Fall 2009 Frank Hadlock.
Problem solving by search Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Artificial Intelligence
Goal-based Problem Solving Goal formation Based upon the current situation and performance measures. Result is moving into a desirable state (goal state).
Informed Search Reading: Chapter 4.5 HW #1 out today, due Sept 26th.
Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most desirable unexpanded node Implementation:
Heuristic Functions. A Heuristic is a function that, when applied to a state, returns a number that is an estimate of the merit of the state, with respect.
CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt ) Sept, 12, 2012.
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.
Ch. 3 – Search Supplemental slides for CSE 327 Prof. Jeff Heflin.
Chapter 9: Graphs.
February 11, 2016Introduction to Artificial Intelligence Lecture 6: Search in State Spaces II 1 State-Space Graphs There are various methods for searching.
Chapter 3.5 and 3.6 Heuristic Search Continued. Review:Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
G5AIAI Introduction to AI
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Lecture 2: Problem Solving using State Space Representation CS 271: Fall, 2008.
Modeling the Game of Brain Cube Leslie Muzulu, Kristal Jameson, and Kathy Radloff; St. Catherine University Game Description Brain Cube is a puzzle game.
Solving problems by searching Chapter 3. Types of agents Reflex agent Consider how the world IS Choose action based on current percept Do not consider.
CSG3F3/ Desain dan Analisis Algoritma
Hamilton Paths and Hamilton Circuits
ARTIFICIAL INTELLIGENCE
Solving problems by searching
BackTracking CS255.
Heuristic Functions.
Lines Task Task 1 Task 2 Task 3 Task 4 Task 5 Task 6 Task 7 Task 8
Graphs Chapter 13.
Chapter 22: Elementary Graph Algorithms I
CSE (c) S. Tanimoto, 2002 State-Space Search
EMIS 8373: Integer Programming
CSE (c) S. Tanimoto, 2004 State-Space Search
Reading: Chapter 4.5 HW#2 out today, due Oct 5th
Solving Problems by Searching
Supplemental slides for CSE 327 Prof. Jeff Heflin
Presentation transcript:

State space search Represented by a four-tuple [N,A,S,GD], where: N is the problem space A is the set of arcs (or links) between nodes. These correspond to the operators. S is a nonempty subset of N. It represents the start state(s) of the problem.

State Space Search continued GD is a nonempty subset of N. It represents the goal state(s) of the problem. The states in GD are described using either: a measurable property of the states a property of the path developed in the search (a solution path is a path from node S to a node in GD )

The 8-puzzle problem as state space search states: possible board positions operators: one for sliding each square in each of four directions, or, better, one for moving the blank square in each of four directions initial state: some given board position goal state: some given board position Note: the “solution” is not interesting here, we need the path.

Eight Puzzle

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

Eight Puzzle States Representation – The squares of the eight puzzle can be represented by integers and 9 represents empty square. A state of the puzzle is a permutation of 1..9 where 1 st three represent top row, 2 nd three represent middle row, and 3 rd three represent bottom row.

Eight puzzle transitions An eight puzzle transition consists of moving a square numbered 1..8 into the adjacent vacant square which can only be done if it is adjacent to the numbered square. Representation of a board configuration is a permutation of 1..9 where 9 represents vacant square. Example – represents 1 st row 132, 2 nd row 4 b lnk 6, 3 rd row 748. Since the blank is in the middle position, 3 can be moved down, or 4 to the right, or 6 to the left, or 5 moved up. These transitions make have neighbors , , , and

Best First Search Let X be an eight puzzle state Let Y 1 … Y k be the neighbors of X Let G be the eight puzzle goal state Let h(Y i,G) be a lower bound to the distance of Y i to G. – h(Y i,G) = 0 (uninformed search) –h(Y i,G) = # squares in Y i out of place with respect to G Best First Search (based on h) selects Y i for which h(Y i,G) is minimum.

Traveling salesperson problem as state space search The salesperson has n cities to visit and must then return home. Find the shortest path to travel. state space: operators: initial state: goal state: