Lecture-03-04-Uninformed_Search

# Finding a solution solution is a sequence of

This preview shows pages 31–43. Sign up to view the full content.

Finding a solution Solution: is a sequence of operators that bring you from current state to the goal state. Strategy: The search strategy is determined by ??? CS561 - Lectures 3-4 - Macskassy - Fall 2010 function T REE -S EARCH ( problem , strategy ) returns a solution , or failure initialize the search tree using the initial state 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 resulting nodes to the search tree end

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Finding a solution Solution: is a sequence of operators that bring you from current state to the goal state. Strategy: The search strategy is determined by the order in which the nodes are expanded. CS561 - Lectures 3-4 - Macskassy - Fall 2010 function T REE -S EARCH ( problem , strategy ) returns a solution , or failure initialize the search tree using the initial state 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 resulting nodes to the search tree end
Example: Traveling from Arad To Bucharest CS561 - Lectures 3-4 - Macskassy - Fall 2010

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Search example CS561 - Lectures 3-4 - Macskassy - Fall 2010
Search example CS561 - Lectures 3-4 - Macskassy - Fall 2010

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Search example CS561 - Lectures 3-4 - Macskassy - Fall 2010
State Graphs vs. Search Trees CS561 - Lectures 3-4 - Macskassy - Fall 2010 b a d s p c e q h r f G s d e p q h r f c G a p q q b a c a e h r f c G a p q q Each NODE in the search tree is an entire PATH in the state graph (note how many nodes in the graph appear multiple times in the search tree) We almost always construct both on demand and we construct as little as possible

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Encapsulating state information in nodes CS561 - Lectures 3-4 - Macskassy - Fall 2010
Implementation: General Search CS561 - Lectures 3-4 - Macskassy - Fall 2010

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
CS561 - Lectures 3-4 - Macskassy - Fall 2010 Implementation: General Search The operations on fringe are queuing functions which inserts and removes elements into the fringe and determines the order of node expansion . Varieties of the queuing functions produce varieties of the search algorithm.
Evaluation of search strategies A search strategy is defined by picking the order of node expansion. Search algorithms are commonly evaluated according to the following four criteria: Completeness: does it always find a solution if one exists? Time complexity: how long does it take as function of num. of nodes? Space complexity: how much memory does it require? Optimality: does it guarantee the least-cost solution? Time and space complexity are measured in terms of: b max branching factor of the search tree d depth of the least-cost solution m max depth of the search tree (may be infinity) CS561 - Lectures 3-4 - Macskassy - Fall 2010

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Uninformed search strategies Use only information available in the problem formulation Breadth-first Uniform-cost Depth-first Depth-limited Iterative deepening CS561 - Lectures 3-4 - Macskassy - Fall 2010
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern