CSE 150 Homework
#2
Date assigned: April 12, 2007
Date due: Beginning of class April 19,
2007
You can work
alone or in groups of at most 3. Homeworks are due at the beginning of class,
printed and stapled and should be presented in the order in which they were
assigned. 10 points will be based on style; your homework should be free of
spelling and grammatical errors and should present information in a way that
makes it easy to read. If drawing is required, the drawing may be done by hand
or using a computer. Points will be deducted for not following these
instructions. No late submissions will be accepted.
|
From: |
To: |
|
A |
B with cost 50 |
|
|
C with cost 40 |
|
|
D with cost 40 |
|
|
|
|
B |
C with cost 40 |
|
|
E with cost 40 |
|
|
F with cost 50 |
|
|
|
|
C |
F with cost 30 |
|
|
B with cost 40 |
|
|
|
|
D |
G with cost 100 |
|
|
|
|
E |
G with cost 50 |
|
|
|
|
F |
G with cost 30 |
Note that the tracks are one-way.
Given that Max wants to go from A to G, using as little time as possible, you first attempt to use Breadth First Search to generate a minimal solution. The following tree represents this effort:

Nodes
in this tree have been fully expanded (although their successors are not shown
since they are not fully expanded).
This discovers a path to G
of length 140, which is not optimal, and took a good deal of effort to produce
(expanding 10 nodes to find a path which only used 3 nodes).
|
Node |
h(n): absolute distance
from n to G |
|
==== |
==== |
|
A |
100 |
|
B |
60 |
|
C |
50 |
|
D |
80 |
|
E |
40 |
|
F |
25 |
|
G |
0 |
A: g=0 h=100 f=100
Now using A*, complete the following heuristic search tree,
labeling values for h(n), g(n), and f(n).
