DATA STR. USING C++
SEM-VI, 2012
B.TECH EXAMINATION
UTTARAKHAND TECHNICAL UNIVERSITY
(UTU)
Time: 3 hours
Total
Marks: 100
Attempt any four of the
following:
- Explain the meaning of following expression f(n) is n0(1)
- Prove the following statement
2n+a is 0(2n) - Find the computational complexity for the following
loop
for (cnt 4 = 0, i=1; i<=n, i*=2)
for (j=1; j<=i, j++)
cnt 4++; - Write a member function to check whether two singly
lists have the same contents.
- Write a member function to reverse a singly linked list
using only one pass through the list.
- Write a function to insert a node in the middle of a doubly linked list.