You are on page 1of 12

Slides show the Frontier BEFORE

expansion
- with the Frontier including the “about to
be POPped” node
- and without it (just after popping it) with
its children shown

Either version is fine.


E
f(E) =
h(E)=
368

X Popped / to be expanded node

X Frontier node
Search Tree
Frontier / Reached

Parent --- Parent ---


Reached
Frontier

Node E Key E
f(Node) 368 Cost 0

2
E
POPped
/
To Be Expanded

X Popped / to be expanded node

X Frontier node
Search Tree
Frontier / Reached

Parent Parent ---


Reached
Frontier

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 Popped / to be expanded node

X Frontier node
Search Tree
Frontier / Reached

Parent E E E E E Parent --- E E E E E


Reached
Frontier

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 Popped / to be expanded node

X Frontier node
Search Tree
Frontier / Reached

Parent E E E E Parent --- E E E E E


Reached
Frontier

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 Popped / to be expanded node

X Frontier node
Search Tree
Frontier / Reached

Parent E E E E Parent --- E E E E E


Reached
Frontier

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 Popped / to be expanded node

X Frontier node
Search Tree
Frontier / Reached

Parent E E E Parent --- E E E E E


Reached
Frontier

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 Popped / to be expanded node

X Frontier node
Search Tree
Frontier / Reached

Parent D D E E E Parent --- E E E E E D D


Reached
Frontier

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 Popped / to be expanded node

X Frontier node
Search Tree
Frontier / Reached

Parent D E E E Parent --- E E E E E D D


Reached
Frontier

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 Popped / to be expanded node

X Frontier node
Search Tree
Frontier / Reached

Parent F F D E E E Parent --- E E E E E D D F F


Reached
Frontier

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 Popped / to be expanded node

X Frontier node
Search Tree
Frontier / Reached

Parent F D E E E Parent --- E E E E E D D F F


Reached
Frontier

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 Popped / to be expanded node

X Frontier node
Search Tree
Frontier / Reached

Parent F D E E E Parent --- E E E E E D D F F


Reached
Frontier

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

You might also like