Sort And Searching Question:

What is Bitonic search?

Tweet Share WhatsApp

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.

Read All 27 Sort And Searching Questions
Previous QuestionNext Question
Tell me what is quick sort?What is Range search?