Question:

Consider a state space where the start state is number 1. The successor function for the state numbered n returns two states numbered n+1 and n+2. Assume that the states in the unexpanded state list are expanded in the ascending order of numbers and the previously expanded states are not added to the unexpanded state list.
Which ONE of the following statements about breadth-first search (BFS) and depth-first search (DFS) is true, when reaching the goal state number 6 ?

Updated On: Jan 4, 2025
  • BFS expands more states than DFS.
  • DFS expands more states than BFS.
  • Both BFS and DFS expand equal number of states.
  • Both BFS and DFS do not reach the goal state number 6.
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

The correct option is (C) : Both BFS and DFS expand equal number of states..
Was this answer helpful?
1
1