Quiz Oct. 11 2008. “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.

Slides:



Advertisements
Similar presentations
Cooperating Intelligent Systems
Advertisements

Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
Problem Solving and Search Andrea Danyluk September 9, 2013.
1 Lecture 3 Uninformed Search. 2 Uninformed search strategies Uninformed: While searching you have no clue whether one non-goal state is better than any.
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.
May 12, 2013Problem Solving - Search Symbolic AI: Problem Solving E. Trentin, DIISM.
1 Lecture 3 Uninformed Search. 2 Uninformed search strategies Uninformed: While searching you have no clue whether one non-goal state is better than any.
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.
Artificial Intelligence for Games Uninformed search Patrick Olivier
Artificial Intelligence (CS 461D)
Artificial Intelligence Lecture No. 7 Dr. Asad Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
14 Jan 2004CS Blind Search1 Solving problems by searching Chapter 3.
1 Solving problems by searching Chapter 3. 2 Why Search? To achieve goals or to maximize our utility we need to predict what the result of our actions.
LaValle, Steven M. "Rapidly-Exploring Random Trees A Цew Tool for Path Planning." (1998) RRT Navigation.
Review: Search problem formulation
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2004.
Artificial Intelligence
UnInformed Search What to do when you don’t know anything.
Game Playing CSC361 AI CSC361: Game Playing.
Artificial Intelligence Chapter 3: Solving Problems by Searching
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?
Artificial Intelligence Methods Rao Vemuri Searching - 2.
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
1 Solving problems by searching Chapter 3. 2 Why Search? To achieve goals or to maximize our utility we need to predict what the result of our actions.
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.
1 Problem Solving and Searching CS 171/271 (Chapter 3) Some text and images in these slides were drawn from Russel & Norvig’s published material.
1 Section 1.4 Graphs and Trees A graph is set of objects called vertices or nodes where some pairs of objects may be connected by edges. (A directed graph.
Quiz Th. Oct. 20 Chapters 1,2,3,4. S B AD E C F G straight-line distances h(S-G)=10 h(A-G)=7 h(D-G)=1 h(F-G)=1 h(B-G)=10 h(E-G)=8 h(C-G)=20.
AI in game (II) 권태경 Fall, outline Problem-solving agent Search.
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.
Vilalta&Eick:Uninformed Search Problem Solving By Searching Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States/Looping.
For Friday Finish reading chapter 4 Homework: –Lisp handout 4.
For Monday Read chapter 4, section 1 No homework..
G5BAIM Artificial Intelligence Methods Graham Kendall Searching.
For Friday Read chapter 4, sections 1 and 2 Homework –Chapter 3, exercise 7 –May be done in groups.
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;
Uninformed Search ECE457 Applied Artificial Intelligence Spring 2007 Lecture #2.
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.
Goal-based Problem Solving Goal formation Based upon the current situation and performance measures. Result is moving into a desirable state (goal state).
Solving problems by searching 1. Outline Problem formulation Example problems Basic search algorithms 2.
Introduction to Artificial Intelligence (G51IAI) Dr Rong Qu Blind Searches - Introduction.
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Ch. 3 –Problem Solving Agents State space search –Programming Assignment Thursday.
Implementation: General Tree Search
Solving problems by searching A I C h a p t e r 3.
G5AIAI Introduction to AI
1 Solving problems by searching Chapter 3. 2 Outline Problem types Example problems Assumptions in Basic Search State Implementation Tree search Example.
Search Part I Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States Partial Information Summary.
For Monday Read chapter 4 exercise 1 No homework.
Chapter 3 Solving problems by searching. Search We will consider the problem of designing goal-based agents in observable, deterministic, discrete, known.
Lecture 3: Uninformed Search
ARTIFICIAL INTELLIGENCE
Problem Solving by Searching
Artificial Intelligence (CS 370D)
Artificial Intelligence
Quiz Oct
Solving problems by searching
Problem Solving and Searching
What to do when you don’t know anything know nothing
Artificial Intelligence
Problem Solving and Searching
G5BAIM Artificial Intelligence Methods
Solving problems by searching
Two – One Problem Legal Moves: Slide Rules: 1s’ move right Hop
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #2
Two – One Problem Legal Moves: Slide Rules: 1s’ move right Hop
Presentation transcript:

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 task is to place the pieces A,B,C into the grid, i.e. A  1, B  2, C  3 would be a valid configuration. You are also given the a set of pair costs which represent how much of a dismatch there is between two pieces. High cost means that these pieces don’t like to be neighbors. a)Formulate this as a search problem. I.e. define the state space, successor function, initial state, goal state, step cost. Place the pieces from left to right, i.e. Empty  1  2  3. Avoid placing the same piece twice! Reaching a goal does not necessarily mean you placed the pieces at their optimal location. b) Draw the search tree and write the step costs on the edges. Solve this puzzle by hand using depth first search (DFS). At every evaluation, write 1) the node you evaluate, 2) the nodes in the fringe after the evaluation, 3) the path cost for all nodes in the fringe, e.g. N12; [N1,N4,N8]; [12,34,1]. c) Is the solution guaranteed to be optimal (why or why not?). d) What is the time and space complexity of DFS in general? C(A,B) = 8 C(A,C) = 3 C(B,C) =

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 task is to place the pieces A,B,C into the grid, i.e. A  1, B  2, C  3 would be a valid configuration. You are also given the a set of pair costs which represent how much of a dismatch there is between two pieces. High cost means that these pieces don’t like to be neighbors. a) Formulate this as a search problem. I.e. define the state space, successor function, initial state, goal state, step cost. Place the pieces from left to right, i.e. Empty  1  2  3. Avoid placing the same piece twice! Root node is “Empty Template”. This branches into A1,B1,C1 on the first level. Then e.g. for A1 you branch into B2,C2, etc. Step cost is the cost you incur by placing a new piece next to another one, i.e. A1  B2 has a step cost of 8. b) Draw the search tree and write the step costs on the edges. Solve this puzzle by hand using depth first search (DFS). At every evaluation, write 1) the node you evaluate, 2) the nodes in the fringe after the evaluation, 3) the path cost for all nodes in the fringe, e.g. N12; [N1,N4,N8]; [12,34,1]. By the time you have descended down a single branch the goal criterium is met and you search no further. c) Is the solution guaranteed to be optimal (why or why not?). Not optimal because you simply find the first configuration you visit d) What is the time and space complexity of DFS in general? Space = O(bm) Time = O(b^m) C(A,B) = 8 C(A,C) = 3 C(B,C) =