G5AIAI – Introduction to AI

Slides:



Advertisements
Similar presentations
Review: Search problem formulation
Advertisements

Quiz 4-26-’07 Search.
G5AIAI Introduction to AI
Comp 307 Problem Solving and Search Formalize a problem as State Space Search Blind search strategies Heuristic search.
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.
Uniform Cost Search Introduction to AI. Uniform cost search A breadth-first search finds the shallowest goal state and will therefore be the cheapest.
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.
CSC 423 ARTIFICIAL INTELLIGENCE
Artificial Intelligence (CS 461D)
Lecture 3 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
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.
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.
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?
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
Graphs II Robin Burke GAM 376. Admin Skip the Lua topic.
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.
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.
Informed Search I (Beginning of AIMA Chapter 4.1)
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).
Informed Search Reading: Chapter 4.5 HW #1 out today, due Sept 26th.
Informed Search CSE 473 University of Washington.
Introduction to Artificial Intelligence (G51IAI) Dr Rong Qu Blind Searches - Introduction.
CPSC 322, Lecture 6Slide 1 Uniformed Search (cont.) Computer Science cpsc322, Lecture 6 (Textbook finish 3.5) Sept, 17, 2012.
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.
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.5 Heuristic Search. Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Lecture 3 Problem Solving through search Uninformed Search
Lecture 3: Uninformed Search
Uniformed Search (cont.) Computer Science cpsc322, Lecture 6
ARTIFICIAL INTELLIGENCE
Iterative Deepening Search
Uninformed Search Chapter 3.4.
Uninformed Search Strategies
Problem Solving as Search
Artificial Intelligence (CS 370D)
Breadth-First Searches
Uniformed Search (cont.) Computer Science cpsc322, Lecture 6
Prof. Dechter ICS 270A Winter 2003
Lecture 1B: Search.
Breadth First Search 11/21/ s
Problem Solving and Searching
What to do when you don’t know anything know nothing
Iterative Deepening Search
Artificial Intelligence
Searching for Solutions
Breadth-First Searches
Problem Solving and Searching
Depth-First Searches Introduction to AI.
Artificial Intelligence Problem solving by searching CSC 361
Artificial Intelligence
A General Backtracking Algorithm
Problem Solving by Searching Search Methods :
CO Games Development 1 Week 8 Depth-first search, Combinatorial Explosion, Heuristics, Hill-Climbing Gareth Bellaby.
(1) Breadth-First Search  S Queue S
CSE 473 University of Washington
Breadth First Search s
Breadth First Search s
Artificial Intelligence
CMSC 471 Fall 2011 Class #4 Tue 9/13/11 Uninformed Search
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:

G5AIAI – Introduction to AI Uniform Cost Search G5AIAI – 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.

A S B G C 10 1 5 5 5 15 Consider the following problem… 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…

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. 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 G10 and once as G11. As G10 is at the front of the queue, we now proceed to goal state. Press space. We now expand the node at the front of the queue, node A. Press space to continue. 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 start with our initial state and expand it… A A 10 1 5 5 S S B B G G G G G G 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. 15 C Press space to begin the search Size of Queue: 3 Size of Queue: 1 Size of Queue: 0 Size of Queue: 0 Queue: B, G11, C Queue: G10, G11, C15 Queue: Empty Queue: A, B, C Queue: Empty Queue: S Nodes expanded: 3 Nodes expanded: 1 Nodes expanded: 2 Nodes expanded: 0 Current action: Expanding FINISHED SEARCH Current action: Waiting…. Current action: Expanding Current action: Backtracking Current level: 1 Current level: n/a Current level: 0 Current level: 0 Current level: 2 Current level: 1 UNIFORM COST SEARCH PATTERN