retagged by
764 views
1 1 vote
What is the method to find the time complexity to search an element which appears more than 20% in sorted array having n elements.

and also for 1% or 40% .

1 Answer

0 0 votes
O(logN)

As asymptotic complexity is dependent on data space only which is N.
Position:
Show:

Related questions

0 0 votes
1 1 answer
85
85 views
GO Classes asked Aug 25
85 views
Let $P$ be the problem of sorting $n\geq1$ elements using only comparisons.Consider the class of all comparison-based algorithms that correctly solve $P$.What is the asym...
1 1 vote
0 0 answers
2.2k
2.2k views
0 0 votes
1 1 answer
1.5k
1.5k views
GateAspirant999 asked Sep 16, 2018
1,548 views
Consider the following sorting algorithmSorting (A, low, high)Iif (low == high) return;if (low $+1==$ high)Iif $(\mathrm{A}[$ low $]>\mathrm{A}[$ high $])$swap (A[low], A...
0 0 votes
3 3 answers
2.6k
2.6k views
Deepalitrapti asked Sep 12, 2018
2,591 views
14Computer Science \& ITAlgorithm, DataQ. 78 Given a sorted array of n-elements where other than one element $x$ every other element repeat two times. Then how much time ...