Artificial Intelligence. Uninformed Search Strategies

Similar documents
Uninformed search methods

Uninformed search methods II.

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

Uninformed Search Strategies

Uninformed search methods II.

CSE 3401: Intro to AI & LP Uninformed Search II

Uninformed search methods

CSE 3402: Intro to Artificial Intelligence Uninformed Search II

Problem Solving Agents

Uninformed search strategies

Solving Problems by Searching chap3 1. Problem-Solving Agents

COMP9414: Artificial Intelligence Uninformed Search

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

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

Problem Solving as Search - I

Representation. Representation. Representation. Representation. 8 puzzle.

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

Uninformed Search (Ch )

CSC384: Introduction to Artificial Intelligence. Search

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

Uninformed Search (Ch )

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

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

SEARCH TREE. Generating the children of a node

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

CS 4649/7649 Robot Intelligence: Planning

Better Search Improved Uninformed Search CIS 32

Depth-bounded Discrepancy Search

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

G53CLP Constraint Logic Programming

Decision Trees. an Introduction

Transposition Table, History Heuristic, and other Search Enhancements

6.034 Artificial Intelligence

/435 Artificial Intelligence Fall 2015

Algorithms and Data Structures

CS 4649/7649 Robot Intelligence: Planning

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

Provably Secure Camouflaging Strategy for IC Protection

Advanced Search Hill climbing

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

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

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

CT PET-2018 Part - B Phd COMPUTER APPLICATION Sample Question Paper

Balanced Binary Trees

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

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

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

Exercise 11: Solution - Decision tree

Pedestrian Dynamics: Models of Pedestrian Behaviour

MA PM: Memetic algorithms with population management

Evacuation Time Minimization Model using Traffic Simulation and GIS Technology

Planning and Acting in Partially Observable Stochastic Domains

Aryeh Rappaport Avinoam Meir. Schedule automation

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

A new Decomposition Algorithm for Multistage Stochastic Programs with Endogenous Uncertainties

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

Surf Survey Summary Report

Model-based Adaptive Acoustic Sensing and Communication in the Deep Ocean with MOOS-IvP

Neural Nets Using Backpropagation. Chris Marriott Ryan Shirley CJ Baker Thomas Tannahill

Examples of Carter Corrected DBDB-V Applied to Acoustic Propagation Modeling

Optimization and Search. Jim Tørresen Optimization and Search

Mechanical Waves and Sound

CS 4649/7649 Robot Intelligence: Planning

i) Linear programming

Running the Table: An AI for Computer Billiards

Computational Models: Class 6

CS 4649/7649 Robot Intelligence: Planning

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

Neo4j Exercise 2. Spatial Procedures

CSC242: Intro to AI. Lecture 21

Pedestrian Crosswalk Audit

MOREHEAD CITY HARBOR, NC. Dredged Material Management Plan (DMMP)

Planning. In the following: Figure 3.1 and Table 3.1: a. Table 3.1 completed 2. Tasks Previous task Start date End date Duration Resources (humans)

A Numerical Simulation of Fluid-Structure Interaction for Refrigerator Compressors Suction and Exhaust System Performance Analysis

Lecture 04 ( ) Hazard Analysis. Systeme hoher Qualität und Sicherheit Universität Bremen WS 2015/2016

Analysis of Professional Cycling Results as a Predictor for Future Success

A LIFE OF THE WELL ARTIFICIAL LIFT STRATEGY FOR UNCONVENTIONAL WELLS

The system design must obey these constraints. The system is to have the minimum cost (capital plus operating) while meeting the constraints.

PHYS Tutorial 7: Random Walks & Monte Carlo Integration

Problem-Solving: A* and Beyond. CSCI 3202, Fall 2010

Progress with the Road Investment Strategy

Pedestrian Behaviour Modelling

Hydraulic Modeling to Aid TDG Abatement at Boundary and Cabinet Gorge Dams

Citizen Advisory Group Meeting #8 May 5, Welcome. Today s meeting will focus on: Land Use & Transportation CHARLOTTEPLANNING.

Ordering Rational Numbers

CS 4649/7649 Robot Intelligence: Planning

TERMINATION FOR HYBRID TABLEAUS

Lab 4: Root Locus Based Control Design

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

GMS 10.0 Tutorial SEAWAT Viscosity and Pressure Effects Examine the Effects of Pressure on Fluid Density with SEAWAT

Torpedoes on Target: EAs on Track

Unit 4: Inference for numerical variables Lecture 3: ANOVA

4. Please Do Break the Crystal

Kick me. Kicking ScrumBut. Rowan Bunning. Certified Scrum Trainer Software WithStyle

Methods for the Anisotropic Wavelet Packet Transform

Dispatching Universität Karlsruhe, System Architecture Group

An Efficient Code Compression Technique using Application-Aware Bitmask and Dictionary Selection Methods

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

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

1.1 The size of the search space Modeling the problem Change over time Constraints... 21

Transcription:

Artificial Intelligence Uninformed search strategies Uninformed Search Strategies Uninformed strategies use only the information available in the problem definition Also called Blind Search No info on number of steps or path cost from current state to goal state Only distinguish goal state from non-goal state Consider route-finding problem ( to Bucharest) Uninformed search has no preference of which to choose first between the three states connected to Informed (heuristic) search might notice that only is in the direction of to Bucharest 2 1

Uninformed Search Methods Types Breadth-first search Uniform-cost search Depth-first search Depth-limited search Iterative deepening search Strategies differ by the order in which nodes are expanded 3 Breadth-First Search Expand root node, then expand all successors, then their successors, and so on Expand shallowest unexpanded node first Left-to-right or right-to-left ordering All nodes at level d are expanded before level d+1 Root node is level d = 0 Method finds the shallowest goal state Queue implementation Put expanded nodes at end of queue 4 2

BFS Example: Romania 5 BFS Example: Romania 6 3

BFS Example: Romania Oradea 7 BFS Example: Romania Oradea Oradea Fagaras Rimn icu Vilcea 8 4

BFS Example: Romania Oradea Oradea Fagaras Rimn icu Vilcea Lugoj 9 Properties of Breadth-First Search Complete (good) If branching fact b is finite Space nodes generated (exponential - bad) O(b d+1 ) = b + b 2 + + b d + (b d+1 b), d = goal depth Assume goal is last node (e.g., rightmost) at depth d Goal state is not expanded Big limitation (need lots of space) Depth=10, branching=10, space=1000 bytes/node (101 terabytes!) Time (bad) Same as space Optimality (good) Not in general, shallowest may not be optimal path cost 10 Optimal if path cost non-decreasing function of node depth 5

Uniform-Cost Search Modified breadth-first strategy Expand least-cost unexpanded leaf node first (rather than lowest-depth as in BFS) General additive cost function (not cost from current state to goal! not informed search!!) Guaranteed to be the cheapest solution Otherwise it would have been expanded earlier Queue implementation Insert nodes in order of increasing path cost 11 Romania Step Costs in km 75 Oradea 71 151 Neamt 87 Iasi 118 140 111 70 75 Debreta Sibiu Fagaras 99 80 Rimnicu Vilcea 97 Pitesti Lugoj 146 Mehadia 138 120 Craiova 211 101 92 142 98 85 Urziceni 90 Bucharest Giurgiu Vaslui Hirsova 86 Eforie 12 6

UCS Example: Romania 13 UCS Example: Romania 75 140 118 g = 75 g = 140 g = 118 14 7

UCS Example: Romania 75 140 118 75 71 g = 140 g = 118 Oradea g = 75 + 71=146 15 UCS Example: Romania 75 140 118 75 71 g = 140 118 111 Oradea Lugoj g = 75 + 71=146 g = 118 + 111 = 229 16 8

Properties of Uniform Cost Search Complete (good) Time and space (can be bad) Can be much greater than b d Can explore large subtrees of small steps before exploring large (and perhaps useful) steps Optimal (good) 17 Depth-First Search Always expand deepest unexpanded node (on the fringe) first Left-to-right or right-to-left ordering Only when hit dead-end (leaf) does search go back and expand nodes at next shallower level Queue implementation Insert expanded nodes at front of queue (stack) 18 9

DFS Example: Romania 19 DFS Example: Romania 20 10

DFS Example: Romania Oradea 21 DFS Example: Romania Oradea Depth-first search can perform infinite cyclic excursions if not check for repeated-states! 22 11

DFS Example:Depth-3 Binary Tree 23 DFS Example:Depth-3 Binary Tree 24 12

DFS Example:Depth-3 Binary Tree 25 DFS Example:Depth-3 Binary Tree 26 13

DFS Example:Depth-3 Binary Tree 27 DFS Example:Depth-3 Binary Tree 28 14

DFS Example:Depth-3 Binary Tree 29 DFS Example:Depth-3 Binary Tree 30 15

DFS Example:Depth-3 Binary Tree 31 DFS Example:Depth-3 Binary Tree 32 16

Properties of Depth-First Search Potentially not complete (can be bad) Fails in infinite-depth spaces or with loops Time (bad) O(b m ), m=maximum depth Bad if m is larger than depth of goal (d) Good if multiple solutions (hit one) Space (better) O(mb), linear space (keep only leaf nodes as you go ) b leaf nodes at each level stored (up to level m) Optimality (bad) No, it returns the first deepest solution, so it could miss a shallower solution it has not yet seen (even at low depth) 33 Depth-Limited Search Depth-first search with depth limit of l Avoids pitfalls of depth-first search by imposing a cutoff (stop) depth Implementation Depth-first queue with nodes at depth l having no successors With 20 cities in the to Bucharest example, know that a solution length < 20 exists Guaranteed to find solution (if exists), but not guaranteed to find shortest solution Complete (if depth limit big enough), but not optimal Time and space complexity of depth-first search 34 17

Iterative Deepening Search Sidesteps issue of choosing best depth limit Not really know a good depth limit for most problems Try all possible depth limits First depth 0, then depth 1, then depth 2, May seem wasteful, but overhead is not very costly Because most of the nodes are toward bottom of tree Not costly to generate upper nodes multiple times Preferred method with large search space and depth of solution not known 35 Iterative Deepening Search: l=0 [Stop] 36 18

Iterative Deepening Search: l=1 37 Iterative Deepening Search: l=1 [Stop] 38 19

Iterative Deepening Search: l=2 39 Iterative Deepening Search: l=2 40 20

Iterative Deepening Search: l=2 Oradea 41 Iterative Deepening Search: l=2 Oradea Oradea Fagaras Rimn icu Vilcea 42 21

Iterative Deepening Search: l=2 Oradea Oradea Fagaras Rimn icu Vilcea Lugoj [Stop] 43 Properties of Iterative Deepening Search Complete (good) Time (not too bad) O(b d ), where d is depth of shallowest solution Breadth-first finds shallowest (good for path cost when is non-decreasing function of the depth) Space (good) O(bd) as in depth-first Optimality (good) Yes IDS combines benefits of depthfirst and breadth-first search 44 22

Properties of Iterative Deepening Search Nodes generated when goal at depth d (bottom level; root is depth 0) with branching factor b (d)b + (d-1)b 2 + + (1)b d O(b d ) Children of root generated d times Nodes at bottom generated once Note: root node always generated/available 45 Properties of Iterative Deepening Search Compare to Breadth-first search b + b 2 + + b d + (b d+1 b ) O(b d+1 ) Assume goal is last node (e.g., rightmost) at depth d These are nodes already put in the queue/stack from the non-goal nodes at depth d (though not examined later) Depth-first search does not have these extra nodes Comparison for b = 10 and d = 5 #nodes(ids) = 123,450 #nodes(bfs) = 1,111,100 46 23

When To Use Iterative Deepening Search? In general, Iterative Deepening is the preferred uniformed search method when there is a large search space and the depth of the solution is not known. 47 In-Class Exercise F 1 E 4 G 1 H start 1 2 A I goal 2 1 B C 2 D 48 24

Search Tree Order child nodes alphabetically left to right YES NO A D D A 49 Search Tree 50 25

Search Tree A B E C D F G H I goal 51 Breadth-First Search A B E C D F G H I goal A B E C D F G H I solution path: A E G I 52 26

Depth-First Search A B E C D F G H I goal A B C D E F G H I solution path: A E G I 53 Uniform-Cost Search A 2 1 B E 1 2 1 4 C D F G 1 2 H I goal 54 27

Uniform-Cost Search A 2 1 2 B E 1 1 2 1 4 C D F G 1+4 = 5 2+1 = 3 2+2 = 4 1+1 = 2 1 2 1+4 +1= 6 H I 1+4 +2= 7 goal 55 Uniform-Cost Search A 2 1 2 B E 1 1 2 1 4 C D F G 1+4 = 5 2+1 = 3 2+2 = 4 1+1 = 2 1 2 1+4 +1= 6 H I 1+4 +2= 7 goal A E B F C D G H I solution path: A E G I (Note: B & F have same cost!) 56 28

Summary Breadth-first search Expands shallowest node in tree first Uniform-cost search Expands least-cost (additive) leaf node first Depth-first search Expands deepest node first Depth-limited search Limits how deep a depth-first search can go Iterative deepening search *** Depth-limited search with increasing limits until goal is found Combines benefits of BFS and DFS 58 29