CH04 Informed Search Part 01
CH04 Informed Search Part 01
• It generates the successors of the chosen node, applies the heuristic function to them,
and adds them to the list of open nodes, after checking to see if any of them have been
generated before.
• By doing this check, we can guarantee that each node only appears once in the graph,
although many nodes may point to it as a successor.
Best First Search (BFS)
• To implement such a graph-search procedure, we will need
to use two lists of nodes:
• OPEN — nodes that have been generated and have had the
heuristic function applied to them, but which have not yet been
examined (i.e., had their successors generated).
• CLOSED — nodes that have already been examined. We need to
keep these nodes in memory if we want to search a graph rather
than a tree since whenever a new node is generated, we need to
check whether it has been generated before.
Best First Search (BFS) – Algorithm