Sail E0 Webinar
Question
What is the length of the step in jump search?
Options:
A .  n
B .  n/2
C .  sqrt(n)
D .  1
Answer: Option C


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).



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers