Professional Documents
Culture Documents
CS480 Fall2023 Written Assignment 01 Problem2 Solution
CS480 Fall2023 Written Assignment 01 Problem2 Solution
expansion
- with the Frontier including the “about to
be POPped” node
- and without it (just after popping it) with
its children shown
X Frontier node
Search Tree
Frontier / Reached
Node E Key E
f(Node) 368 Cost 0
2
E
POPped
/
To Be Expanded
X Frontier node
Search Tree
Frontier / Reached
Node Key E
f(Node) Cost 0
3
E
A B D H I
f(A) = f(B) = f(D) = f(H) = f(I) =
h(A)= h(B)= h(D)= f(H)= h(I)=
417 390 291 278 332
X Frontier node
Search Tree
Frontier / Reached
Node H D I B A Key E A B D H I
f(Node) 278 291 332 390 417 Cost 0 180 68 170 102 50
4
E
A B D H I
POPped
/
To Be Expanded
X Frontier node
Search Tree
Frontier / Reached
Node D I B A Key E A B D H I
f(Node) 291 332 390 417 Cost 0 180 68 170 102 50
5
E
A B D H I
D E I
f(D) = f(E) = f(I) =
h(D)= f(E)= h(I)=
291 368 332
X Frontier node
Search Tree
Frontier / Reached
Node D I B A Key E A B D H I
f(Node) 291 332 390 417 Cost 0 180 68 170 102 50
6
E
A B D H I
POPped
/
To Be Expanded
D E I
X Frontier node
Search Tree
Frontier / Reached
Node I B A Key E A B D H I
f(Node) 332 390 417 Cost 0 180 68 170 102 50
7
E
A B D H I
A D E F G D E I
f(A) = f(D) = f(E) = f(F) = f(G) =
h(A)= f(D)= h(E)= f(F)= h(G)=
417 291 368 91 126
X Frontier node
Search Tree
Frontier / Reached
Node F G I B A Key E A B D H I F G
f(Node) 91 126 332 390 417 Cost 0 180 68 170 102 50 463 498
8
E
A B D H I
A D E F G D E I
POPped
/
To Be Expanded
X Frontier node
Search Tree
Frontier / Reached
Node G I B A Key E A B D H I F G
f(Node) 126 332 390 417 Cost 0 180 68 170 102 50 463 498
9
E
A B D H I
A D E F G D E I
D G J K
f(D) = f(G) = f(J) = f(K) =
f(D)= h(G)= f(J)= h(K)=
291 126 0 53
X Frontier node
Search Tree
Frontier / Reached
Node J K G I B A Key E A B D H I F G J K
f(Node) 0 53 126 332 390 417 Cost 0 180 68 170 102 50 463 498 575 592
10
E
A B D H I
A D E F G D E I
D G J K
POPped
/
To Be Expanded
X Frontier node
Search Tree
Frontier / Reached
Node K G I B A Key E A B D H I F G J K
f(Node) 53 126 332 390 417 Cost 0 180 68 170 102 50 463 498 575 592
11
E
A B D H I
A D E F G D E I
D G J K
GOAL
state
X Frontier node
Search Tree
Frontier / Reached
Node K G I B A Key E A B D H I F G J K
f(Node) 53 126 332 390 417 Cost 0 180 68 170 102 50 463 498 575 592
12