Question: Write the algorithm (pseudo-code) ' Find_x(A,p,q,x) ' that returns the index of value x in the array A[pq], if x is not found it outputs
Write the algorithm (pseudo-code) 'Find_x(A,p,q,x)' that returns the index of value x in the array A[pq], if x is not found it outputs value not found. For example to find the index of the value 4 in the array A[1.100] we invoke Find_x(A, 1, 100, 4). What is the big-O of this algorithm?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
