Machine-translated by Google. Questions are authored in English.
Top

Discussion

When is breadth first search optimal?

  • A.When the state space contains no repeated states
  • B.Always, since it finds the shortest path in every case
  • C.When every action costs the same
  • D.When the branching factor is smaller than the solution depth

Answer: C

Breadth first finds the shallowest goal, which is the cheapest only if cost increases with depth, that is when all actions cost the same. With varying costs a deeper path may be cheaper and uniform cost search is needed instead. Branching factor and repeated states affect efficiency rather than optimality. A guarantee that holds only under a condition must always be stated with it, and this condition is the one most often forgotten.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.