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.


The first two levels below a root show three children for each internal node.


Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Search Questions: