(Solved):
. 4.[15 Pts] Suppose you are given a sorted array of n distinct integers A[1] A[n], explain ...
. 4.[15 Pts] Suppose you are given a sorted array of n distinct integers A[1] · · A[n], explain an O(log n) divide-and-conquer algorithm to find out whether there is an index i such that A[i] = i. When, write your algorithm in the form using the notations that we have discussed in the class (similar to question 1 above). Finally prove your algorithm is O(log n). Clearly state your reasoning. Point distribution: Explanation of the algorithm (5 Pts), format representation of the algorithm (5 Pts), proof that algorithm runs O(log n) time (5 Pts)
Hey Champ I Give Best Solution....Please Give Upvote ...Thank U Given an array of n distinct integers sorted in ascending order, write a function that returns a Fixed Point in the array, if there is any Fixed Point present in array, else returns -1.