CSE 473 Artificial Intelligence Oren Etzioni

Slides:



Advertisements
Similar presentations
Search I: Chapter 3 Aim: achieving generality Q: how to formulate a problem as a search problem?
Advertisements

Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
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.
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.
State Space Search Algorithms CSE 472 Introduction to Artificial Intelligence Autumn 2003.
UnInformed Search What to do when you don’t know anything.
1 Solving Problems by Searching. 2 Terminology State State Space Initial State Goal Test Action Step Cost Path Cost State Change Function State-Space.
Problem Spaces & Search CSE 473. © Daniel S. Weld Topics Agents & Environments Problem Spaces Search & Constraint Satisfaction Knowledge Repr’n.
Big Ideas in Cmput366. Search Blind Search Iterative deepening Heuristic Search A* Local and Stochastic Search Randomized algorithm Constraint satisfaction.
State-Space Searches. 2 State spaces A state space consists of –A (possibly infinite) set of states The start state represents the initial problem Each.
Solving Problems by Searching
State-Space Searches.
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,
CS 415 – A.I. Slide Set 5. Chapter 3 Structures and Strategies for State Space Search – Predicate Calculus: provides a means of describing objects and.
State-Space Searches. 2 State spaces A state space consists of A (possibly infinite) set of states The start state represents the initial problem Each.
Lecture 3: Uninformed Search
Problem Spaces & Search CSE 573. © Daniel S. Weld 2 Logistics Mailing list Reading Ch 4.2, Ch 6 Mini-Project I Partners Game Playing?
Problem solving by search Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
1 Solving Problems by Searching. 2 Terminology State State Space Goal Action Cost State Change Function Problem-Solving Agent State-Space Search.
Chap 4: Searching Techniques Artificial Intelligence Dr.Hassan Al-Tarawneh.
Artificial Intelligence Solving problems by searching.
Lecture 3 Problem Solving through search Uninformed Search
Lecture 3: Uninformed Search
Review: Tree search Initialize the frontier using the starting state
Uniformed Search (cont.) Computer Science cpsc322, Lecture 6
Problem Solving Agents
Logistics Problem Set 1 Mailing List Due 10/13 at start of class
CSE (c) S. Tanimoto, 2002 Search Algorithms
Introduction to Artificial Intelligence
Lecture 7 Constraint Satisfaction Problems
Problem Solving by Searching
Artificial Intelligence (CS 370D)
Artificial Intelligence Problem solving by searching CSC 361
Chap 4: Searching Techniques Artificial Intelligence Dr.Hassan Al-Tarawneh.
Uniformed Search (cont.) Computer Science cpsc322, Lecture 6
هوش مصنوعی فصل سوم: حل مسئله با جستجو
Uninformed Search Introduction to Artificial Intelligence
Prof. Dechter ICS 270A Winter 2003
Lecture 1B: Search.
Problem Solving and Searching
What to do when you don’t know anything know nothing
CSE 4705 Artificial Intelligence
EA C461 – Artificial Intelligence
Searching for Solutions
Problem Solving and Searching
Tree Searching.
Search Exercise Search Tree? Solution (Breadth First Search)?
Problem Spaces & Search
Artificial Intelligence
Problem Spaces & Search
CSE 473: Artificial Intelligence Spring 2012
CSE 473 University of Washington
Chap 4: Searching Techniques
Solving problems by searching
CSE (c) S. Tanimoto, 2002 State-Space Search
Tree Searching.
Tree Searching.
Problem Spaces & Search
UNINFORMED SEARCH -BFS -DFS -DFIS - Bidirectional
State-Space Searches.
State-Space Searches.
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #2
Search.
CSE (c) S. Tanimoto, 2004 State-Space Search
Search.
CSE (c) S. Tanimoto, 2004 Search Algorithms
State-Space Searches.
Solving problems by searching
Basic Search Methods How to solve the control problem in production-rule systems? Basic techniques to find paths through state- nets. For the moment: -
Presentation transcript:

CSE 473 Artificial Intelligence Oren Etzioni Search CSE 473 Artificial Intelligence Oren Etzioni What are the fundamental Scientific Questions? How did the Universe start? Genome AI Theory for each, except AI.. GO OVER SYLLABUS HAND OUT SEATING CHART

What is Search? Search is a class of techniques for systematically finding or constructing solutions to problems. Example technique: generate-and-test. Example problem: Combination lock. Generate a possible solution. Test the solution. If solution found THEN done ELSE return to step 1. © Daniel S. Weld

Why is search interesting? Many (all?) AI problems can be formulated as search problems! Examples: Path planning Games Natural Language Processing Machine learning Genetic algorithms © Daniel S. Weld

Weak Methods “In the knowledge lies the power…” [Feigenbaum] But what if no knowledge???? © Daniel S. Weld

Search Tree Example: Fragment of 8-Puzzle Problem Space © Daniel S. Weld

Problem Space / State Space Search thru a Problem Space / State Space Input: Set of states Operators [and costs] Start state Goal state [test] Output: Path: start  a state satisfying goal test [May require shortest path] State Space Search is basically a GRAPH SEARCH PROBLEM STATES are whatever you like! OPERATORS are a compact DESCRIPTION of possible STATE TRANSITIONS – the EDGES of the GRAPH May have different COSTS or all be UNIT cost OUTPUT may be specified either as ANY PATH (REACHABILITY), or a SHORTEST PATH © Daniel S. Weld

Example: Route Planning Input: Set of states Operators [and costs] Start state Goal state (test) Output: States = cities Start state = starting city Goal state test = is state the destination city? Operators = move to an adjacent city; cost = distance Output: a shortest path from start state to goal state SUPPOSE WE REVERSE START AND GOAL STATES? © Daniel S. Weld

Example: N Queens Q Input: Set of states Operators [and costs] Start state Goal state (test) Output © Daniel S. Weld

Classifying Search GUESSING (“Tree Search”) SIMPLIFYING (“Inference”) Guess how to extend a partial solution to a problem. Generates a tree of (partial) solutions. The leafs of the tree are either “failures” or represent complete solutions SIMPLIFYING (“Inference”) Infer new, stronger constraints by combining one or more constraints (without any “guessing”) Example: X+2Y = 3 X+Y =1 therefore Y = 2 WANDERING (“Markov chain”) Perform a (biased) random walk through the space of (partial or total) solutions HERE ARE THE THREE BASIC PRINCIPLES Guessing – guess how to EXTEND A PARTIAL SOLUTION one step at a time Simplifying – make inferences about how the PROBLEM CONSTRAINTS interact X + 2Y = 3 X + Y = 1 ------------ Y = 2 3. Wandering – RANDOMLY step through the space of POSSIBILITIES © Daniel S. Weld

Constraint Satisfaction Roadmap Guessing – State Space Search BFS DFS Iterative Deepening Bidirectional Best-first search A* Game tree Davis-Putnam (logic) Cutset conditioning (probability) Simplification – Constraint Propagation Forward Checking Path Consistency (Waltz labeling, temporal algebra) Resolution “Bucket Algorithm” Wandering – Randomized Search Hillclimbing Simulated annealing Walksat Monte-Carlo Methods Constraint Satisfaction © Daniel S. Weld

Search Strategies v2 Blind Search Informed Search Constraint Satisfaction Adversary Search Depth first search Breadth first search Iterative deepening search Iterative broadening search © Daniel S. Weld

Depth First Search Maintain stack of nodes to visit Evaluation Complete? Time Complexity? Space Complexity? Not for infinite spaces a O(b^d) b e O(d) g h c d f © Daniel S. Weld

Breadth First Search Maintain queue of nodes to visit Evaluation Complete? Time Complexity? Space Complexity? Yes a O(b^d) b c O(b^d) g h d e f © Daniel S. Weld

Memory a Limitation? Suppose: 2 GHz CPU 1 GB main memory 100 instructions / expansion 5 bytes / node 200,000 expansions / sec Memory filled in 100 sec … < 2 minutes © Daniel S. Weld

Iterative Deepening Search DFS with limit; incrementally grow limit Evaluation Complete? Time Complexity? Space Complexity? Yes a b e O(b^d) c f d i O(d) g h j k L © Daniel S. Weld

Cost of Iterative Deepening b ratio ID to DFS 2 3 5 1.5 10 1.2 25 1.08 100 1.02 © Daniel S. Weld

Forwards vs. Backwards start end © Daniel S. Weld

vs. Bidirectional © Daniel S. Weld

Problem All these methods are slow (blind) Solution  add guidance (“heurstic estimate”)  “informed search” © Daniel S. Weld