Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged time-complexity
1
votes
1
answer
361
Time complexity
Rackson
601
views
Rackson
asked
Jan 20, 2019
Algorithms
time-complexity
test-series
+
–
0
votes
1
answer
362
What is the complexity of T(n) =T(sqrt(n)) +loglogn
Anitadalla
3.3k
views
Anitadalla
asked
Jan 20, 2019
Algorithms
algorithms
time-complexity
recurrence-relation
+
–
0
votes
1
answer
363
ME TEST SERIES QUESTION ON TIME COMPLEXITY
Shankar Kakde
365
views
Shankar Kakde
asked
Jan 19, 2019
Algorithms
made-easy-test-series
time-complexity
algorithms
+
–
2
votes
1
answer
364
#Ace_Test_series.
Consider the problem of construction of a minimum cost binary search tree for a given set of ‘$n$’ identifiers with their respective probabilities. The time complexity of the most efficient algorithm of the same is $O(n^2)$ $O(n^3)$ $O(n\log n)$ $O(n^3\log n)$
Consider the problem of construction of a minimum cost binary search tree for a given set of ‘$n$’ identifiers with their respective probabilities. The time complexit...
`JEET
488
views
`JEET
asked
Jan 19, 2019
DS
data-structures
binary-search-tree
time-complexity
ace-test-series
+
–
0
votes
1
answer
365
Ace Mock Test 4
c=0 for 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 is O(n$^{2}$) O(n$^{2}$.log n) O(n$^{3}$) O(n$^{3}$.log n)
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$...
Rishabh Agrawal
319
views
Rishabh Agrawal
asked
Jan 18, 2019
Algorithms
ace-test-series
time-complexity
+
–
1
votes
1
answer
366
Time Complexity
I am unable to Find its time complexity using Iterative method… Will any one help me out with this . Thank you :)
I am unable to Find its time complexity using Iterative method…Will any one help me out with this .Thank you :)
Nandkishor3939
723
views
Nandkishor3939
asked
Jan 18, 2019
Algorithms
time-complexity
algorithms
asymptotic-notation
+
–
1
votes
1
answer
367
Time complexity
What is the worst case time complexity to count pairs of numbers with difference ‘k’ from an input array of ‘n’ numbers O(log n) O(n log n) O(n)^2 O(n^2 log n) The answer given was B but since worst case time is stated shouldn't the answer be C? I mean we can check all possible pairs in the worst case. Correct me if I am wrong?
What is the worst case time complexity to count pairs of numbers with difference ‘k’ from an input array of ‘n’ numbers O(log n)O(n log n)O(n)^2O(n^2 log n)The an...
Anilava Kundu
1.3k
views
Anilava Kundu
asked
Jan 17, 2019
Algorithms
algorithms
time-complexity
algorithm-design
+
–
0
votes
1
answer
368
What do we mean by INVERSION
I searched on internet but got noting .
I searched on internet but got noting .
Nandkishor3939
360
views
Nandkishor3939
asked
Jan 16, 2019
Algorithms
algorithms
time-complexity
inversion
made-easy-test-series
+
–
2
votes
1
answer
369
Complexity
An unordered list contains n distinct elements. Number of comparisons to find element larger than second minimum is O(1) O(n) None
An unordered list contains n distinct elements. Number of comparisons to find element larger than second minimum isO(1)O(n)None
gate_forum
647
views
gate_forum
asked
Jan 16, 2019
Algorithms
algorithms
time-complexity
easy
+
–
2
votes
1
answer
370
sorted list
we are given (log m) sorted list each of size (log n) / (log m) the time complexity of merging list into single sorted list using mergesort is equal to a) O ( log m log(log n) ) b) O ( log n log(log m) ) c) O ( log m log n) d) O ( m log log n)
we are given (log m) sorted list each of size (log n) / (log m) the time complexity of merging list into single sorted list using mergesort is equal to a) O ( log m log(l...
Rahul_Rathod_
914
views
Rahul_Rathod_
asked
Jan 16, 2019
Algorithms
algorithms
sorting
time-complexity
+
–
2
votes
2
answers
371
Applied Course | Mock GATE | Test 1 | Question: 30
Consider the following program code, where pow() is the exponentiation function. f (int n) { if (n <= 1) return 1; return f(n-1) + g(n) + g(pow(2, n-1)); } g (int n) { if (n <= 1) return 1; return 1 + g(n/2); } What is the worst-case time complexity of $f(n)$? $O(2^n)$ $O(n^2)$ $O(2^n \log (n))$ $O( \log ^n (n))$
Consider the following program code, where pow() is the exponentiation function.f (int n) { if (n <= 1) return 1; return f(n-1) + g(n) + g(pow(2, n-1)); } g (int n) { if ...
Applied Course
711
views
Applied Course
asked
Jan 16, 2019
Algorithms
applied-course-2019-mock1
algorithms
time-complexity
+
–
2
votes
1
answer
372
Finding the minimum element in a Heap
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:)
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:...
Nandkishor3939
3.4k
views
Nandkishor3939
asked
Jan 15, 2019
DS
binary-heap
time-complexity
+
–
2
votes
0
answers
373
MadeEasy Subject Test 2019: Algorithms - Time Complexity
Pratik Gawali
497
views
Pratik Gawali
asked
Jan 15, 2019
Algorithms
algorithms
time-complexity
made-easy-test-series
+
–
1
votes
1
answer
374
Asymptotic notation
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)
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)
bts1jimin
585
views
bts1jimin
asked
Jan 12, 2019
Algorithms
asymptotic-notation
algorithms
time-complexity
+
–
0
votes
1
answer
375
Algorithms Time complexity
Rackson
970
views
Rackson
asked
Jan 12, 2019
Programming in C
time-complexity
algorithms
asymptotic-notation
+
–
0
votes
1
answer
376
Algorithm
What is the right answer?
What is the right answer?
Anuj1995
497
views
Anuj1995
asked
Jan 10, 2019
Algorithms
merge-sort
time-complexity
test-series
+
–
2
votes
1
answer
377
Gateforum Test Series: Algorithms - Time Complexity
Gupta731
596
views
Gupta731
asked
Jan 9, 2019
Algorithms
gateforum-test-series
algorithms
time-complexity
+
–
1
votes
1
answer
378
MadeEasy Test Series: Algorithms - Time Complexity
Please show the ideal way to deal with such comparisons as I am getting g>=f IN genral what logic shall be followed to analyse such complex comparions?
Please show the ideal way to deal with such comparisons as I am getting g>=f IN genral what logic shall be followed to analyse such complex comparions?
Markzuck
507
views
Markzuck
asked
Jan 6, 2019
Algorithms
algorithms
asymptotic-notation
made-easy-test-series
time-complexity
+
–
0
votes
1
answer
379
UPPCL AE 2018:55
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 \log n)$ $\Theta(n/ \log n)$ $\Theta(1)$ $\Theta(\log n)$
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 ...
admin
406
views
admin
asked
Jan 5, 2019
Algorithms
uppcl2018
algorithms
time-complexity
+
–
0
votes
1
answer
380
UPPCL AE 2018:38
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}_{4}, \text{f}_{3}, \text{f}_{2}, \text{f}_{1}$
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}_...
admin
462
views
admin
asked
Jan 5, 2019
Algorithms
uppcl2018
algorithms
asymptotic-notation
time-complexity
+
–
0
votes
1
answer
381
UPPCL AE 2018:23
Consider the following code snippet. It accepts a positive integer $n$ as input. int i = 0, j = 0, val = 1; for(i = 1; i <= n; i++) { j = n; if (i%2 == 0) { while(j>1) { val = val * j; j = j / 2; } } } What is the worst-case time complexity of the algorithm? $O(n)$ $O(n^{2})$ $O(n^{2} \log n)$ $O (n \log n)$
Consider the following code snippet. It accepts a positive integer $n$ as input.int i = 0, j = 0, val = 1; for(i = 1; i <= n; i++) { j = n; if (i%2 == 0) { while(j>1) { v...
admin
310
views
admin
asked
Jan 5, 2019
Algorithms
uppcl2018
algorithms
time-complexity
+
–
1
votes
1
answer
382
Recurrence relation
T(n) = T(n/4) + T(3n/4) + n How 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) +X CAN WE SOLVE LIKE THIS? PLEASE HELP
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...
Mayankprakash
1.3k
views
Mayankprakash
asked
Jan 4, 2019
Algorithms
recurrence-relation
time-complexity
algorithms
+
–
1
votes
1
answer
383
Time complexity (Advance Level)
The difference of time Complexity between given functions can be represented by: void fun1(int n) { for(int i=1;i<=n;i++) for(int j=1;j<=i*i;j++) if(j%i==0) for(int k=1;k<=j;k++) s++; return 0; } void fun2(int n) { for(int i=1;i<=n;i++) for(int j=1;j<=i*i;j++) for(int k=1;k<=j;k++) s++; return 0; } $i. O(n^2)$ $ii. O(n)$ $iii.O(1)$ $iv. O(n^{1.5})$
The difference of time Complexity between given functions can be represented by:void fun1(int n){ for(int i=1;i<=n;i++) for(int j=1;j<=i*i;j++) if(j%i==0) ...
shreyansh jain
918
views
shreyansh jain
asked
Jan 4, 2019
Algorithms
time-complexity
asymptotic-notation
algorithms
+
–
0
votes
1
answer
384
ME Testseries
What is the time complexity of the following program?
What is the time complexity of the following program?
Vipin Rai
544
views
Vipin Rai
asked
Jan 4, 2019
Algorithms
made-easy-test-series
time-complexity
algorithms
+
–
0
votes
1
answer
385
Time Complexity of Code snippet
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++; } } } Options: O(N^4) O(N^3) O(N^2) O(N)
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...
saptarshiDey
8.2k
views
saptarshiDey
asked
Jan 3, 2019
Algorithms
time-complexity
algorithms
asymptotic-notation
+
–
0
votes
1
answer
386
Time complexity
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.
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.
Mayankprakash
419
views
Mayankprakash
asked
Jan 3, 2019
Algorithms
time-complexity
algorithms
+
–
0
votes
1
answer
387
UGC NET CSE | December 2018 | Part 2 | Question: 27
Match $\text{List I}$ with $\text{List II}$ ... $\text{(a)-(iii), (b)-(i), (c)-(iv), (d)-(ii)}$
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} \\ & \...
Arjun
1.8k
views
Arjun
asked
Jan 2, 2019
Unknown Category
ugcnetcse-dec2018-paper2
algorithms
graph-algorithms
time-complexity
+
–
1
votes
2
answers
388
UGC NET CSE | December 2018 | Part 2 | Question: 29
Consider a singly linked list. What is the worst case time complexity of the best-known algorithm to delete the node $a$, pointer to this node is $q$, from the list? $O(n \lg \: n)$ $O(n)$ $O(\lg \: n)$ $O(1)$
Consider a singly linked list. What is the worst case time complexity of the best-known algorithm to delete the node $a$, pointer to this node is $q$, from the list?$O(n ...
Arjun
2.9k
views
Arjun
asked
Jan 2, 2019
Unknown Category
ugcnetcse-dec2018-paper2
data-structures
linked-list
time-complexity
+
–
1
votes
0
answers
389
Zeal Test Series 2019: Algorithms - Time Complexity
A sorted array of n elements which has been circularly shifted. For example, {18,25,1,5,11,16} is a sorted array that has been circularly shifted by 2 positions. suppose a person has to find the largest element in a circularly shifted array. Here, there ... been shifted is unknown. find time complexity. 1. O(nlogn) 2. O(n) 3. O(n^2) 4. O(logn)
A sorted array of n elements which has been circularly shifted. For example, {18,25,1,5,11,16} is a sorted array that has been circularly shifted by 2 positions. suppose ...
Prince Sindhiya
386
views
Prince Sindhiya
asked
Jan 2, 2019
Algorithms
zeal
algorithms
time-complexity
zeal2019
+
–
0
votes
1
answer
390
Gateforum Test Series
Gupta731
548
views
Gupta731
asked
Jan 2, 2019
Algorithms
algorithms
time-complexity
gateforum-test-series
+
–
Page:
« prev
1
...
8
9
10
11
12
13
14
15
16
17
18
...
53
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register