Nptel Work Shop Week 1
Nptel Work Shop Week 1
The above concept can be implemented using a simple recursive call and
keeping track of the computed result value at each recursion call.
Algorithm:
If mid == n
Return low
Else if mid < n
Search (low , mid -1 , arr ,n)
Else mid > n
Search (mid , high , arr , n)
End