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

Discussion

A search program solves small instances quickly but exhausts memory on slightly larger ones.

What is the most likely explanation?

  • A.The goal test is being applied to too many nodes
  • B.It uses breadth first search whose frontier grows exponentially
  • C.The implementation contains a memory leak in its node allocation
  • D.The problem's branching factor increases with instance size

Answer: B

Exponential growth means a small increase in depth multiplies the frontier size by the branching factor, so a program that fits comfortably at one size fails abruptly at the next. Switching to iterative deepening usually resolves it. A leak would show on small instances too, branching factor is usually constant, and goal testing is cheap. Abrupt failure at a slightly larger size is the characteristic signature of an exponential, and it points at the algorithm rather than at the code.

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

Post your comment

Please log in or register to post a comment.