Suppose you are given an array $A$ with $2n$ numbers.
The numbers in odd positions are sorted in ascending order, that is, $A[1] \leq A[3] \leq \ldots \leq A[2n - 1]$.
The numbers in even positions are sorted in descending order, that is, $A[2] \geq A[4] \geq \ldots \geq A[2n]$.
What is the method you would recommend for determining if a given number is in the array?
- Sort the array using quick-sort and then use binary search.
- Merge the sorted lists and perform binary search.
- Perform a single binary search on the entire array.
- Perform separate binary searches on the odd positions and the even positions.
- Search sequentially from the end of the array.