2 answers
2
What is the space complexity of the following code?$O(logn)$ $O(n)$$O(nlogn)$ $O(1)$
2 answers
4
Q.1 int A(int n){if(n==2) return 1;else{for(int j=1;j<=n;j++)printf(" * ");return(A(√n));}} Time complexity
3 answers
5
m=1;for i=1 to n do begin m=m*3; for j=1 to m do {Something which is O(1)}What is the complexity of above algorithm?1. O(n*m3)2. O(n3)3. O(3n)...
2 answers
6
1 answer
7
I don't understand How?
1 answer
8
How the worst case of merge sort is O(n^2) according to the given MIT assignment pdf:-explain ?
3 answers
9
For each group of functions, sort the functions in increasing order of asymptotic (big-O) complexity:$\begin{align*} &(a) \;\;f1(n) = n^{0.999999} * \log n \\ &(b) \;\;f2...
2 answers
10
FIND THE TIME COMPLEXITYint i=1,j; for(;i <= n;i + +) { for(j = i; j <= nlogn; j∗= 2) { sum++; } }
2 answers
11
Find the complexity of the following function when called with some integer n:void foo(n) { int i,j,k,x=0; for (i=1 ; i <= n ; i++) for (j=1 ; j <= i * i ; j++) for ( k ...
1 answer
12
Find the complexity of the following code fragment:int i = 1; for(; i <= n logn; i++) { for(i++; i <= n; i++) { printf("1") } }
1 answer
14
Is there Any short cut to do these questions fast ?
1 answer
15
1 answer
16
plz explain otherwise i ll memorize it..
3 answers
18
2 answers
20
Ques. S Aa/bAc/dc A dWhich of them is correct. Please provide detailed information.a) LALR(1) but not SLR(1)b) Both SLR(1) and LALR(1)c) Grammar is Ambiguo...
2 answers
22
Consider the grammar givenS->AAA->aA / bHow many entries will be blank in the GOTO table for SR(0) items?What is the meaning of SR(0) items?
1 answer
23
1 answer
24
Options are as:-(a) i and ii (b) i and iii(c) ii and iii (d) none of the above
1 answer
25
2 answers
29
1 answer
30