2. Count the exact number of primitive operations, as a function of n, in the following piece of pseudo-code:
3. Give the pseudo-code to perform binary search using recursion. Let the input be x and an array A of size n. The algorithm returns either the index i such that A[i]=x, or -1 if x does not exist in A.
4. Goodrich & Tamassia (G&T) R-1.15
5. G&T R-1.19
6. G&T R-1.22
7. G&T C-1.10
8. G&T C-1.27
1. G&T R-6.2
2. G&T R-6.4
3. G&T R-6.10
4. G&T C-6.2
5. G&T C-6.3
6. G&T R-7.1
7. G&T C-7.2