Final DS Practical List
Final DS Practical List
7. Unit I Sparse Matrix 7. WAP to perform the following operations on sparse matrix(Menu
Driven:-
i. Transpose of sparse matrix
ii. Add two sparse matrices
iii. Multiply two sparse matrices
8. Unit II Linked List 8. WAP to do the following operations on Singly linked list-
i. Create a list
ii. Traverse a list(forward/backward)
iii. Reversal of a list
9. Unit II Linked List 9. WAP to do the following operations on Singly linked list
i. Insertion in a list(sorted/unsorted list) :-
a. At the beginning
b. At the end
c. Anywhere in the middle
10. Unit II Linked List 10. WAP to do the following operations on Singly linked list:-
i. Deletion in a list(sorted/ unsorted list)
a. At the beginning
b. At the end
c. Anywhere in the middle
11. Unit II Linked List 11. WAP to do the following operations on linked list:-
i. Searching from a list
ii. Sorting from a list
12. Unit II Linked List 12. WAP to do the following operations on Doubly linked list-
i. Create a list
ii. Traverse a list(forward/backward)
13. Unit II Linked List 13. WAP to do the following operations on Doubly linked list
i. Insertion in a list(sorted/unsorted list)
a. At the beginning
b. At the end
c. Anywhere in the middle
22. Unit Queues 29. WAP to do insertion and deletion in a Priority Queue using array and
III linked list
30. WAP to implement a (i) Static Circular Queue (ii) Dynamic Circular
Queue
23. Unit Stacks 31. Let us assume a Patient's coupon generator for the Doctors’ clinic. The
III patients are given the coupons on first-come-first-serve basis. After the
visit of a patient, patient-ID is kept stack-wise. At the end of the day,
the count is generated from the stack. Construct a menu-based
program for patients’ coupons generator using an appropriate data
structure.
24. Unit Stacks 32. Sometimes a program requires two stacks containing the same type of
III items. Suppose two stacks are stored in separate arrays, then one stack
might overflow while there is considerable unused space in the other.
A neat way to avoid this problem is to put all spaces in one stack and
let this stack grow from one end of the array, and the other stack starts
from the other end and grows in the opposite direction, i.e., toward the
first stack. In this way, if one stack turns out to be large and the other
small, then they will still both fit, and there will be no overflow until
all space is used. Declare a new structure that includes these two
stacks and perform various stack operations.
25. Unit Trees 33. Implement recursive algorithms for the following operations on Binary
IV Search Tree :-
i. Insertion
ii. Searching
26. Unit Trees 34. Implement recursive algorithms for BST traversal- Inorder, Preorder,
IV Postorder.
35. WAP to implement an expression tree. (For example: (a + b / (c * d) –
e) )