What is the length of the step in jump search?
n
n/2
sqrt(n)
1
View Answer
Correct Answer: C — sqrt(n)
Explanation:
If the step size is 1, it becomes a linear search, if it is n, we reach the end of the list in just on step, if it is n/2, it becomes similar to binary search, therefore the most efficient step size is found to be sqrt(n).
