1.

What is the space complexity of quick search algorithm?(a) O(n)(b) O(log n)(c) O(m+n)(d) O(mn)This question was addressed to me in homework.I'd like to ask this question from String Matching in section String Matching of Data Structures & Algorithms II

Answer»

The correct CHOICE is (a) O(N)

The best I can explain: The space complexity of quick SEARCH ALGORITHM is MATHEMATICALLY found to be O(n) where n represents the input size.



Discussion

No Comment Found

Related InterviewSolutions