1. What is the recurrence relation for 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 NN. What would be the best time complexity of an algorithm to find a pair of numbers such that the absolute difference between them is equal to pp, i.e., (x,y)(x,y) where xy=p|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, where the upper bound is the smallest element greater than or equal to the given number?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

6. Why can Binary Search not be directly applied to an unsorted array?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

7. An unsorted array contains NN elements. You first sort it and then perform one Binary Search operation. Ignoring the cost of the final search, what is the main additional cost introduced by this approach?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

8. Consider an unsorted array of NN elements. What is the worst-case time complexity of searching for a particular element using Linear Search?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

9. An array is given as [42,7,19,3,25][42, 7, 19, 3, 25], and the task is to determine whether the value 2525 is present. Which approach is directly suitable without first sorting the array?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation