+1 vote
in Data Structures & Algorithms II by (110k points)
The naive pattern searching algorithm is an in place algorithm.

(a) true

(b) false

The question was posed to me in examination.

My question is based upon Searching in section Searching of Data Structures & Algorithms II

1 Answer

+1 vote
by (614k points)
selected by
Best 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.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.