0 votes
0 answers
1
4 votes
3 answers
5
What is the time complexity of the following code snippet?sum=0; for(i=0;i<=n;i++) { for(j=1;j<=i;j++) { if(j%i==0) { for(k=0;k<=n;k++) { sum=sum+k; } } } }
6 votes
1 answer
7
1. Does starvation freedom imply bounded- waiting ?2. Does bounded- waiting imply starvation freedom ?Explain with example.
5 votes
1 answer
9
There are n distinct numbers are given not in sorted order. How much time it will take to select a number say k which is neither k-th minimum nor k-th maximum.A. O$(n)$B....
1 votes
2 answers
10
1 votes
1 answer
11
1 votes
2 answers
12
On which of the following recurrence relation Masters theorem can not be applied ?A. T(n)= 2T(n/2) + n (log n).B. T(n) = T(n/2) + 1.C. T(n) = 8T(n/2) + (log n).D. T(n) = ...
2 votes
1 answer
14
1 votes
2 answers
15
Let S = { (a1 , a2 , a3 ) | 0 $\leq$ ai $\leq$ 9 and a1 + a2 + a3 is divisible by 3}. Then the number of elements in S is 327333334336
0 votes
1 answer
16
0 votes
1 answer
17
The sum of all integers from 1 to 1000 that are divisible by 2 or 5 but not divisible by 4 equals 175000225500149500124000
1 votes
1 answer
18
If $\sqrt{3}$ + 1 is a root of equation 3 x$^{3}$ + ax$^{2}$ + bx + 12 = 0 where a and b are rational numbers, then b is equal to -62610