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.
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.
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.
When an expanded state needs another chance
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.