Professional Documents
Culture Documents
Illustrate and write a routine for singly linked list with insert, delete, display
11. (a) CO1 K2
Operations.
(or)
3 2
11. (b) State the polynomial representation for 5x +3x +11x+4 using a linked list. CO1 K3
Write a routine to add two polynomials and explain with suitable examples.
i) Give an algorithm for push and pop operations on stack using a linked list.
ii)Write an algorithm to convert the following infix expression to postfix
12. (a) CO2 K3
expression using stack. Trace the algorithm and show the stack contents. The
expression is (A+B)*C/D+E/F.
(or)
i) Write routine to perform the following operations on queue.
1) Enqueue( )
2) Dequeue( )
12. (b) 3) IsEmpty( ) CO2 K2
4) IsFull( )
ii) Discuss about insertion and deletion operations performed on a dequeue
with example.
*****
Verified by Approved By
SET 2
Illustrate and write a routine for doubly linked list with insert, delete, display
11. (a) CO1 K2
Operations.
(or)
i) Discuss an algorithm for array implementation of List ADT.
11. (b) CO1 K2
ii) Derive the Radix sort application of linked list in detail.
12. (a) Briefly describe the operations of queue with examples. CO2 K2
(or)
i) Write the function to examine whether the stack is full() or empty()
12. (b) CO2 K2
ii) Explain any one application of stack.
*****
Verified by Approved By