Jumps are made in the jump search algorithm until ___________

Jumps are made in the jump search algorithm until ___________
A. element having value less than that of the required element is found
B. element having value equal to the median of values of the array is found
C. element having value greater than that of the required element is found
D. middle element is found equal to the element being searched
 
Answer: c
Explanation: In jump search algorithm jumps are made until element having value greater than the value of element being searched is found. After this linear search is performed in backwards direction.
 

Tìm kiếm

Back
Top