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

Discussion

What is the memory cost of graph search?

  • A.Every expanded state must be stored in the explored set
  • B.The path from the root to every frontier node must be stored
  • C.The whole state space must be enumerated before searching
  • D.Each node requires a pointer to all of its successors

Answer: A

The explored set grows with the number of distinct states visited, which destroys depth first search's linear memory advantage and makes graph search comparable to breadth first in space. Techniques such as storing only a bounded cache trade completeness for memory. Paths are recovered by parent pointers, the space is never enumerated in advance, and successors are computed on demand. Every guarantee in search costs memory, and the accounting is worth doing explicitly.

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

Post your comment

Please log in or register to post a comment.