Quiz Oct. 11 2008.

Slides:



Advertisements
Similar presentations
Cooperating Intelligent Systems
Advertisements

Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
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.
Artificial Intelligence for Games Uninformed search Patrick Olivier
Artificial Intelligence (CS 461D)
14 Jan 2004CS Blind Search1 Solving problems by searching Chapter 3.
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
Game Playing CSC361 AI CSC361: Game Playing.
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.
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
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.
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.
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.
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.
Chapter 3 Solving problems by searching. Search We will consider the problem of designing goal-based agents in observable, deterministic, discrete, known.
Artificial Intelligence Solving problems by searching.
Lecture 3 Problem Solving through search Uninformed Search
Lecture 3: Uninformed Search
ARTIFICIAL INTELLIGENCE
Breadth First and Depth First
For Monday Chapter 6 Homework: Chapter 3, exercise 7.
Pengantar Kecerdasan Buatan
Introduction to Artificial Intelligence
Introduction to Artificial Intelligence
Uninformed Search Chapter 3.4.
Problem Solving by Searching
Artificial Intelligence (CS 370D)
Artificial Intelligence
HW #1 Due 29/9/2008 Write Java Applet to solve Goats and Cabbage “Missionaries and cannibals” problem with the following search algorithms: Breadth first.
Solving problems by searching
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
Depth-First Searches Introduction to AI.
G5BAIM Artificial Intelligence Methods
Problem Spaces & Search
Solving problems by searching
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
Solving problems by searching
Solving problems by searching
Depth-First Searches.
Presentation transcript:

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 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. 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? 1 2 3 C(A,B) = 8 C(A,C) = 3 C(B,C) = 5

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) 1 2 3 C(A,B) = 8 C(A,C) = 3 C(B,C) = 5