1.

How many jumps will be made in the worst case of jump search(let block jumped =k)?(a) n*k(b) n/k(c) k/n(d) n+kThis question was posed to me by my school principal while I was bunking the class.Question is taken from Searching in chapter Searching of Data Structures & Algorithms II

Answer»

The CORRECT ANSWER is (b) n/k

The best EXPLANATION: WORST case occurs when the value to be searched is in the last section of the array. So, in this case the NUMBER of jumps will be n/k.



Discussion

No Comment Found

Related InterviewSolutions