Q Quốc Ân New member Sep 21, 2021 #1 What will be the maximum number of comparisons that can be made in jump search algorithm (assuming k to be blocks jumped)? A. k B. n/k C. k-1 D. k-1
What will be the maximum number of comparisons that can be made in jump search algorithm (assuming k to be blocks jumped)? A. k B. n/k C. k-1 D. k-1
Đ Đỗ Huyền Trang New member Sep 21, 2021 #2 Answer: c Explanation: Worst case occurs when the element being searched is present just after the element that has been compared while making the last jump. So, in this case k-1 comparisons will have to be made. Upvote 0 Downvote
Answer: c Explanation: Worst case occurs when the element being searched is present just after the element that has been compared while making the last jump. So, in this case k-1 comparisons will have to be made.