Data structures
Assignment no-3
Unit-III
STACK ,QUEUE ,LINKED-LIST
1. What is stack ? Write an ADT for stack.
2. Explain (algo.) evaluation of postfix expression using stack with
example.
3. Write algorithm to convert infix expression to postfix expression.
4. Explain the stepwise conversion using stack for the given infix
expression to the postfix expression :
1) A * B + C * D. 2) A * (B + C) * D. 3) ((a/(b-c+d))*(e-a)*c
5. Compare Singly, Doubly and Circular Linked List..
6. Write pseudo Python code to delete a node from a doubly
linked list.
7. Explain linear queue and circular queue with suitable example. Give
the advantages of circular queue over linear queue.
8. What is Priority queue ? Describe the operations on priority
queue and explain its applications.
9. Explain Dequeue with the insert and delete operations performed on it.
10. Write pseudo Python code to perform insert and delete operation on
linear queue.