DOC PREVIEW
UMD CMSC 421 - Heuristic Search

This preview shows page 1-2-3-4-5-33-34-35-36-67-68-69-70-71 out of 71 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 71 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 71 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 71 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 71 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 71 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 71 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 71 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 71 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 71 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 71 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 71 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 71 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 71 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 71 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 71 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Heuristic SearchModified Search AlgorithmSearch AlgorithmsBest-first searchHeuristicInformed SearchGreedy SearchRobot NavigationSlide 9Slide 10Slide 11More informed searchSlide 13Can we Prove Anything?Admissible heuristicA* SearchCompleteness & Optimality of A*Completeness of A*Proof of CompletenessOptimality of A*Proof of OptimalityHeuristic FunctionSlide 248-PuzzleSlide 26Slide 27Slide 28Robot navigationConsistent HeuristicSlide 33Slide 34ClaimsSlide 36Slide 37Avoiding Repeated States in A*Heuristic AccuracyIterative Deepening A* (IDA*)Slide 42Slide 43Slide 44Slide 45Slide 46Slide 47Slide 48Slide 49Slide 50Slide 51Slide 52Slide 53About HeuristicsWhat’s the Issue?Another approach…Hill-climbing searchHill climbing on a surface of statesHill climbingSlide 60Examples of problems with HCDrawbacks of hill climbingSlide 63Hill climbing exampleExample of a local maximumPotential FieldsDoes it always work?Example: RoboSoccerSimulated annealingSimulated annealing (cont.)The simulated annealing algorithmSimulated AnnealingSummary: Local Search AlgorithmsWhen to Use Search Techniques?SummaryHeuristic SearchHeuristic SearchRussell and Norvig: Chapter 4CSMSC 421 – Fall 2005Modified Search Modified Search AlgorithmAlgorithm1. INSERT(initial-node,FRINGE)2. Repeat:If FRINGE is empty then return failuren  REMOVE(FRINGE)s  STATE(n)If GOAL?(s) then return path or goal stateFor every state s’ in SUCCESSORS(s)Create a node n’INSERT(n’,FRINGE)Search AlgorithmsBlind search – BFS, DFS, uniform costno notion concept of the “right direction”can only recognize goal once it’s achievedHeuristic search – we have rough idea of how good various states are, and use this knowledge to guide our searchBest-first searchIdea: use an evaluation function f(n) for each nodeEstimate of desirabilityExpand most desirable unexpanded nodeImplementation: fringe is queue sorted by descreasing order of desirabilityGreedy searchA* searchHeuristicWebster's Revised Unabridged Dictionary (1913) (web1913)Heuristic \Heu*ris"tic\, a. [Greek. to discover.] Serving to discover or find out. The Free On-line Dictionary of Computing (15Feb98) heuristic 1. <programming> A rule of thumb, simplification or educated guess that reduces or limits the search for solutions in domains that are difficult and poorly understood. Unlike algorithms, heuristics do not guarantee feasible solutions and are often used with no theoretical guarantee. 2. <algorithm> approximation algorithm. From WordNet (r) 1.6 heuristic adj 1: (computer science) relating to or using a heuristic rule 2: of or relating to a general formulation that serves to guide investigation [ant: algorithmic] n : a commonsense rule (or set of rules) intended to increase the probability of solving some problem [syn: heuristic rule, heuristic program]Informed SearchAdd domain-specific information to select the best path along which to continue searchingDefine a heuristic function, h(n), that estimates the “goodness” of a node n. Specifically, h(n) = estimated cost (or distance) of minimal cost path from n to a goal state. The heuristic function is an estimate, based on domain-specific information that is computable from the current state description, of how close we are to a goalGreedy SearchGreedy Search f(N) = h(N)  greedy best-firstRobot NavigationRobot NavigationRobot NavigationRobot Navigation0 21158 77347676 3 2864523 336 5 24 43 554 65645f(N) = h(N), with h(N) = Manhattan distance to the goalRobot NavigationRobot Navigation0 21158 77347676 3 2864523 336 5 24 43 554 65645f(N) = h(N), with h(N) = Manhattan distance to the goal70What happened???Greedy SearchGreedy Search f(N) = h(N)  greedy best-firstIs it complete?If we eliminate endless loops, yesIs it optimal?More informed searchMore informed searchWe kept looking at nodes closer and closer to the goal, but were accumulating costs as we got further from the initial stateOur goal is not to minimize the distance from the current head of our path to the goal, we want to minimize the overall length of the path to the goal!Let g(N) be the cost of the best path found so far between the initial node and N f(N) = g(N) + h(N)Robot NavigationRobot Navigationf(N) = g(N)+h(N), with h(N) = Manhattan distance to goal0 21158 77347676 3 2864523 336 5 24 43 554 656457+06+16+18+17+07+26+17+26+18+17+28+37+26+36+35+45+44+54+53+63+62+78+37+47+46+55+66+35+62+73+84+75+64+73+84+73+83+82+92+93+102+93+82+91+101+100+11Can we Prove Anything?Can we Prove Anything?If the state space is finite and we avoid repeated states, the search is complete, but in general is not optimalIf the state space is finite and we do not avoid repeated states, the search is in general not completeIf the state space is infinite, the search is in general not completeAdmissible heuristicAdmissible heuristic Let h*(N) be the true cost of the optimal path from N to a goal node Heuristic h(N) is admissible if: 0  h(N)  h*(N) An admissible heuristic is always optimisticA* SearchA* Search Evaluation function: f(N) = g(N) + h(N) where:g(N) is the cost of the best path found so far to Nh(N) is an admissible heuristicThen, best-first search with this evaluation function is called A* searchImportant AI algorithm developed by Fikes and Nilsson in early 70s. Originally used in Shakey robot.Completeness & Optimality of Completeness & Optimality of A*A* Claim 1: If there is a path from the initial to a goal node, A* (with no removal of repeated states) terminates by finding the best path, hence is:completeoptimalrequirements:0 <   c(N,N’) Each node has a finite number of successorsCompleteness of A*Completeness of A* Theorem: If there is a finite path from the initial state to a goal node, A* will find it.Proof of CompletenessProof of CompletenessLet g be the cost of a best path to a goal nodeNo path in search tree can get longer than g/, before the goal node is expandedOptimality of A*Optimality of A* Theorem: If h(n) is admissable, then A* is optimal.Proof of OptimalityProof of OptimalityG1NG2f(G1) = g(G1)f(N) = g(N) + h(N)  g(N) + h*(N)f(G1)  g(N) + h(N)  g(N) + h*(N) Cost of best path to a goal thru NHeuristic FunctionHeuristic Function Function h(N) that estimates the cost of the cheapest path from node N to goal node. Example: 8-puzzle1 2 34 5 67 812345678Ngoalh(N) = number of misplaced tiles = 6Heuristic FunctionHeuristic Function Function h(N) that estimate the cost of the


View Full Document

UMD CMSC 421 - Heuristic Search

Download Heuristic Search
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Heuristic Search and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Heuristic Search 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?