1.

Which search method takes less memory?(a) Depth-First Search(b) Breadth-First search(c) Linear Search(d) Optimal searchI had been asked this question in an internship interview.The above asked question is from Problem Solving in portion Problem Solving of Artificial Intelligence

Answer»

The correct answer is (a) Depth-First Search

To EXPLAIN I would say: Depth-First Search takes less MEMORY since only the nodes on the current path are stored, but in Breadth First Search, all of the tree that has GENERATED MUST be stored.



Discussion

No Comment Found

Related InterviewSolutions