Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Profile
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Recent activity by Phlegmatic
3
answers
1
Made easy work book
How to solve T (n)=T (sqrt n)+ n
How to solve T (n)=T (sqrt n)+ n
548
views
answered
Jun 22, 2018
Algorithms
master-theorem
recurrence-relation
made-easy-booklet
+
–
15
answers
2
GATE CSE 2007 | Question: 15, ISRO2016-26
Consider the following segment of C-code: int j, n; j = 1; while (j <= n) j = j * 2; The number of comparisons made in the execution of the loop for any $n > 0$ is: $\lceil \log_2n \rceil +1$ $n$ $\lceil \log_2n \rceil$ $\lfloor \log_2n \rfloor +1$
Consider the following segment of C-code:int j, n; j = 1; while (j <= n) j = j * 2;The number of comparisons made in the execution of the loop for any $n 0$ is:$\lceil \...
37.1k
views
answer selected
Jun 22, 2018
Algorithms
gatecse-2007
algorithms
time-complexity
normal
isro2016
+
–
1
answer
3
Self-Doubt
What will be the time-complexity of the following ? for(i=1;i<=n;i=i*2) { for(j=0;j<i;j++) { count++; } }
What will be the time-complexity of the following ? for(i=1;i<=n;i=i*2) { for(j=0;j<i;j++) { count++; } }
416
views
commented
Jun 21, 2018
Algorithms
time-complexity
+
–
1
answer
4
Self-Doubt
What is the time-complexity of Enqueue and Dequeue operations when Queue is implemented using linked list? What is the time complexity of inserting a element in single linked list ?
What is the time-complexity of Enqueue and Dequeue operations when Queue is implemented using linked list?What is the time complexity of inserting a element in single lin...
1.3k
views
commented
Jun 21, 2018
1
answer
5
Virtual Memory
A demand paging system takes 250 time units to service a page fault and 450 time units to replace a dirty page. Memory access time is 10 time units. The probability of page faults is 0.3. In case of a page fault, the probability of page being dirty is 0.06. The average access time is ?
A demand paging system takes 250 time units to service a page fault and 450 time units to replace a dirty page. Memory access time is 10 time units. The probability of pa...
279
views
commented
Jun 16, 2018
3
answers
6
Time Complexity
What is the time complexity of the following code? for(i=n;i>=1;) i=i/2;
What is the time complexity of the following code?for(i=n;i>=1;)i=i/2;
397
views
answered
Jun 11, 2018
Algorithms
algorithms
time-complexity
+
–
1
answer
7
Self-Doubt
195
views
asked
Jun 9, 2018
Algorithms
algorithms
asymptotic-notation
test-series
+
–
3
answers
8
Self-Doubt
int main() { int i; for(i=1;i<=n;i++) f(i); } void f(int n) { int A[n]; int j; for(j=1;j<=n;j++) cout<<j; } What will be the time and space complexity of the following code snippet ?
int main() { int i; for(i=1;i<=n;i++) f(i); } void f(int n) { int A[n]; int j; for(j=1;j<=n;j++) cout<<j; }What will be the time and space complexity of the following cod...
523
views
answer selected
Jun 8, 2018
Algorithms
algorithms
time-complexity
space-complexity
+
–
2
answers
9
Self-Doubt
What will be the solution of the following recurrence? $T(n)=3T\sqrt{n}+\log(n)$
What will be the solution of the following recurrence?$$T(n)=3T\sqrt{n}+\log(n)$$
694
views
commented
Jun 8, 2018
Algorithms
algorithms
recurrence-relation
+
–
1
answer
10
Self-Doubt
In a circular linked list last node points to the : $Head$ $Tail$ $First Node$
In a circular linked list last node points to the :$Head$$Tail$$First Node$
1.1k
views
answer selected
May 28, 2018
Programming in C
data-structures
circular-linked-list
linked-list
+
–
2
answers
11
Self-Doubt
Convert this infix expression to postfix form ? $3*log(x+1)*\dfrac{a}{2}$
Convert this infix expression to postfix form ?$3*log(x+1)*\dfrac{a}{2}$
382
views
commented
May 28, 2018
Programming in C
data-structures
compiler-design
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register