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

Similar documents
Problem Solving Agents

Problem Solving as Search - I

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

Uninformed search methods

Uninformed search methods II.

Uninformed Search Strategies

Uninformed Search (Ch )

Uninformed Search (Ch )

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

Artificial Intelligence. Uninformed Search Strategies

Solving Problems by Searching chap3 1. Problem-Solving Agents

Uninformed search methods

Uninformed search methods II.

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

CS 4649/7649 Robot Intelligence: Planning

COMP9414: Artificial Intelligence Uninformed Search

Representation. Representation. Representation. Representation. 8 puzzle.

Better Search Improved Uninformed Search CIS 32

CSE 3401: Intro to AI & LP Uninformed Search II

Uninformed search strategies

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

CSE 3402: Intro to Artificial Intelligence Uninformed Search II

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

SEARCH TREE. Generating the children of a node

/435 Artificial Intelligence Fall 2015

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

CSC384: Introduction to Artificial Intelligence. Search

Depth-bounded Discrepancy Search

G53CLP Constraint Logic Programming

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

6.034 Artificial Intelligence

Transposition Table, History Heuristic, and other Search Enhancements

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

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

Pedestrian Dynamics: Models of Pedestrian Behaviour

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

COLREGS Based Collision Avoidance of Unmanned Surface Vehicles

Algorithms and Data Structures

Percymon: A Pokemon Showdown Artifical Intelligence

Analysis of Professional Cycling Results as a Predictor for Future Success

Application of Bayesian Networks to Shopping Assistance

Advanced Search Hill climbing

Computational Models: Class 6

multipitchclimbing.com

CS 4649/7649 Robot Intelligence: Planning

Decision Trees. an Introduction

Train Times. 11 December 2011 to 13 May London Paddington to Greenford

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

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

PLAY DAY Hand Book 2017 Revised 12/26/16

A new Decomposition Algorithm for Multistage Stochastic Programs with Endogenous Uncertainties

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

Planning and Acting in Partially Observable Stochastic Domains

SAFE EGRESS FROM DEEP STATIONS Flawed Criteria in NFPA 130

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

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

How It Works! Make more profit from your betting at Betting Speed Evolution and the Race Advisor

Instruction Cache Compression for Embedded Systems by Yujia Jin and Rong Chen

Opleiding Informatica

Optimization and Search. Jim Tørresen Optimization and Search

Agent Based Urban Models The Notting Hill Carnival Model

03/11/2017. Critical Determinants of Sprint Hurdle Performance. Dr Paul Brice Consultant Biomechanist. Applied Biomechanical Support Track + Field

The Mathematics of Gambling

Taking Your Class for a Walk, Randomly

July 2011, Number 62 ALL-WAYS TM NEWSLETTER

Poseidon Team Description Paper RoboCup 2016, Leipzig, Germany

Standard League Robot Soccer EV3 Compass Training Curriculum Brian Thomas

[Check Out A Short Video Of The Ratings Software >Here<]

The Mystery Tube. Purpose: The students will be able to. Experience the process of science first-hand. Use a constructed model to test a hypothesis.

Start - All Programs - Class Software - Scratch - Scratch move move move Sound play drum move move move play drum Control forever forever forever

APPLICATION OF MODEL WAYOUT OF FIREWIND SOFTWARE PACKAGE

Planning. CS 510: Intro to AI October 19 th 2017

CSC242: Intro to AI. Lecture 21

Multi-Reactive Planning for Real-Time Strategy Games

FEATURES. Features. UCI Machine Learning Repository. Admin 9/23/13

Safe-T-Stopper. Gas-Free* Service Tee Renewal and Removal for CenterPoint Energy. *In a controlled gas environment

CS 4649/7649 Robot Intelligence: Planning

Virgin Money London Marathon 2018 RUNNER S GUIDE

July 2010, Number 58 ALL-WAYS TM NEWSLETTER

4. Please Do Break the Crystal

Distributed Control Systems

Junction design rules for urban traffic networks

NFL Overtime-Is an Onside Kick Worth It?

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

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

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

Exercise 11: Solution - Decision tree

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

Lesson 14: Games of Chance and Expected Value

Which compressed air system design is right for you?

Volleyball Tryout Games & Drills

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

Ocean Fishing Fleet Scheduling Path Optimization Model Research. Based On Improved Ant Colony Algorithm

Grand Slam Tennis Computer Game (Version ) Table of Contents

WEEK #1 44 MILES MONDAY, JULY 15, 2014 DAY OFF

Delivering the next generation of road mapping for England and Wales

Handicapping Process Series

Developing a Javelin Run-Up

ROSEMARY 2D Simulation Team Description Paper

Transcription:

Introduction AI and Searching We have seen how models of the environment allow an intelligent agent to dry run scenarios in its head without the need to act Logic allows premises to be tested Machine learning models allow predictions to be made How do we use this to act intelligently? 1 2 Simple Example An intelligent agent runs behind your bank s web site It has a model of how consumers with different profiles act: Given a profile and a product, they can deduce whether or not the customer would buy the product (or the probability of it) To choose the best product to offer, it should make a prediction for every product available and choose the one with the highest probability (or the first one where Buy=True) Simple Example So the decision is a search for the best product It is a very small search, as there won t be too many products Such a simple decision making system can afford a simple search technique try every possibility until you find the one you want exhaustive search 3 4 Now a Bit Harder From Hammersmith to King s Cross Let s try and get around on the London Underground Our simple model tells us: Which lines leave a given station The next station on any given line in a given direction This is what a human would know without a map 5 6 1

From Hammersmith to King s Cross We start in Hammersmith with a choice of three lines: Piccadilly District City First Step We don t know where the lines go, our system just tells us which lines we can choose (like the human with no map) So we choose the District line, pick a direction (East) and ask for the next station We are told it is Barons Court We check to see if we are at the goal (King s Cross). We are not. Now what? 7 8 Second Step We could repeat the process above, picking lines at random where there is a choice, and travelling through stations where no change is possible In the end, we would probably find King s Cross, but it could take years. We would also waste a lot of time in stations we had been to in the past This is a random search and is useless Tree Searches Let s try to be a bit more structured about things Let s also assume that we can give up at any time and return to Hammersmith (which we can, because we are running the model in our head, not the real tube) Search trees represent decisions at each step of a multi-step search problem 9 10 The London Underground Tree Tree Searching Strategies Start node Well, a bit of it anyway The tree s nodes represent decisions, so to cover the whole space in a structured way, you need to traverse every node of the tree until you find the goal. 11 We will look at four uninformed, tree searching strategies That is, there is no feedback (or it is not used) relating to how close to the goal you are, other than Yes or No. Breadth first search Depth first search Depth limited search Iterative deepening search 12 2

Where is the Tree? Although it is possible to represent an environment as an explicit search tree, in reality the tree would be too big to store, as it would need to contain every possible combination of situations and actions in the environment So think of the tree as virtual it is a tree of possibilities, but only those that you try are actually realised Asking for all the possible actions at a given node is known as expanding that node Breadth First Search Search each option in turn at every decision point If the goal is not found, return to the first node at the next level and repeat the process Involves jumping across to nodes at the same level in the tree rather than always following branches 13 14 Breadth First From Hammersmith Breadth First Search From Hammersmith, try every line in turn, but only go until we hit a new choice If they all fail, then its back to Paddington to try the next four from there The order of the breadth first search of the tree above is A B C D E F G 15 16 Depth First Search Depth first search follows a single route to the end of the tree, taking the first unexplored branch on the left each time If the goal is not there, back up one step and try the next branch A more natural traversal as it follows branches to their conclusion No new branch at a given level is tried until all options below the current branch have been explored Depth First From Hammersmith From Hammersmith, City line first, first branch is at Paddington, then choose Bakerloo to Baker Street, then Jubilee to its end fail Go back one step to Baker Street, try City find King s Cross! 17 18 3

Depth First Search The order of the breadth first search of the tree above is A B D E C F G Depth Limited Search Remember that the tree is virtual, not an actual representation of all possible decisions So a route can take us in a loop back to a state (or station in this example) we were in before, but we wouldn t know the same state can appear many times in a tree Depth first search could loop round forever as there would never be a leaf node to end on Also, if a particular route is taking longer than we think the true path should take, it makes sense to abandon it unfinished and back-track Depth Limited search does this 19 20 Depth Limited Search Simply carry out a depth first search but terminate any search path after a given number of steps Removes risk of looping forever Allows searches that are taking too long to be terminated Too long is defined as d, the stopping depth Limited Depth First From Hammersmith to Paddington to Baker Street, to Oxford Circus, to Bond Street to Baker Street Now, this is not the same Baker street as before logically it is further down the tree so we repeat the loop forever, unless stopped by the depth first criteria. 21 22 Limited Depth First Search Iterative Deepening Search The order of the breadth first search of the tree above is A B C when d is set to 1 (follow 1 branch) What if we set our limited depth search to 10, but the solution is at depth 12? Iterative deepening search allows a tree to be explored to a sensible depth in its entirety If that search fails, a new, greater depth is tried With no knowledge about the problem, you should use d=1, d=2, d=3 and so on With some knowledge about where the solution might be, d could be set with more sense 23 24 4

That Looks Familiar Isn t that just a less efficient version of breadth first? The order of new nodes visited is the same Well, yes and no. IDS turns out to be far MORE efficient than BFS. The next slides compare the different techniques and you ll see why Comparing Techniques Let s assume that at every decision point, you have b choices and there are d levels That is b choices at the root node b 2 choices at level 1 b 3 choices at level 2 b d+1 choices at level d To cover the whole tree takes O(b d+1 ) time Is that bad? Well, a depth of 12 with 10 decision choices would take over 30 years! 25 26 Time For Each Technique Breadth first takes O(b d+1 ) where d is the level of the shallowest solution Depth first takes O(b m ) where m is the maximum depth of the tree Limited depth first takes O(b l ) where l is the limit of the search depth. l is less than m, but the search might fail Iterative deepening takes O(b d ) time it is actually quicker than breadth first. It Gets Worse The tree search algorithms require you to remember where you have been That requires a stack where visited nodes are placed and removed in order to backtrack to complete traversals Not all search techniques use the same amount of memory 27 28 Memory Usage Breadth first uses O(b d+1 ) memory, which, as we have seen, is an awful lot Depth first uses O(bm) memory, which is much better Depth limited search uses O(bl) memory, where l is the depth limit also very good Iterative deepening search uses O(bd) memory so it is MUCH more efficient than breadth first Human Decision Making If you made one binary decision each day, and their effects persisted, you could be in one of two possible states at the end of the first day Each of those possible states has a binary choice, so after the second day there are four possible states, then eight after three days and 16 after four days After just one month, making one decision a day, you would find yourself in one state out of a possible 2 32 = around 43 billion states! 29 30 5

Conclusion AI involves a lot of searching Problem solving can be thought of as simulating every possible solution via a model of the environment until the solution is found Useful for chess playing programs Not so good for fast driving over desert terrain or longer term planning 31 6