1. What is the recurrence relation for the binary search?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

2. In a linked list, which algorithm can be used to search for an element?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

3. Let us consider a sorted array of length N. What would be the best time complexity of the algorithm to find a pair of numbers such that absolute difference between them is equal to p? (i.e (x,y) where |x-y| = p)
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

4. Binary search is better than linear search for a static sorted array.
Explanation

Explanation

Explanation

Explanation

5. In an array, what would be the time complexity to find the closest upper bound of a given number?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation