Sort And Searching Question:

Download Job Interview Questions and Answers PDF

What is Bitonic search?

Sort And Searching Interview Question
Sort And Searching Interview Question

Answer:

An array is bitonic if it is comprised of an increasing sequence of integers followed immediately by a decreasing sequence of integers. Given a bitonic array a of N distinct integers, describe how to determine whether a given integer is in the array in O(log N) steps. Hint: find the maximum, then binary search in each piece.

Download Sort And Searching Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me what is quick sort?What is Range search?