1.

What is the space complexity of Depth-first search?(a) O(b)(b) O(bl)(c) O(m)(d) O(bm)The question was posed to me during a job interview.My question is from Uninformed Search Strategy topic in chapter Problem Solving of Artificial Intelligence

Answer»

The correct CHOICE is (d) O(BM)

Easy explanation: O(bm) is the space complexity where B is the branching factor and m is the maximum depth of the SEARCH TREE.



Discussion

No Comment Found

Related InterviewSolutions