retagged by
472 views
0 votes
0 votes
Let A be a sorted array of distinct integers of length n. Design an algorithm to find an index i such that A[i] = i if such an index exists. If there are more than one such indices, you may output any one. If no such index exists then the algorithm outputs −1. The asymptotic time complexity of the fastest algorithm for this problem, assuming the array is already available, is Θ ______________________________
retagged by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
2
1 votes
1 votes
1 answer
4
admin asked Jan 6
152 views
Which of the following is true for a sorted list with ' $n$ ' elements?Insertion in a sorted array takes constant time.Insertion in a sorted linear linked list takes cons...