A* searches the directed network shown, starting at S and testing for success when G is removed from the frontier. It selects the smallest f=g+hf=g+hf=g+h and updates frontier entries on cheaper arrivals. Compare two implementations: one permanently rejects arrivals at previously expanded states; the other updates and reinserts an expanded state whenever its recorded ggg improves. Use the heuristic table and select every true statement.
State
Heuristic h (s)
S
0
A
B
5
G
Both implementations return a minimum-cost route because admissibility makes every state's first expansion final.
The heuristic is admissible, but it violates consistency on the directed edge from B to A.
The implementation that permanently rejects arrivals at expanded states returns a route costing eight seconds.
The implementation that reinserts an expanded state after a cost improvement returns a route costing six seconds.
Unlock full course notes by signing up
Updating a cheaper arrival
A courier planner uses uniform-cost search, selecting the frontier entry with the smallest accumulated travel time. It starts at depot D and seeks terminal T in the directed network shown. On a cheaper arrival, it updates that state's recorded time and parent. It tests for success only when T is removed from the frontier. What travel time does it return? Answer in seconds, to the nearest whole second.
Counting breadth-first storage
A breadth-first search explores a tree with the root at depth zero. Every node at depths zero through four generates exactly three children, and all nodes represent distinct states. The first goal is at depth five. The search tests goals when removing nodes, rather than when generating them. At the instant all depth-four nodes have been expanded but no depth-five node has been removed, find the total number of expanded nodes and the number of entries on the frontier. Give both answers as exact integer counts.
Distinguishing depth cutoffs from exhausted searches
A diagnostic program runs depth-limited search on the finite tree shown. Each row represents an independent call, with depth zero assigned to that row's starting state. E is the only goal, and the diagram contains every edge.
Use this exact recursive policy:
Test whether the current state is a goal; if so, return success.