For Friday Read chapter 4, sections 1 and 2 Homework –Chapter 3, exercise 7 –May be done in groups.

Slides:



Advertisements
Similar presentations
Review: Search problem formulation
Advertisements

Announcements Course TA: Danny Kumar
Uninformed search strategies
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
January 26, 2003AI: Chapter 3: Solving Problems by Searching 1 Artificial Intelligence Chapter 3: Solving Problems by Searching Michael Scherger Department.
Artificial Intelligence Problem Solving Eriq Muhammad Adams
G5AIAI Introduction to AI
Comp 307 Problem Solving and Search Formalize a problem as State Space Search Blind search strategies Heuristic search.
ICS-171:Notes 4: 1 Notes 4: Optimal Search ICS 171 Summer 1999.
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)
G5BAIM Artificial Intelligence Methods Graham Kendall Blind Searches.
Blind Search1 Solving problems by searching Chapter 3.
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.4) January, 14, 2009.
May 12, 2013Problem Solving - Search Symbolic AI: Problem Solving E. Trentin, DIISM.
Lets remember about Goal formulation, Problem formulation and Types of Problem. OBJECTIVE OF TODAY’S LECTURE Today we will discus how to find a solution.
Touring problems Start from Arad, visit each city at least once. What is the state-space formulation? Start from Arad, visit each city exactly once. What.
CSC 423 ARTIFICIAL INTELLIGENCE
Artificial Intelligence (CS 461D)
14 Jan 2004CS Blind Search1 Solving problems by searching Chapter 3.
SE Last time: Problem-Solving Problem solving: Goal formulation Problem formulation (states, operators) Search for solution Problem formulation:
Review: Search problem formulation
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2004.
Informed Search (no corresponding text chapter). Recall: Wanted " An algorithm and associated data structure(s) that can: 1) Solve an arbitrary 8-puzzle.
Artificial Intelligence Chapter 3: Solving Problems by Searching
Using Search in Problem Solving
Using Search in Problem Solving
Artificial Intelligence Methods Rao Vemuri Searching - 2.
CS 188: Artificial Intelligence Spring 2006 Lecture 2: Queue-Based Search 8/31/2006 Dan Klein – UC Berkeley Many slides over the course adapted from either.
Solving problems by searching
CS 561, Session 6 1 Last time: Problem-Solving Problem solving: Goal formulation Problem formulation (states, operators) Search for solution Problem formulation:
Search  Exhaustive/Blind Search Methods Depth First Search Breadth First Search  Heuristic Methods Hill Climbing Beam Search Best First Search…
PROBLEM SOLVING BY SEARCHING (1)
Intro to AI, Fall 2004 © L. Joskowicz 1 Introduction to Artificial Intelligence LECTURE 3: Uninformed Search Problem solving by search: definitions Graph.
For Friday Finish chapter 3 Homework: –Chapter 3, exercise 6 –May be done in groups. –Clarification on part d: an “action” must be running the program.
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.
3.0 State Space Representation of Problems 3.1 Graphs 3.2 Formulating Search Problems 3.3 The 8-Puzzle as an example 3.4 State Space Representation using.
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.
Problem Solving and Search Andrea Danyluk September 11, 2013.
Lecture 2-2CS250: Intro to AI/Lisp Implementing Search Lecture 2-2 January 14 th /19 th, 1999 CS250.
Do you drive? Have you thought about how the route plan is created for you in the GPS system? How would you implement a cross-and- nought computer program?
CS 440 / ECE 448 Introduction to Artificial Intelligence Spring 2010 Lecture #3 Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam.
Introduction to search Chapter 3. Why study search? §Search is a basis for all AI l search proposed as the basis of intelligence l inference l all learning.
Introduction to search Chapter 3. Why study search? §Search is a basis for all AI l search proposed as the basis of intelligence l all learning algorithms,
For Friday Finish reading chapter 4 Homework: –Lisp handout 4.
For Monday Read chapter 4, section 1 No homework..
Search exploring the consequences of possible actions.
Lecture 3: Uninformed Search
G5BAIM Artificial Intelligence Methods Graham Kendall Searching.
Lecture 4-2CS250: Intro to AI/Lisp Better Living through Search II Lecture 4-2 October 21 st, 1999 CS250.
1 Solving problems by searching Chapter 3. Depth First Search Expand deepest unexpanded node The root is examined first; then the left child of the root;
Goal-based Problem Solving Goal formation Based upon the current situation and performance measures. Result is moving into a desirable state (goal state).
Search (continued) CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Solving problems by searching 1. Outline Problem formulation Example problems Basic search algorithms 2.
Introduction to Artificial Intelligence (G51IAI) Dr Rong Qu Blind Searches - Introduction.
Blind Search Russell and Norvig: Chapter 3, Sections 3.4 – 3.6 CS121 – Winter 2003.
For Monday Read chapter 4 exercise 1 No homework.
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
Last time: Problem-Solving
Introduction to Artificial Intelligence
Russell and Norvig: Chapter 3, Sections 3.4 – 3.6
HW 1: Warmup Missionaries and Cannibals
HW 1: Warmup Missionaries and Cannibals
Presentation transcript:

For Friday Read chapter 4, sections 1 and 2 Homework –Chapter 3, exercise 7 –May be done in groups

Homework Review Reflex actions Programming Genes Laws of physics (determinism)

Pathfinding

Solving Problems Getting from the current state of the world to the state we want the world to be in. May or may not matter how we get there.

Problem Formulation Initial state Goal state Operators that change the state of the world Path cost – for when it matters how we get there

Toy Problems 8-puzzle N-queens Peg puzzle Farmer, wolf, goat and cabbage Missionaries and cannibals

More Realistic Problems Route finding Traveling Salesman Problem VLSI layout Robot navigation Web searching

Searching Concepts A state can be expanded by generating all states that can be reached by applying a legal operator to the state State space can also be defined by a successor function that returns all states produced by applying a single legal operator A search tree is generated by generating search nodes by successively expanding states starting from the initial state as the root

Search Node Contents May include –Corresponding state –Parent node –Operator applied to reach this node –Length of path from root to node (depth) –Path cost of path from initial state to node

General Search Function function General-Search(problem, strategy) returns a solution, or failure initialize the search tree using the initial state of problem loop do if there are no candidates for expansion then return failure choose a leaf node for expansion according to strategy if the node contains a goal state then return the corresponding solution else expand the node and add the resulting nodes to the search tree end loop end

Implementing Search Algorithms Maintain a list of unexpanded search nodes By using different strategies for ordering the list of search nodes, we implement different searching strategies Eg. breadth-first search is implemented using a queue and depth-first using a stack (as we’ll see soon)

Search Function Revisited function General-Search(problem, Queuing-Fn) returns a solution, or failure nodes <- MakeQueue(Make-Node(Initial-State(problem))) loop do if nodes is empty then return failure node <- Remove-Front(nodes) if Goal-Test(problem) applied to State(node) succeeds then return the corresponding solution else nodes <- Queuing-Fn(nodes, Expand(node, Operators(problem))) end loop end

Properties of Search Strategies Completeness Time Complexity Space Complexity Optimality

Two Types of Search Uninformed Search –Also called blind, exhaustive or brute-force –Make use of no information about the problem –May be quite inefficient Informed Search –Also called heuristic or intelligent –Uses information about the problem to guide the search –Usually guesses the distance to a goal state –Not always possible

Breadth-First Search List ordering is a queue All nodes at a particular depth are expanded before any below them How does BFS perform? –Completeness –Optimality

Complexity of BFS Branching Factor For branching factor b and solution at depth d in the tree (i.e. the path-length of the solution is d) –Time required is: 1 + b + b 2 + b 3 + … b d –Space required is at least b d May be highly impractical Note that ALL of the uninformed search strategies require exponential time

Uniform Cost Search Similar to breadth first, but takes path cost into account

Depth First Search How does depth first search operate? How would we implement it? Performance: –Completeness –Optimality –Space Complexity –Time Complexity

Comparing DFS and BFS When might we prefer DFS? When might we prefer BFS?