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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

will take the distance between cities, since this is very natural. Alternatives would be the driving<br />

time, train ticket cost, or the number of tourist attractions along the way.<br />

Of course we need to update our problem formulation with the necessary information.<br />

Romania with Step Costs as Distances<br />

Uniform-cost search<br />

Idea: Expand least-cost unexpanded node<br />

c○: Michael Kohlhase 435<br />

Implementation: fringe is queue ordered by increasing path cost.<br />

Note: Equivalent to breadth-first search if all step costs are equal (DFS: see below)<br />

Uniform Cost Search: Romania<br />

Idea: Expand least-cost unexpanded node<br />

Arad<br />

c○: Michael Kohlhase 436<br />

Implementation: fringe is queue ordered by increasing path cost.<br />

Note: Equivalent to breadth-first search if all step costs are equal (DFS: see below)<br />

Sibiu<br />

140<br />

Uniform Cost Search: Romania<br />

Arad<br />

Idea: Expand least-cost unexpanded node<br />

118<br />

75<br />

Timisoara<br />

c○: Michael Kohlhase 437<br />

Implementation: fringe is queue ordered by increasing path cost.<br />

243<br />

Zerind

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

Saved successfully!

Ooh no, something went wrong!