|
State Name |
Next-State Name |
Cost |
|
Room A |
Room B |
4 |
|
Room A |
Room C |
1 |
|
Room B |
Room D |
3 |
|
Room B |
Room E |
8 |
|
Room C |
Room C |
0 |
|
Room C |
Room D |
2 |
|
Room C |
Room F |
6 |
|
Room D |
Room C |
2 |
|
Room D |
Room E |
4 |
|
Room E |
Room G |
2 |
|
Room F |
Room G |
8 |
For each of the following, during each cycle of the search
algorithm show the subtree.
|
|||||||||
|
|||||||||
|
|||||||||
Note: this is a paper-and-pencil question.
Consider the following list of words:
���� CAB CAD CAT COD CUD DAB HAT ROB ROD ROT
and the following puzzle:
���� Change "cat" to "rob" by changing only one letter at a time, �����and using only words contained in the above list as intermediaries.�
You may consider this as a search task with "cat" as the start node and "rob" as the goal node. Draw the complete search space. Also propose and justify a good heuristic function (h) for this task. Finally, show how best-first search could be used to solve this puzzle. (Just use f=h as your scoring function.)