Problem Solving Agents

Slides:



Advertisements
Similar presentations
Artificial Intelligent
Advertisements

Solving problems by searching Chapter 3. Outline Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms.
Additional Topics ARTIFICIAL INTELLIGENCE
Review: Search problem formulation
Announcements Course TA: Danny Kumar
Uninformed search strategies
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
Comp 307 Problem Solving and Search Formalize a problem as State Space Search Blind search strategies Heuristic search.
May 12, 2013Problem Solving - Search Symbolic AI: Problem Solving E. Trentin, DIISM.
1 Chapter 3 Solving Problems by Searching. 2 Outline Problem-solving agentsProblem-solving agents Problem typesProblem types Problem formulationProblem.
Solving Problem by Searching Chapter 3. Outline Problem-solving agents Problem formulation Example problems Basic search algorithms – blind search Heuristic.
Solving problems by searching Chapter 3. Outline Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms.
Artificial Intelligence for Games Uninformed search Patrick Olivier
14 Jan 2004CS Blind Search1 Solving problems by searching Chapter 3.
EIE426-AICV 1 Blind and Informed Search Methods Filename: eie426-search-methods-0809.ppt.
UNINFORMED SEARCH Problem - solving agents Example : Romania  On holiday in Romania ; currently in Arad.  Flight leaves tomorrow from Bucharest.
14 Jan 2004CS Blind Search1 Solving problems by searching Chapter 3.
An Introduction to Artificial Intelligence Lecture 3: Solving Problems by Sorting Ramin Halavati In which we look at how an agent.
CS 380: Artificial Intelligence Lecture #3 William Regli.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2004.
Artificial Intelligence Chapter 3: Solving Problems by Searching
Solving problems by searching
Review: Search problem formulation Initial state Actions Transition model Goal state (or goal test) Path cost What is the optimal solution? What is the.
1 Problem Solving and Searching CS 171/271 (Chapter 3) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Solving Problems by Searching CPS Outline Problem-solving agents Example problems Basic search algorithms.
AI in game (II) 권태경 Fall, outline Problem-solving agent Search.
1 Solving problems by searching 171, Class 2 Chapter 3.
An Introduction to Artificial Intelligence Lecture 3: Solving Problems by Sorting Ramin Halavati In which we look at how an agent.
SOLVING PROBLEMS BY SEARCHING Chapter 3 August 2008 Blind Search 1.
A General Introduction to Artificial Intelligence.
Solving problems by searching 1. Outline Problem formulation Example problems Basic search algorithms 2.
Problem Solving by Searching
Solving problems by searching A I C h a p t e r 3.
Romania. Romania Problem Initial state: Arad Goal state: Bucharest Operators: From any node, you can visit any connected node. Operator cost, the.
WEEK 5 LECTURE -A- 23/02/2012 lec 5a CSC 102 by Asma Tabouk Introduction 1 CSC AI Basic Search Strategies.
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
EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS
Introduction to Artificial Intelligence
Uninformed Search Chapter 3.4.
Problem Solving by Searching
Uninformed Search Strategies
Problem Solving as Search
Problem solving and search
Artificial Intelligence (CS 370D)
Artificial Intelligence
هوش مصنوعی فصل سوم: حل مسئله با جستجو
Solving problems by searching
Lecture 1B: Search.
Problem Solving and Searching
CSE 4705 Artificial Intelligence
Artificial Intelligence
Searching for Solutions
Artificial Intelligence
Problem Solving and Searching
CS 2710, ISSP 2160 Foundations of Artificial Intelligence
Principles of Computing – UFCFA3-30-1
Solving problems by searching
Solving problems by searching
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #2
Solving problems by searching
Solving Problems by Searching
Search Strategies CMPT 420 / CMPG 720.
Solving Problems by Searching
CS440/ECE 448 Lecture 4: Search Intro
Solving problems by searching
Presentation transcript:

Problem Solving Agents Blind and Informed Searches

Problem Solving Agent

Problem Types Well defined Non well defined Initial state Operator(Successor and predecessor Functions) Goal Test Path cost function Non well defined Missing at least on criteria

Example 1: TSM In Romania On holiday in Romania; currently in Arad. Formulate goal: be in Bucharest Formulate problem: states: various cities actions: drive between cities Find solution: sequence of cities, e.g., Arad, Sibiu, Fagaras, Bucharest Goal Test> Are we in Bucharest. Cost Function> Sum of road lengths to the destination

TSM In Romania

Example 2: 8-Puzzel

Example 2: 8-Puzzel states??: integer locations of tiles (ignore intermediate positions) actions??: move blank left, right, up, down (ignore unjamming etc.) transition model??: effect of the actions goal test??: = goal state (given) path cost??: 1 per move [Note: optimal solution of n-Puzzle family is NP-hard]

Example Problems Toy problems Real-world problems vacuum cleaner agent 8-puzzle 8-queens Crypt arithmetic missionaries cannibals Real-world problems route finding traveling salesperson VLSI layout robot navigation assembly sequencing

Search Know the fundamental search strategies and algorithms uninformed search breadth-first, depth-first, uniform-cost, iterative deepening, bidirectional informed search best-first (greedy, A*), heuristics, memory-bounded Evaluate the suitability of a search strategy for a problem completeness, optimality, time & space complexity

Searching for Solutions Traversal of some search space from the initial state to a goal state legal sequence of actions as defined by operators The search can be performed on On a search tree derived from expanding the current state using the possible operators Tree-Search algorithm A graph representing the state space Graph-Search algorithm

Searching for Solutions

Uninformed search strategies Uninformed strategies use only the information available in the problem definition Breadth-first search Uniform-cost search Depth-first search Depth-limited search Iterative deepening search Bidirectional Search

BFS Expand shallowest unexpanded node (shortest path in the frontier)

Evaluation b: branching factor d: depth of the shallowest goal node m: depth of stop l: current depth N: Total number of genretaed Nodes

Evaluation Complete?? Yes (if b is finite) Optimal?? Yes (if cost = 1 per step); not optimal in general Time?? b^d Number of nodes generated: 1 + b + b^2 + … + b^d Space?? b^d Space is the big problem; can easily generate nodes at 100MB/sec so 24hrs = 8640GB.

Uniform-cost search Expand first least-cost path (Equivalent to breadth-first if step costs all equal) Implementation: fringe = priority queue ordered by path cost, lowest first

Depth First Search

DFS Depth first search is another way of traversing graphs, which is closely related to preorder traversal of a tree. Recall that preorder traversal simply visits each node before its children. It is most easy to program as a recursive routine. Complete?? No Optimal?? No Time?? b^d Space?? b*d

Depth limited search A version of DFS in which l is defined by an expert There is a chance of converging to local optima Complete?? Yes(if l>d) Optimal?? Yes Time?? b^l Space?? b*l

Iterative Deeping Search(IDS) This search strategy always expands one node to the deepest level of the tree. Only when a dead-end is encountered does the search backup and expand nodes at shallower levels. N=(d+1)1+(d)b+(d-1)b2+...+(3)bd-2+(2)bd-1+bd

IDS Evaluation Complete?? Yes Optimal?? Yes Time?? b^d Space?? b.d

Bidirectional search Idea: Run two simultaneous searches. One Forward from initial state One Backward from goal state Until two fingers met

Summary