100 likes | 179 Views
A. (4,0). 4. OPEN: (A 4 ). CLOSED: (). Example of A*. A. (4,0). 4. B. C. (3,1). (7,1). 4. 8. OPEN: (B 4 C 8 ). CLOSED: (A). Example of A*. OPEN: (D 5 C 8 E 9 ). CLOSED: (A B). Example of A*. A. (4,0). 4. B. C. (3,1). (7,1). 4. 8. D. E. (3,2). (7,2).
E N D
A (4,0) 4 OPEN: (A4) CLOSED: () Example of A*
A (4,0) 4 B C (3,1) (7,1) 4 8 OPEN: (B4 C8) CLOSED: (A) Example of A*
OPEN: (D5 C8 E9) CLOSED: (A B) Example of A* A (4,0) 4 B C (3,1) (7,1) 4 8 D E (3,2) (7,2) 5 9
A (4,0) 4 B C (3,1) (7,1) 4 8 D E (3,2) (7,2) 5 9 F (3,3) OPEN: (F6 C8 E9) CLOSED: (A B D) Example of A* 6
OPEN: (H7 C8 E9 G9) CLOSED: (A B D F) Example of A* A (4,0) 4 B C (3,1) (7,1) 4 8 D E (3,2) (7,2) 5 9 F (3,3) 6 G H (5,4) (3,4) 9 7
Example of A* A (4,0) 4 B C (3,1) (7,1) 4 8 D E (3,2) (7,2) 5 9 F (3,3) 6 G H (5,4) (3,4) 9 7 G J (5,5) I (2,5) (4,5) 10 7 9 OPEN: (I7 C8 E9 G9 J9 L10 K11) CLOSED: (A B D F H)
OPEN: (C8 E9 G9 J9 L10 K11) CLOSED: (A B D F H I) Example of A* A (4,0) 4 B C (3,1) (7,1) 4 8 D E (3,2) (7,2) 5 9 F (3,3) 6 G H (5,4) (3,4) 9 7 G J (5,5) I (2,5) (4,5) 10 7 9 K L (5,6) (4,6) 11 10
C (7,1) 8 E B M H (7,2) (3,2) (8,2) (3,2) 9 5 10 5 Example of A* A (4,0) 4 B (3,1) 4 D (3,2) 5 F (3,3) 6 G (5,4) H (3,4) 9 7 G J (5,5) I (2,5) (4,5) 10 7 9 C already removed from OPEN B, M, and H not yet added K L (5,6) (4,6) OPEN: (E9 G9 J9 L10 K11) CLOSED: (A B D F H I)
C (7,1) 8 E B M H (7,2) (3,2) (8,2) (3,2) 9 5 10 5 Example of A* A (4,0) 4 B (3,1) 4 D (3,2) 5 F (3,3) 6 G (5,4) H (3,4) 9 7 G J (5,5) I (2,5) (4,5) 10 7 9 K L (5,6) (4,6) OPEN: (E9 G9 J9 L10 M10 K11) CLOSED: (A B D F H I)
B M (3,2) (8,2) 5 10 Example of A* A (4,0) 4 B C (3,1) (7,1) 4 8 D E H (3,2) (7,2) (3,2) 5 9 5 F (3,3) J (2,3) (4,3) I G (5,3) 6 5 7 8 G (5,4) H (3,4) K L (5,4) (4,4) 9 7 9 8 Expand Next: OPEN: (J7 G8 L8 E9 K9 M10) CLOSED: (A B D F H I)