+1 vote
in Data Structures & Algorithms II by (110k points)
What is the auxiliary space requirement of the jump search?

(a) O(n)

(b) O(log n)

(c) O(n^1/2)

(d) O(1)

I got this question during an interview.

This interesting question is from Searching topic in division Searching of Data Structures & Algorithms II

1 Answer

+1 vote
by (614k points)
selected by
 
Best answer
Right option is (d) O(1)

Easy explanation - Jump search does not require any additional space for searching the required element. Thus its auxiliary space requirement will be O(1).

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.

Categories

...