Uniform Cost Search Introduction to AI. Uniform cost search A breadth-first search finds the shallowest goal state and will therefore be the cheapest.

Slides:



Advertisements
Similar presentations
Quiz 4-26-’07 Search.
Advertisements

G5AIAI Introduction to AI
Comp 307 Problem Solving and Search Formalize a problem as State Space Search Blind search strategies Heuristic search.
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.
Solving Problems by Searching Currently at Chapter 3 in the book Will finish today/Monday, Chapter 4 next.
G5BAIM Artificial Intelligence Methods Graham Kendall Blind Searches.
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.
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.
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.
CSC 423 ARTIFICIAL INTELLIGENCE
Artificial Intelligence (CS 461D)
Search Strategies CPS4801. Uninformed Search Strategies Uninformed search strategies use only the information available in the problem definition Breadth-first.
Lecture 3 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
CPSC 322 Introduction to Artificial Intelligence October 27, 2004.
Review: Search problem formulation
Breadth-First Searches Introduction to AI. Breadth-First Search Using a breadth-first strategy we expand the root level first and then we expand all those.
Searching the search space graph
A* Search Introduction to AI. What is an A* Search? A greedy search method minimizes the cost to the goal by using an heuristic function, h(n). It works.
Artificial Intelligence Problem solving by searching CSC 361 Prof. Mohamed Batouche Computer Science Department CCIS – King Saud University Riyadh, Saudi.
Iterative Deepening Search Introduction to AI. Iterative deepening search The problem with depth-limited search is deciding on a suitable depth parameter.
Artificial Intelligence Problem solving by searching CSC 361
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.
Graphs II Robin Burke GAM 376. Admin Skip the Lua topic.
How are things going? Core AI Problem Mobile robot path planning: identifying a trajectory that, when executed, will enable the robot to reach the goal.
Lecture 3: Uninformed Search
Advanced Artificial Intelligence Lecture 2: Search.
Introduction to Artificial Intelligence (G51IAI) Dr Rong Qu Blind Searches.
Basic Search Procedure 1. Start with the start node (root of the search tree) and place in on the queue 2. Remove the front node in the queue and If the.
Goal-based Problem Solving Goal formation Based upon the current situation and performance measures. Result is moving into a desirable state (goal state).
Search (continued) CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Uninformed search strategies A search strategy is defined by picking the order of node expansion Uninformed search strategies use only the information.
Searching for Solutions
CPSC 322, Lecture 6Slide 1 Uniformed Search (cont.) Computer Science cpsc322, Lecture 6 (Textbook finish 3.5) Sept, 17, 2012.
Ch. 3 – Search Supplemental slides for CSE 327 Prof. Jeff Heflin.
Solving problems by searching A I C h a p t e r 3.
G5AIAI Introduction to AI Graham Kendall Heuristic Searches.
Artificial Intelligence Lecture No. 8 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Search Part I Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States Partial Information Summary.
Brian Williams, Fall 041 Analysis of Uninformed Search Methods Brian C. Williams Sep 21 st, 2004 Slides adapted from: Tomas Lozano Perez,
Romania. Romania Problem Initial state: Arad Goal state: Bucharest Operators: From any node, you can visit any connected node. Operator cost, the.
Depth-First Searches G5AIAI – Introduction to AI.
Chapter 3 Solving problems by searching. Search We will consider the problem of designing goal-based agents in observable, deterministic, discrete, known.
Artificial Intelligence Search Instructors: David Suter and Qince Li Course Harbin Institute of Technology [Many slides adapted from those.
Chapter 3.5 Heuristic Search. Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Uniformed Search (cont.) Computer Science cpsc322, Lecture 6
Iterative Deepening Search
G5AIAI – Introduction to AI
Artificial Intelligence (CS 370D)
Breadth-First Searches
Uniformed Search (cont.) Computer Science cpsc322, Lecture 6
Prof. Dechter ICS 270A Winter 2003
Problem Solving and Searching
فصل ۳ - حل مساله از طریق جستجو
Iterative Deepening Search
Artificial Intelligence
Breadth-First Searches
Problem Solving and Searching
Depth-First Searches Introduction to AI.
Artificial Intelligence Problem solving by searching CSC 361
Artificial Intelligence
Problem Solving by Searching Search Methods :
(1) Breadth-First Search  S Queue S
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #2
Artificial Intelligence
Reading: Chapter 4.5 HW#2 out today, due Oct 5th
Search Strategies CMPT 420 / CMPG 720.
Problem Solving by Searching Search Methods :
Depth-First Searches.
Presentation transcript:

Uniform Cost Search Introduction to AI

Uniform cost search A breadth-first search finds the shallowest goal state and will therefore be the cheapest solution provided the path cost is a function of the depth of the solution. But, if this is not the case, then breadth-first search is not guaranteed to find the best (i.e. cheapest solution). Uniform cost search remedies this by expanding the lowest cost node on the fringe, where cost is the path cost, g(n). In the following slides those values that are attached to paths are the cost of using that path.

Consider the following problem… B C SG A We wish to find the shortest route from node S to node G; that is, node S is the initial state and node G is the goal state. In terms of path cost, we can clearly see that the route SBG is the cheapest route. However, if we let breadth-first search loose on the problem it will find the non-optimal path SAG, assuming that A is the first node to be expanded at level 1. Press space to see a UCS of the same node set…

S Size of Queue: 0 Nodes expanded: 0 Queue: Empty Current action: Waiting….Current level: n/a UNIFORM COST SEARCH PATTERN Press space to begin the search Current action: ExpandingCurrent level: 0 Queue: SSize of Queue: 1 A B C Size of Queue: 3Queue: A, B, C We start with our initial state and expand it…Node S is removed from the queue and the revealed nodes are added to the queue. The queue is then sorted on path cost. Nodes with cheaper path cost have priority.In this case the queue will be Node A (1), node B (5), followed by node C (15). Press space. We now expand the node at the front of the queue, node A. Press space to continue. Nodes expanded: 1 S Current level: 1 G Node A is removed from the queue and the revealed node (node G) is added to the queue. The queue is again sorted on path cost. Note, we have now found a goal state but do not recognise it as it is not at the front of the queue. Node B is the cheaper node. Press space. 10 A Nodes expanded: 2 Queue: B, G 11, C Current action: BacktrackingCurrent level: 0Current level: 1Current action: Expanding 5 Nodes expanded: 3 Queue: G 10, G 11, C 15 B Once node B has been expanded it is removed from the queue and the revealed node (node G) is added. The queue is again sorted on path cost. Note, node G now appears in the queue twice, once as G 10 and once as G 11. As G 10 is at the front of the queue, we now proceed to goal state. Press space. Current level: 2 Queue: EmptySize of Queue: 0 FINISHED SEARCH GGGGG The goal state is achieved and the path S-B-G is returned. In relation to path cost, UCS has found the optimal route. Press space to end.