1.

The naive pattern searching algorithm is an in place algorithm.(a) true(b) falseThe question was posed to me in examination.My question is based upon Searching in section Searching of Data Structures & Algorithms II

Answer»

The CORRECT answer is (a) true

Easiest explanation - The AUXILIARY SPACE complexity required by naive pattern searching algorithm is O(1). So it QUALIFIES as an in place algorithm.



Discussion

No Comment Found

Related InterviewSolutions