1.

What is the space complexity of Greedy search?(a) O(b)(b) O(bl)(c) O(m)(d) O(bm)I got this question during an online interview.I'm obligated to ask this question of Informed Search and Exploration topic in chapter Problem Solving of Artificial Intelligence

Answer»

Correct answer is (d) O(bm)

Best explanation: O(bm) is the space complexity where b is the BRANCHING factor and m is the MAXIMUM depth of the SEARCH tree. SINCE this algorithm resembles the DFS.



Discussion

No Comment Found

Related InterviewSolutions