Recent questions tagged time-complexity

1 votes
1 answer
361
2 votes
1 answer
364
0 votes
1 answer
365
c=0for i $\leftarrow$ 1 to n for j $\leftarrow$ i+1 to n for k $\leftarrow$ 1 to j c = c + 1 The value of c isO(n$^{2}$)O(n$^{2}$.log n)O(n$^{3}$)O(n$...
1 votes
1 answer
366
I am unable to Find its time complexity using Iterative method…Will any one help me out with this .Thank you :)
2 votes
1 answer
369
An unordered list contains n distinct elements. Number of comparisons to find element larger than second minimum isO(1)O(n)None
2 votes
1 answer
372
I was going through the heap concept and one question came into my mind what will be the best case time complexity of finding the minimum element in a max heap?Thank you:...
1 votes
1 answer
374
Let f(n) =O(n), g(n)=Ώ(n) and h(n)=Θ(n). Then g(n)+f(n).h(n) is _____?a- Ω($n^{2}$)b- Θ($n^{2}$)c-Ω(n)d-Θ(n)
0 votes
1 answer
376
What is the right answer?
1 votes
1 answer
378
0 votes
1 answer
379
An unordered list contains $n$ distinct elements. The number of comparisons to find an element in the list that is larger than the second minimum in the list is$\Theta(n ...
0 votes
1 answer
380
Which of the given options provides the increasing order of asymptotic complexity of functions $\text{f}_{1}, \text{f}_{2}, \text{f}_{3}$ and $ \text{f}_{4} $ ?$\text{f}_...
1 votes
1 answer
382
T(n) = T(n/4) + T(3n/4) + nHow to solve these type of problems?Can I solve this using master theorm by considering X = T(3N/4) +N THEN T(N) = T(N/4) +XCAN WE SOLVE LIKE T...
0 votes
1 answer
384
What is the time complexity of the following program?
0 votes
1 answer
385
What will be the worst case time complexity for the following code segment?int count=0,N; for(i=0;i<N*2;i++){ for(j=0;j<i/3;i++){ for(k=0;k<j*j;k++){ count++; } } }Option...
0 votes
1 answer
386
How to analyze this problem For (I=1;I<n;I++){ For (j=1;j<n;j=j+I){Print("℅d℅d", I,j);}} Please suggest I'm detail how do we unroll I & j.
0 votes
1 answer
387
Match $\text{List I}$ with $\text{List II}$ and choose the correct answer from the code given below.$\begin{array} {clcl} & \textbf{List I} & & \textbf{List II} \\ & \...
1 votes
2 answers
388