1.

Jump search algorithm requires which of the following condition to be true?(a) array should be sorted(b) array should have not be sorted(c) array should have a less than 64 elements(d) array should be partially sortedI got this question in my homework.I'd like to ask this question from Searching topic in chapter Searching of Data Structures & Algorithms II

Answer»

Correct ANSWER is (a) array should be sorted

Easiest explanation - JUMP sort REQUIRES the INPUT array to be sorted. The algorithm WOULD fail to give the correct result if array is not sorted.



Discussion

No Comment Found

Related InterviewSolutions