Uninformed search methods II.

Similar documents
Uninformed search methods II.

Uninformed search methods

Uninformed search methods

Uninformed Search (Ch )

Artificial Intelligence. Uninformed Search Strategies

Princess Nora University Faculty of Computer & Information Systems ARTIFICIAL INTELLIGENCE (CS 370D) Computer Science Department

Problem Solving Agents

Uninformed Search (Ch )

Uninformed Search Strategies

Solving Problems by Searching chap3 1. Problem-Solving Agents

CSE 3401: Intro to AI & LP Uninformed Search II

Problem Solving as Search - I

Search I. Tuomas Sandholm Carnegie Mellon University Computer Science Department. [Read Russell & Norvig Chapter 3]

COMP9414: Artificial Intelligence Uninformed Search

CENG 466 Artificial Intelligence. Lecture 4 Solving Problems by Searching (II)

CSE 3402: Intro to Artificial Intelligence Uninformed Search II

Uninformed search strategies

SEARCH SEARCH TREE. Node: State in state tree. Root node: Top of state tree

SEARCH TREE. Generating the children of a node

Representation. Representation. Representation. Representation. 8 puzzle.

CS 4649/7649 Robot Intelligence: Planning

Better Search Improved Uninformed Search CIS 32

COMP219: Artificial Intelligence. Lecture 8: Combining Search Strategies and Speeding Up

Overview. Depth Limited Search. Depth Limited Search. COMP219: Artificial Intelligence. Lecture 8: Combining Search Strategies and Speeding Up

Introduction. AI and Searching. Simple Example. Simple Example. Now a Bit Harder. From Hammersmith to King s Cross

Real World Search Problems. CS 331: Artificial Intelligence Uninformed Search. Simpler Search Problems. Example: Oregon. Search Problem Formulation

CSC384: Introduction to Artificial Intelligence. Search

SIDDHARTH INSTITUTE OF ENGINEERING & TECHNOLOGY :: PUTTUR (AUTONOMOUS) Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE)

Transposition Table, History Heuristic, and other Search Enhancements

Depth-bounded Discrepancy Search

6.034 Artificial Intelligence

/435 Artificial Intelligence Fall 2015

CS 4649/7649 Robot Intelligence: Planning

Application of Dijkstra s Algorithm in the Evacuation System Utilizing Exit Signs

Optimization and Search. Jim Tørresen Optimization and Search

Spider Search: An Efficient and Non-Frontier-Based Real-Time Search Algorithm

Algorithms and Data Structures

Advanced Search Hill climbing

CS 4649/7649 Robot Intelligence: Planning

CS 4649/7649 Robot Intelligence: Planning

G53CLP Constraint Logic Programming

CS 4649/7649 Robot Intelligence: Planning

Decision Trees. Nicholas Ruozzi University of Texas at Dallas. Based on the slides of Vibhav Gogate and David Sontag

Introduction to Algorithms

CS Lecture 5. Vidroha debroy. Material adapted courtesy of Prof. Xiangnan Kong and Prof. Carolina Ruiz at Worcester Polytechnic Institute

Torpedoes on Target: EAs on Track

If you need to reinstall FastBreak Pro you will need to do a complete reinstallation and then install the update.

COMP 406 Lecture 05. Artificial. Fiona Yan Liu Department of Computing The Hong Kong Polytechnic University

Planning and Acting in Partially Observable Stochastic Domains

COLREGS Based Collision Avoidance of Unmanned Surface Vehicles

The Evolution of Transport Planning

Provably Secure Camouflaging Strategy for IC Protection

Incremental ARA*: An Anytime Incremental Search Algorithm For Moving Target Search. University of Southern California Singapore Management University

Running the Table: An AI for Computer Billiards

Pedestrian Dynamics: Models of Pedestrian Behaviour

Efficient Minimization of Routing Cost in Delay Tolerant Networks

Heap Sort. Lecture 35. Robb T. Koether. Hampden-Sydney College. Mon, Apr 25, 2016

DESIGN AND ANALYSIS OF ALGORITHMS (DAA 2017)

Aryeh Rappaport Avinoam Meir. Schedule automation

Decision Trees. an Introduction

Robust Task Execution: Procedural and Model-based. Outline. Desiderata: Robust Task-level Execution

The Rule of Right-Angles: Exploring the term Angle before Depth

Bulgarian Olympiad in Informatics: Excellence over a Long Period of Time

CS 351 Design of Large Programs Zombie House

Application of Bayesian Networks to Shopping Assistance

Urban OR: Quiz 2 Solutions (2003) ( 1 ρ 1 )( 1 ρ 1 ρ 2 ) ( 1 12 )( ) σ S ] 24 [ 2 = 60, 2 2 ] ( 2 ) 3

CS472 Foundations of Artificial Intelligence. Final Exam December 19, :30pm

Analysis of Professional Cycling Results as a Predictor for Future Success

Building an NFL performance metric

Volume Studies CIVL 4162/6162

CMPUT680 - Winter 2001

Bicycle and Pedestrian Planning in a Historically Car-Centric Culture: A Focus on Connectivity, Safety, & Accessibility

PREDICTING the outcomes of sporting events

Shot-by-shot directional source deghosting and directional designature using near-gun measurements

Training Fees 3,400 US$ per participant for Public Training includes Materials/Handouts, tea/coffee breaks, refreshments & Buffet Lunch.

Applying Bi-objective Shortest Path Methods to Model Cycle Route-choice

A new Decomposition Algorithm for Multistage Stochastic Programs with Endogenous Uncertainties

Optimal Weather Routing Using Ensemble Weather Forecasts

Agent Based Urban Models The Notting Hill Carnival Model

ISyE 3103 Introduction to Supply Chain Modeling: Logistics Summer 2012 Homework 8 Issued: July 11, 2012 Due: July 18, 2012

Maximum CPU utilization is obtained by multiprogramming. CPU I/O Burst Cycle Process execution consists of a cycle of CPU execution and I/O wait

Estimating a Toronto Pedestrian Route Choice Model using Smartphone GPS Data. Gregory Lue

DECISION-MAKING ON IMPLEMENTATION OF IPO UNDER TOPOLOGICAL UNCERTAINTY

y ) s x x )(y i (x i r = 1 n 1 s y Statistics Lecture 7 Exploring Data , y 2 ,y n (x 1 ),,(x n ),(x 2 ,y 1 How two variables vary together

Ram Jagannathan, Joe Bared, Warren Hughes August 15th, 2006

PRELIMINARY DESIGN STUDY OF LUNAR HOUSING CONFIGURATIONS

IAC-06-D4.1.2 CORRELATIONS BETWEEN CEV AND PLANETARY SURFACE SYSTEMS ARCHITECTURE PLANNING Larry Bell

Has no formal authority but Coaches the Development Team in self-organization and crossfunctionality

TRANSIT SIGNAL PRIORITY The Toronto Experience

Self-Organizing Signals: A Better Framework for Transit Signal Priority

Evacuation Time Minimization Model using Traffic Simulation and GIS Technology

Basics of Proton Therapy. Proton Treatment Planning and Beam Optimization

How to use Smart Sessions Core Skills

Chapter 4 (sort of): How Universal Are Turing Machines? CS105: Great Insights in Computer Science

CSC242: Intro to AI. Lecture 21

Incompressible Potential Flow. Panel Methods (3)

UNIT V 1. What are the traffic management measures? [N/D-13] 2. What is Transportation System Management (TSM)? [N/D-14]

CMSC131. Introduction to Computational Thinking. (with links to some external Scratch exercises) How do you accomplish a task?

Machine Learning an American Pastime

Blocking time reduction for level crossings using the genetic algorithm

Transcription:

CS 1571 Introduction to AI Lecture 5 Uninformed search methods II. Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Uninformed methods Uninformed search methods use only information available in the problem definition Breadth-first search (BFS) Depth-first search (DFS) Iterative deepening (IDA) Bi-directional search For the minimum cost path problem: Uniform cost search 1

Properties of breadth-first search Completeness: Yes. The solution is reached if it exists. Optimality: Yes, for the shortest path. Time complexity: O( b d ) exponential in the depth of the solution d Memory (space) complexity: O( b d ) nodes are kept in the memory Properties of depth-first search Completeness: No. Infinite loops can occur. Optimality: No. Solution found first may not be the shortest possible. Time complexity: O( b m ) exponential in the maximum depth of the search tree m Memory (space) complexity: O(bm ) linear in the maximum depth of the search tree m 2

Limited-depth depth first search How to eliminate infinite depth-first exploration? Put the limit (l) on the depth of the depth-first exploration Limit l=2 l Not explored Time complexity: Memory complexity: O( b l ) O (bl ) l - is the given limit Iterative deepening algorithm (IDA) Based on the idea of the limited-depth search, but It resolves the difficulty of knowing the depth limit ahead of time. Idea: try all depth limits in an increasing order. That is, search first with the depth limit l=0, then l=1, l=2, and so on until the solution is reached Iterative deepening combines advantages of the depth-first and breadth-first search with only moderate computational overhead 3

Iterative deepening algorithm (IDA) Progressively increases the limit of the limited-depth depthfirst search Limit 0 Limit 1 Limit 2 Iterative deepening Cutoff depth = 0 Fagaras Lugoj 4

Iterative deepening Cutoff depth = 0 Fagaras Lugoj Iterative deepening Cutoff depth = 1 Fagaras Lugoj 5

Iterative deepening Cutoff depth = 1 Fagaras Lugoj Iterative deepening Cutoff depth = 1 Fagaras Lugoj 6

Iterative deepening Cutoff depth = 1 Fagaras Lugoj Iterative deepening Cutoff depth = 1 Fagaras Lugoj 7

Iterative deepening Cutoff depth = 2 Fagaras Lugoj Iterative deepening Cutoff depth = 2 Fagaras Lugoj 8

Iterative deepening Cutoff depth = 2 Fagaras Lugoj Iterative deepening Cutoff depth = 2 Fagaras Lugoj 9

Iterative deepening Cutoff depth = 2 Fagaras Lugoj Iterative deepening Cutoff depth = 2 Fagaras Lugoj 10

Completeness:? Properties of IDA Optimality:? Time complexity:? Memory (space) complexity:? Properties of IDA Completeness: Yes. The solution is reached if it exists. (the same as BFS when limit is always increased by 1) Optimality: Yes, for the shortest path. (the same as BFS) Time complexity:? Memory (space) complexity:? 11

IDA time complexity Level 0 Level 1 Level 2 Level d d O (1) O (b) 2 O ( b ) O( b d ) O ( b d ) Properties of IDA Completeness: Yes. The solution is reached if it exists. (the same as BFS) Optimality: Yes, for the shortest path. (the same as BFS) Time complexity: 1 2 d d O(1) O( b ) O( b ) O( b ) O( b ) exponential in the depth of the solution d worse than BFS, but asymptotically the same Memory (space) complexity:? 12

IDA memory complexity Level 0 Level 1 Level 2 Level d d O (1) O (b) O ( 2b) O (db ) O (db ) Properties of IDA Completeness: Yes. The solution is reached if it exists. (the same as BFS) Optimality: Yes, for the shortest path. (the same as BFS) Time complexity: 1 2 d d O(1) O( b ) O( b ) O( b ) O( b ) exponential in the depth of the solution d worse than BFS, but asymptotically the same Memory (space) complexity: O(db ) much better than BFS 13

Bi-directional search In some search problems we want to find the path from the initial state to the unique goal state (e.g. traveler problem) Bi-directional search idea: Initial state Goal state Search both from the initial state and the goal state; Use inverse operators for the goal-initiated search. Bi-directional search Why bidirectional search? What is the benefit? Assume BFS.? Initial state Goal state 14

Bi-directional search Why bidirectional search? What is the benefit? Assume BFS. Cut the depth of the search space by half Initial state Goal state d/2 d/2 O(b d/2 ) Time and memory complexity Bi-directional search Why bidirectional search? What is the benefit? Assume BFS It cuts the depth of the search tree by half. Initial state Goal state 15

Bi-directional search Why bidirectional search? Assume BFS. It cuts the depth of the search tree by half. What is necessary? Merge the solutions. Initial state Goal state Equal? How? Bi-directional search Why bidirectional search? Assume BFS. It cuts the depth of the search tree by half. What is necessary? Merge the solutions. Initial state Goal state Equal? How? The hash structure remembers the side of the tree the state was expanded first time. If the same state is reached from other side we have a solution. 16

Minimum cost path search Traveler example with distances [km] Optimal path: the shortest distance path between the initial and destination city Searching for the minimum cost path General minimum cost path-search problem: adds weights or costs to operators (links) Search strategy: Intelligent expansion of the search tree should be driven by the cost of the current (partially) built path Implementation: Path cost function for node n : g (n) length of the path represented by the search tree branch starting at the root of the tree (initial state) to n Search strategy: Expand the leaf node with the minimum g (n) first Can be implemented by the priority queue 17

Searching for the minimum cost path The basic algorithm for finding the minimum cost path: Dijkstra s shortest path In AI, the strategy goes under the name Uniform cost search Note: When operator costs are all equal to 1 the uniform cost search is equivalent to the breadth first search BFS Uniform cost search Expand the node with the minimum path cost first Implementation: a priority queue 0 queue g(n) 0 18

Uniform cost search queue g(n) 75 118 140 75 140 0 118 75 140 118 Uniform cost search g(n) 75 140 0 118 queue 118 140 146 150 75 140 118 75 71 150 146 19

Uniform cost search g(n) 0 queue 140 146 150 Lugoj 129 236 75 140 118 75 75 71 140 118 118 111 Lugoj 150 146 236 229 Properties of the uniform cost search Completeness:? Optimality:? Time complexity:? Memory (space) complexity:? 20

Properties of the uniform cost search Completeness: Yes, assuming that operator costs are nonnegative (the cost of path never decreases) g ( n) g (successor ( n)) Optimality: Yes. Returns the least-cost path. Time complexity: number of nodes with the cost g(n) smaller than the optimal cost Memory (space) complexity: number of nodes with the cost g(n) smaller than the optimal cost Elimination of state repeats Idea: A node is redundant and can be eliminated if there is another node with exactly the same state and a shorter path from the initial state Assuming positive costs: If the state has already been expanded, is there a shorter path to that node? 21

Elimination of state repeats Idea: A node is redundant and can be eliminated if there is another node with exactly the same state and a shorter path from the initial state Assuming positive costs: If the state was already expanded, is there a a shorter path to that node? No! Implementation: Marking with the hash table 22