CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt 3.0-3.3) January, 12, 2009.

Slides:



Advertisements
Similar presentations
Announcements Course TA: Danny Kumar
Advertisements

CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.5) Sept, 14, 2012.
CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt ) Sept, 11, 2013.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
Department of Computer Science Undergraduate Events More
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.4) January, 14, 2009.
Uninformed Search Jim Little UBC CS 322 – Search 2 September 12, 2014
Slide 1 Planning: Representation and Forward Search Jim Little UBC CS 322 October 10, 2014 Textbook §8.1 (Skip )- 8.2)
CPSC 322, Lecture 2Slide 1 Representational Dimensions Computer Science cpsc322, Lecture 2 (Textbook Chpt1) Sept, 6, 2013.
CPSC 322, Lecture 10Slide 1 Finish Search Computer Science cpsc322, Lecture 10 (Textbook Chpt 3.6) January, 28, 2008.
Slide 1 Finish Search Jim Little UBC CS 322 – Search 7 September 24, 2014 Textbook §3.6.
Search: Representation and General Search Procedure Jim Little UBC CS 322 – Search 1 September 10, 2014 Textbook § 3.0 –
CPSC 322, Lecture 16Slide 1 Stochastic Local Search Variants Computer Science cpsc322, Lecture 16 (Textbook Chpt 4.8) February, 9, 2009.
CPSC 322, Lecture 26Slide 1 Reasoning Under Uncertainty: Belief Networks Computer Science cpsc322, Lecture 27 (Textbook Chpt 6.3) March, 16, 2009.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
Decision Theory: Single Stage Decisions Computer Science cpsc322, Lecture 33 (Textbook Chpt 9.2) March, 30, 2009.
CPSC 322, Lecture 18Slide 1 Planning: Heuristics and CSP Planning Computer Science cpsc322, Lecture 18 (Textbook Chpt 8) February, 12, 2010.
CPSC 322, Lecture 10Slide 1 Finish Search Computer Science cpsc322, Lecture 10 (Textbook Chpt 3.6) January, 25, 2010.
Search: Representation and General Search Procedure CPSC 322 – Search 1 January 12, 2011 Textbook § 3.0 –
CPSC 322, Lecture 30Slide 1 Reasoning Under Uncertainty: Variable elimination Computer Science cpsc322, Lecture 30 (Textbook Chpt 6.4) March, 23, 2009.
CPSC 322, Lecture 11Slide 1 Constraint Satisfaction Problems (CSPs) Introduction Computer Science cpsc322, Lecture 11 (Textbook Chpt 4.0 – 4.2) January,
CPSC 322, Lecture 2Slide 1 Representational Dimensions Computer Science cpsc322, Lecture 2 (Textbook Chpt1) January, 6, 2010.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CPSC 322, Lecture 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
CPSC 322, Lecture 17Slide 1 Planning: Representation and Forward Search Computer Science cpsc322, Lecture 17 (Textbook Chpt 8.1 (Skip )- 8.2) February,
CPSC 322, Lecture 17Slide 1 Planning: Representation and Forward Search Computer Science cpsc322, Lecture 17 (Textbook Chpt 8.1 (Skip )- 8.2) February,
CPSC 322, Lecture 8Slide 1 Heuristic Search: BestFS and A * Computer Science cpsc322, Lecture 8 (Textbook Chpt 3.5) January, 21, 2009.
CPSC 322, Lecture 31Slide 1 Probability and Time: Markov Models Computer Science cpsc322, Lecture 31 (Textbook Chpt 6.5) March, 25, 2009.
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) March, 8, 2010.
Uninformed Search (cont.)
CPSC 322, Lecture 35Slide 1 Value of Information and Control Computer Science cpsc322, Lecture 35 (Textbook Chpt 9.4) April, 14, 2010.
CPSC 322, Lecture 24Slide 1 Reasoning under Uncertainty: Intro to Probability Computer Science cpsc322, Lecture 24 (Textbook Chpt 6.1, 6.1.1) March, 15,
Computer Science CPSC 322 Lecture 3 AI Applications 1.
Uninformed Search Strategies CPSC 322 – Search 2 January 14, 2011 Textbook §3.5 1.
Slide 1 Constraint Satisfaction Problems (CSPs) Introduction Jim Little UBC CS 322 – CSP 1 September 27, 2014 Textbook §
Computer Science CPSC 322 Lecture 4 Search: Intro (textbook Ch: ) 1.
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) Oct, 26, 2010.
1 Solving problems by searching 171, Class 2 Chapter 3.
CPSC 322, Lecture 19Slide 1 (finish Planning) Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt – 5.2) Oct,
Arc Consistency CPSC 322 – CSP 3 Textbook § 4.5 February 2, 2011.
CPSC 322, Lecture 6Slide 1 Uniformed Search (cont.) Computer Science cpsc322, Lecture 6 (Textbook finish 3.5) Sept, 17, 2012.
CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt ) Sept, 12, 2012.
CPSC 322, Lecture 2Slide 1 Representational Dimensions Computer Science cpsc322, Lecture 2 (Textbook Chpt1) Sept, 7, 2012.
CPSC 322, Lecture 16Slide 1 Stochastic Local Search Variants Computer Science cpsc322, Lecture 16 (Textbook Chpt 4.8) Oct, 11, 2013.
Domain Splitting, Local Search CPSC 322 – CSP 4 Textbook §4.6, §4.8 February 4, 2011.
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.5) Sept, 13, 2013.
CPSC 322, Lecture 10Slide 1 Finish Search Computer Science cpsc322, Lecture 10 (Textbook Chpt 3.6) Sep, 26, 2010.
CPSC 322, Lecture 7Slide 1 Heuristic Search Computer Science cpsc322, Lecture 7 (Textbook Chpt 3.6) Sept, 20, 2013.
Computer Science CPSC 322 Lecture 2 Representational Dimensions, Search Intro 1.
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) Oct, 30, 2013.
Constraint Satisfaction Problems (CSPs) Introduction
Uniformed Search (cont.) Computer Science cpsc322, Lecture 6
Computer Science cpsc322, Lecture 4
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Constraint Satisfaction Problems (CSPs) Introduction
Planning: Representation and Forward Search
Uniformed Search (cont.) Computer Science cpsc322, Lecture 6
Decision Theory: Single Stage Decisions
Planning: Heuristics and CSP Planning
Planning: Heuristics and CSP Planning
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Planning: Representation and Forward Search
Computer Science cpsc322, Lecture 2
Planning: Heuristics and CSP Planning
Decision Theory: Single Stage Decisions
Logic: Domain Modeling /Proofs + Computer Science cpsc322, Lecture 22
Domain Splitting CPSC 322 – CSP 4 Textbook §4.6 February 4, 2011.
Planning: Representation and Forward Search
Presentation transcript:

CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt ) January, 12, 2009

CPSC 322, Lecture 2Slide 2 Modules we'll cover in this course: R&Rsys Environment Problem Inference Planning Deterministic Stochastic Search Arc Consistency Search Value Iteration Var. Elimination Constraint Satisfaction Logics STRIPS Belief Nets Vars + Constraints Decision Nets Markov Processes Var. Elimination Static Sequential Representation Reasoning Technique

CPSC 322, Lecture 4Slide 3 Lecture Overview Simple Agent and Examples Search Spaces Search

CPSC 322, Lecture 4Slide 4 Simple Planning Agent Deterministic, goal-driven agent Agent is given a goal (subset of possible states) Environment changes only when the agent acts Agent perfectly knows: what actions can be applied in any given state the state it is going to end up in when an action is applied in a given state The sequence of actions and their appropriate ordering is the solution

CPSC 322, Lecture 4Slide 5 Three examples 1.A delivery robot planning the route it will take in a bldg. to get from one room to another 2.Solving an 8-puzzle 3.Vacuum cleaner world

CPSC 322, Lecture 4Slide 6 Example1: Delivery Robot

CPSC 322, Lecture 4Slide 7 Example 2: 8-Puzzle? Possible start stateGoal state

CPSC 322, Lecture 6Slide 8 Example: vacuum world Possible start stateGoal state

CPSC 322, Lecture 4Slide 9 Lecture Overview Simple Agent and Examples Search Spaces Search

CPSC 322, Lecture 4Slide 10 How can we find a solution? How can we find a sequence of actions and their appropriate ordering that lead to the goal? Define underlying search space. A graph where nodes are states and edges are actions. b4 o107o109o111 r109r107 r111 o113r113

CPSC 322, Lecture 4Slide 11 Search space for 8puzzle

CPSC 322, Lecture 6Slide 12 Vacuum world: Search space graph states? Where it is dirty and robot location actions? Left, Right, Suck Possible goal test? no dirt at all locations

CPSC 322, Lecture 4Slide 13 Lecture Overview Simple Agent and Examples State Spaces Search

CPSC 322, Lecture 4Slide 14 Search: Abstract Definition How to search Start at the start state Consider the effect of taking different actions starting from states that have been encountered in the search so far Stop when a goal state is encountered To make this more formal, we'll need review the formal definition of a graph...

CPSC 322, Lecture 4Slide 15 A graph consists of a set N of nodes and a set A of ordered pairs of nodes, called arcs. Node n 2 is a neighbor of n 1 if there is an arc from n 1 to n 2. That is, if  n 1, n 2   A. A path is a sequence of nodes n 0, n 1,..,n k such that  n i-1, n i   A. A cycle is a non-empty path such that the start node is the same as the end node A directed acyclic graph (DAG) is a graph with no cycles Given a set of start nodes and goal nodes, a solution is a path from a start node to a goal node. Search Graph

CPSC 322, Lecture 4Slide 16 Examples for graph formal def. a bcd e fghi j kl n

CPSC 322, Lecture 4Slide 17 Examples of solution Start state b4, goal r113 Solution b4 o107o109o111 r109r107 r111 o113 r113

CPSC 322, Lecture 4Slide 18 Generic search algorithm: given a graph, start node(s), and goal node(s), incrementally explore paths from the start node(s). Maintain a frontier of paths from the start node that have been explored. As search proceeds, the frontier expands into the unexplored nodes until (hopefully!) a goal node is encountered. The way in which the frontier is expanded defines the search strategy. Graph Searching

CPSC 322, Lecture 4Slide 19 Input: a graph, a set of start nodes, Boolean procedure goal(n) that tests if n is a goal node frontier:= [ : s is a start node]; While frontier is not empty: select and remove path from frontier; If goal(n k ) return ; For every neighbor n of n k add to frontier; end Generic Search Algorithm

CPSC 322, Lecture 4Slide 20 Problem Solving by Graph Searching Ends of frontier

CPSC 322, Lecture 4Slide 21 The forward branching factor of a node is the number of arcs going out of the node The backward branching factor of a node is the number of arcs going into the node If the forward branching factor of any node is b and the graph is a tree, there are nodes that are n steps away from a node Branching Factor

CPSC 322, Lecture 4Slide 22 Search is a key computational mechanism in many AI agents We will study the basic principles of search on the simple deterministic planning agent model Generic search approach: define a search space graph, start from current state, incrementally explore paths from current state until goal state is reached. The way in which the frontier is expanded defines the search strategy. Lecture Summary

CPSC 322, Lecture 4Slide 23 Learning Goals for today’s class Identify real world examples that make use of deterministic, goal-driven planning agents Assess the size of the search space of a given search problem. Implement the generic solution to a search problem.

CPSC 322, Lecture 4Slide 24 Uninformed search strategies (read textbook Sec. 3.4) First Practice Exercise will be posted today on WebCT Next class (Wed)