15.08.2013 Views

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

P.2 Let n be an unexpanded node on a path to an optimal goal O, then<br />

f(G) = g(G) since h(G) = 0<br />

g(G) > g(O) since G suboptimal<br />

g(O) = g(n) + h ∗ (n) n on optimal path<br />

g(n) + h ∗ (n) ≥ g(n) + h(n) since h is admissible<br />

g(n) + h(n) = f(n)<br />

P.3 Thus, f(G) > f(n) and astarSearch never selects G for expansion.<br />

A ∗ Search Example<br />

A ∗ Search Example<br />

Sibiu<br />

393=140+253<br />

A ∗ Search Example<br />

Arad<br />

646=280+366<br />

Fagaras<br />

415=239+176<br />

A ∗ Search Example<br />

Arad<br />

646=280+366<br />

Fagaras<br />

415=239+176<br />

c○: Michael Kohlhase 480<br />

Arad<br />

366=0+366<br />

c○: Michael Kohlhase 481<br />

Arad<br />

Timisoara<br />

447=118+329<br />

c○: Michael Kohlhase 482<br />

Arad<br />

Sibiu Timisoara<br />

Oradea<br />

671=291+380<br />

R. Vilcea<br />

413=220+193<br />

447=118+329<br />

c○: Michael Kohlhase 483<br />

Arad<br />

Sibiu Timisoara<br />

Oradea<br />

671=291+380<br />

Craiova<br />

526=366+160<br />

R. Vilcea<br />

256<br />

Pitesti<br />

417=317+100<br />

447=118+329<br />

Sibiu<br />

553=300+253<br />

Zerind<br />

449=75+374<br />

Zerind<br />

449=75+374<br />

Zerind<br />

449=75+374

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!