Professional Documents
Culture Documents
2. Discuss the Tower of Hanoi with example using recursive function. For 3 or 4 Disks.
3. Write a note on Ackermann function/Write Ackermann Function. Solve i) A(2,1)
ii) A(1,3).
4. Explain stacks operations using dynamic arrays.
5. Explain queues operations using dynamic arrays.
6. For the given circular queue shown in Fig. write the values of front and rear in the
table after each specified operation is performed. Queue full empty conditions must be
considered. 0 - 7 indicate the array indices.
7. Give the disadvantage of ordinary queue and how it is solved in circular queue. Explain
with suitable example how you would implement circular queue using dynamically
allocated array.
8. Write a note on dequeue.
9. Define priority queue. Explain in detail the representation of a Priority Queue with
example.
17. Write a node structure for linked representation of polynomial. Explain the algorithm to
add two polynomials represented using linked list.