Question 1: Short answer
easyAI-checkedSearch & PlanningBreadth-first search runs on a tree in which every node has exactly children. The shallowest goal is at depth and is the last node generated at that depth. BFS applies the goal test as soon as a node is generated. Counting the root, how many nodes has BFS generated when it finds the goal?