DOC PREVIEW
UMD CMSC 421 - Project 2 code

This preview shows page 1-2-3 out of 9 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 9 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 9 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 9 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 9 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

A* for graphs♦ Re-expands a node if it find a better path to the node♦ Finds optimal solutions even if the heuristic is inconsistentfunction A*( problem) returns asolution,orfailureclosed ← an empty setfringe ← alistcontainingMake-Node(Initial-State[problem])loop doif fringe is empty then return failurenode ← Remove-Front(fringe)if Goal-Test[problem]appliedtoState(node)succeedsreturn nodeinsert node into closedfor each node n ∈ Expand(node, problem) doif there is a node m ∈ closed ∪ fringe such thatState(m)=State(n)andf (m) ≤ f(n)then do nothingelseinsert n into fringe after the last node m such that f(m) ≤ f(n)endCMSC 421: Chapter 4, Sections 1–2


View Full Document

UMD CMSC 421 - Project 2 code

Download Project 2 code
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 Project 2 code 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 Project 2 code 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?