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

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

Solving Problems by Searching chap3 1. Problem-Solving Agents

Uninformed search methods

Uninformed search methods II.

Uninformed search methods

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

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

Uninformed search methods II.

Better Search Improved Uninformed Search CIS 32

Uninformed Search Strategies

Artificial Intelligence. Uninformed Search Strategies

Uninformed Search (Ch )

COMP9414: Artificial Intelligence Uninformed Search

Uninformed Search (Ch )

Representation. Representation. Representation. Representation. 8 puzzle.

SEARCH TREE. Generating the children of a node

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

Uninformed search strategies

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

CSE 3401: Intro to AI & LP Uninformed Search II

CSE 3402: Intro to Artificial Intelligence Uninformed Search II

CSC384: Introduction to Artificial Intelligence. Search

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

CS 4649/7649 Robot Intelligence: Planning

Aryeh Rappaport Avinoam Meir. Schedule automation

/435 Artificial Intelligence Fall 2015

Depth-bounded Discrepancy Search

G53CLP Constraint Logic Programming

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

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

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

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

Analysis of Professional Cycling Results as a Predictor for Future Success

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

Transposition Table, History Heuristic, and other Search Enhancements

Advanced Search Hill climbing

Optimization and Search. Jim Tørresen Optimization and Search

Summer Math. Math Activities (complete 2 or more):

Pedestrian Dynamics: Models of Pedestrian Behaviour

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

6.034 Artificial Intelligence

Algorithms and Data Structures

ATTACHMENT 4 - TDM Checklist. TDM Checklist Overview

CS 4649/7649 Robot Intelligence: Planning

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

The Evolution of Transport Planning

CS 4649/7649 Robot Intelligence: Planning

CMPUT680 - Winter 2001

Optimizing Cyclist Parking in a Closed System

Optimizing positional scoring rules for rank aggregation

A new Decomposition Algorithm for Multistage Stochastic Programs with Endogenous Uncertainties

I. Introduction. Lesson title: How does pressure effect a scuba diver at different depths?

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

CS 221 PROJECT FINAL

Analyzer Specifications Technical Bulletin

Using CBR to Select Solution Strategies in Constraint Programming

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

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

Navy Guidance and Tips for Using DOEHRS-IH Ventilation NAVY & MARINE CORPS PUBLIC HEALTH CENTER

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

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

MEETPLANNER DESIGN DOCUMENT IDENTIFICATION OVERVIEW. Project Name: MeetPlanner. Project Manager: Peter Grabowski

Application of Bayesian Networks to Shopping Assistance

Cyrus Soccer 2D Simulation

Scrum Basics. Prof. Casper Lassenius Aalto University

Lecture 5. Optimisation. Regularisation

Extensive Games with Perfect Information

CS 4649/7649 Robot Intelligence: Planning

Agent Based Urban Models The Notting Hill Carnival Model

A Proof-Producing CSP Solver 1

A Game-Theoretic Intelligent Agent for the Board Game Football Strategy

TIMETABLING IN SPORTS AND ENTERTAINMENT

Expanding Square Search Pattern HEY! I M OVER HERE!!!

B-Human 2017 Team Tactics and Robot Skills in the Standard Platform League

Piecewise Functions. Updated: 05/15/10

4. Please Do Break the Crystal

consist of friends, is open to all ages, and considers fair play of paramount importance. The matches are played without referees, since, according to

RoboCup-99 Simulation League: Team KU-Sakura2

Generating Efficient Breeding Plans for Thoroughbred Stallions

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

U10 Soccer Program Stage 3: Learning to Train

Tokyo: Simulating Hyperpath-Based Vehicle Navigations and its Impact on Travel Time Reliability

PROBABLE WEBELOS EVENTS 2014 CAMP-O-REE Webelos skills events may include any or all of the skills found in the Webelos Handbook.

Skills Practice Skills Practice for Lesson 17.1

Areas of Rectangles. Reteaching 31. Name. Practice:

At each type of conflict location, the risk is affected by certain parameters:

Percymon: A Pokemon Showdown Artifical Intelligence

Exercise 11: Solution - Decision tree

End of Chapter Exercises

Process Nature of Process

Quadratic Encoding of Optimized Humanoid Walking

PSM I PROFESSIONAL SCRUM MASTER

Gymnastics Year 3 and 4

Efficiency of Choice Set Generation Methods for Bicycle Routes

Mixture Models & EM. Nicholas Ruozzi University of Texas at Dallas. based on the slides of Vibhav Gogate

Transcription:

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

Topics Search Categories Breadth First Search Uniform Cost Search Depth First Search Depth Limited Search Iterative Deepening Search Bidirectional Search Constraint Satisfaction Search

Intelligent Agents An agent is something that perceives and acts in an environment An ideal agent always takes actions that maximizes its performance An agent adopts a goal and searches the best path to reach that goal

States and State-Spaces State: The set of all information items that describe a system at a given time. State space is the set of states that an intelligent agent can be in. An action takes the agent from one state to another one. State space search is finding a sequence of states starting from the initial state to the goal

Well-defined Problems A problem is well-defined if we can determine the followings: 1. The initial state 2. The set of possible actions available to the agent. 3. The goal test: The agent can apply to a single state to determine if it is a goal state. 4. A path cost function: A function that assigns a cost to a path.

Searching Assuming that the agent knows: how to define a problem, how to recognize a solution (goal), finding a solution is done by a search through the state space.

8-Puzzle Example A puzzle with 8 numbers (1 through 8) on 8 tiles and 1 empty place is given The goal is putting the numbers in order. Initially the numbers are distributed randomly. Actions: A tile can be slid into an adjacent empty place

8-Puzzle Example

8-Puzzle Example Each arrangement of the numbers on the board is a state. There can be many initial states but there is a single goal state Solution: Any sequence of actions that takes us to the goal state. A search in the state-space is needed to find a solution.

8 Queens Example 8 queens should be placed on a chess board so that they do not threaten each other. Each arrangement of the queens is a state. Actions: Change the position of a queen one square up/down/left/right Example actions: Move(Queen 3, left )

8 Queens Example: A sample state

8 Queens Problem: A goal state

Search Categories Un-informed Searches: If we have no extra information about the problem Informed Searches: If we have extra information about the problem.

Breadth-First Search In breadth first search we start from the root node Then visit all nodes at distance 1 from the root Next all nodes at distance 2 from the root Until A goal is found All nodes are visited

Example

When to Use Breadth First Search? When the search tree (state space) is too big. e.g. Playing Chess When a close solution is expected

Uniform Cost Search Breadth-first search finds the shallowest goal state, but this may not always be the least-cost solution. Uniform cost search modifies the breadth-first strategy by always expanding the lowest-cost node.

Uniform Cost Search Examples Assume a search tree has multiple goal states. Each link is labeled with a link-cost value Initial node is the root node.

Uniform Cost Search Examples

Depth First Search Depth-first search always expands one of the nodes at the deepest level of the tree. When the search reaches a non-goal node with no child node, the search goes back and expands nodes at upper levels.

Depth First Search Example

Depth Limited Search Depth-limited search avoids the problems of depth-first search by imposing a cutoff on the maximum depth of a path. This cutoff can be implemented with a special depth-limited search algorithm. For example, when finding a path from a city to another city, if we know that there are 20 cities, so we know that the solution must be of length 19 at most.

Depth Limited Search Example

Depth Limited Search Example If the search algorithm can remember which states have been visited before, then starting from A we have A, B, D, F, E, C, G Otherwise the search algorithm will be in an infinite loop: A, B, D, F, E, A, B, D, F, E, etc. Depth limited search can solve the problem. Max depth = 2 A, B, D, F, C, G, E, F

Iterative Deepening Search The hard part about depth-limited search is picking a good limit. However, for most problems, we will not know a good depth limit until we have solved the problem. Iterative deepening search starts with depth 0, then depth 1, then depth 2, and so on. In effect, iterative deepening combines the benefits of depth-first and breadth-first search.

Iterative Deepening Search Example Assume we are looking for a goal state in chess game. The state-space is very large The search for a goal cannot be done by a depth search algorithm because the whole graph cannot be expanded

Example: Depth = 0

Example: Depth =1 Visits: A, B, C

Example: Depth = 2 Visits: A, B, D, E, C, F, G, H

Example: Depth = 3 Visits: A, B, D, I, J, E, K, L, M C, F, N

Bidirectional Search The idea in bidirectional search is to search both forward from the initial state, and backward from the goal at the same time. The algorithm stops when the two searches meet in the middle

Constraint Satisfaction Search A constraint satisfaction problem (or CSP) is a special kind of problem that satisfies some extra conditions in addition to the basic requirements for problems. In a CSP, the goal test specifies a set of constraints that must be met. For example, the 8-queens problem can be viewed as a CSP with extra conditions about the locations of the queens.

Avoiding Repeating States There are three ways to avoid repeated states: 1. Do not return to the state that we just came from. 2. Do not create paths with cycles in them. 3. Do not generate any state that was ever generated before. This requires every state that is generated to be kept in memory.

Questions?