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

Discussion

Assertion (A): Iterative deepening is often preferred to breadth first search.

Reason (R): It offers the same completeness and optimality with linear rather than exponential memory.

Select the correct answer from the options below.

  • A.Both A and R are true, and R is the correct explanation of A
  • B.Both A and R are true, but R is not the correct explanation of A
  • C.A is true but R is false
  • D.A is false but R is true

Answer: A

Both are true and the second is the reason. Because memory rather than time is usually the binding constraint, an algorithm that matches breadth first's guarantees while needing only the current path is preferable whenever the space is large. The cost is regenerating the upper levels, which the exponential structure of the tree makes cheap. Trading a small time penalty for a large memory saving is almost always the right bargain when the memory is what runs out first.

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

Post your comment

Please log in or register to post a comment.