SOLVING PROBLEMS BY SEARCHING

Slides:



Advertisements
Similar presentations
Uninformed Search in Prolog
Advertisements

Review: Search problem formulation
Uninformed search strategies
Artificial Intelligence Presentation
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
Problem Solving Agents A problem solving agent is one which decides what actions and states to consider in completing a goal Examples: Finding the shortest.
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.
Solving Problems by Searching Currently at Chapter 3 in the book Will finish today/Monday, Chapter 4 next.
CS 480 Lec 3 Sept 11, 09 Goals: Chapter 3 (uninformed search) project # 1 and # 2 Chapter 4 (heuristic search)
Implementation and Evaluation of Search Methods. Use a stack data structure. 1. Push root node of tree on the stack. 2. Pop the top node off the stack.
Artificial Intelligence for Games Uninformed search Patrick Olivier
CSC 423 ARTIFICIAL INTELLIGENCE
UNINFORMED SEARCH Problem - solving agents Example : Romania  On holiday in Romania ; currently in Arad.  Flight leaves tomorrow from Bucharest.
Artificial Intelligence Lecture No. 7 Dr. Asad Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Review: Search problem formulation
Toy Problem: Missionaries and Cannibals
Artificial Intelligence Methods Rao Vemuri Searching - 2.
Review: Search problem formulation Initial state Actions Transition model Goal state (or goal test) Path cost What is the optimal solution? What is the.
Solving Problems by Searching CPS Outline Problem-solving agents Example problems Basic search algorithms.
Artificial Intelligence
Search exploring the consequences of possible actions.
Lecture 3: Uninformed Search
G5BAIM Artificial Intelligence Methods Graham Kendall Searching.
Basic Problem Solving Search strategy  Problem can be solved by searching for a solution. An attempt is to transform initial state of a problem into some.
Goal-based Problem Solving Goal formation Based upon the current situation and performance measures. Result is moving into a desirable state (goal state).
Breadth First Search and Depth First Search. Greatest problem in Computer Science Has lead to a lot of new ideas and data structures Search engines before.
Chapter 3 Solving problems by searching. Search We will consider the problem of designing goal-based agents in observable, deterministic, discrete, known.
Artificial Intelligence Solving problems by searching.
Lecture 3 Problem Solving through search Uninformed Search
Lecture 3: Uninformed Search
ARTIFICIAL INTELLIGENCE
Uninformed (also called blind) search algorithms)
Breadth First and Depth First
Problem Solving Agents
Department of Computer Science
Introduction to Artificial Intelligence
Uninformed Search Chapter 3.4.
Problem Solving by Searching
Problem Solving as Search
Informed Search and Exploration
Artificial Intelligence (CS 370D)
Breadth-First Searches
Solving problems by searching
CS 188: Artificial Intelligence Spring 2007
Lecture 1B: Search.
Problem Solving and Searching
What to do when you don’t know anything know nothing
EA C461 – Artificial Intelligence
Artificial Intelligence
Searching for Solutions
Breadth-First Searches
Problem Solving and Searching
Depth-First Searches Introduction to AI.
Principles of Computing – UFCFA3-30-1
Tree Searching.
G5BAIM Artificial Intelligence Methods
Artificial Intelligence
(1) Breadth-First Search  S Queue S
Chap 4: Searching Techniques
Tree Searching.
Tree Searching.
Tree Searching.
UNINFORMED SEARCH -BFS -DFS -DFIS - Bidirectional
ARTIFICIAL INTELLIGENCE
CMSC 471 Fall 2011 Class #4 Tue 9/13/11 Uninformed Search
Solving Problems by Searching
Artificial Intelligence: Theory and Practice Ch. 3. Search
Search Strategies CMPT 420 / CMPG 720.
Solving Problems by Searching
Depth-First Searches.
Presentation transcript:

SOLVING PROBLEMS BY SEARCHING

Problem Solving Agent Problem-solving agents decide what to do by finding sequences of actions that lead to desirable states. Intelligent agents are supposed to act in such a way that the environment goes through a sequence of states that maximizes the performance measure. In its full generality, this specification is difficult to translate into a successful agent design. The task is somewhat simplified if the agent can adopt a goal and aim to satisfy it.

BREADTH FIRST SEARCH(BFS) One simple search strategy is a breadth-first search. In this strategy, the root node is expanded first, then all the nodes generated by the root node are expanded next, and then their successors, and so on. In general, all the nodes at depth d in the search tree are expanded before the nodes at depth d + 1. Breadth-first search can be implemented by calling the GENERAL-SEARCH algorithm with a queuing function that puts the newly generated states at the end of the queue, after all the previously generated states

ADVANTAGES OF BREADTH-FIRST SEARCH Breadth first search will never get trapped exploring the useless path forever. If there is a solution, BFS will definitely find it out. If there is more than one solution then BFS can find the minimal one that requires less number of steps.

DISADVANTAGES OF BREADTH-FIRST SEARCH The main drawback of Breadth first search is its  memory  requirement. Since each level of the tree must be saved in order to generate the next level, and the amount of memory is proportional to the number of nodes stored, the space complexity of BFS is O(bd). As a result, BFS is severely space-bound in practice so will exhaust the memory available on typical computers in a matter of minutes. If the solution is farther away from the root, breath first search will consume lot of time.

Depth First Search (DFS) Depth-first search always expands one of the nodes at the deepest level of the tree. Only when the search hits a dead end (a non-goal node with no expansion) does the search go back and expand nodes at shallower levels. This strategy can be implemented by GENERAL-SEARCH with a queuing function that always puts the newly generated states at the front of the queue. Because the expanded node was the deepest, its successors will be even deeper and are therefore now the deepest.