retagged by
433 views
0 votes
0 votes

Let $S$ be a sorted array of n integers. Let $T(n)$ denote the time taken for the most efficient algorithm to determined all elements with sum less than $10000$ in $S$. Which of the following statement is true?

  1. $T(n)$ is $O(1)$
  2. $n \leq T(n)\leq nlog_2n$
  3. $nlog_2n\leq T(n)<n^2$
  4. $T(n)=(n^2)$
  5. $\text{None of these}$.
retagged by

1 Answer

Related questions

0 votes
0 votes
1 answer
1
_Madhuri asked Nov 2, 2021
330 views
What will be the recurrence relation for max heapify. Please explain with example.
1 votes
1 votes
0 answers
2
srestha asked May 19, 2019
638 views
Let $A(n)$ denotes the number of $n$ bit binary strings which have no pair of consecutive $1’s.$ what will be recurrence relation for it and what will be it’s Time Co...
0 votes
0 votes
1 answer
3
jatin khachane 1 asked Jan 2, 2019
352 views
Let T(n) be a function defined by the recurrence T(n)=2T(n/2)+√n for n≥2 andT(1)=1Can someone please explain solution of this using back substitution
0 votes
0 votes
3 answers
4
aditi19 asked Oct 6, 2018
1,149 views
what is the recurrence relation for merge sort?