Data Structure Design Laboratory Set A
Data Structure Design Laboratory Set A
SET A
1. Write a python program using class and object to display the car details. The implementation should
have the class car with attributes Brand, prize, model and color. Create minimum 2 objects for the class
and display the details
3. Write a python program to implement LIST ADT using python arrays. The implementation should
have the following Operations
(i) Insertion
(ii) Deletion
(iii) Traversal
4. Write a python program to implement LIST ADT using linked list. The implementation should have
the following Operations
(i)Insertion
(ii)Deletion
(iii)Traversal
5. Write a python program to implement Stack ADT using python arrays. The implementation should
have the following Operations
(i)Push
(ii)POP
(iii)PEEP
6. Write a python program to implement Stack ADT using Linked List. The implementation should have
the following Operations
(i)PUSH
(ii)POP
(iii)TRAVERSAL
7. Write a python program to implement Queue ADT using python arrays. The implementation should
have the following Operations
(i)Enqueue
(ii)Dequeue
(iii)Traversal
8. Write a python program to implement Queue ADT using Linked List. The implementation should have
the following Operations
(i)Enqueue
(ii)Dequeue
(iii)Traversal
(a +b) *(c/d) +e
10. Write a python program to implement First Come First Serve (FCFS) CPU Scheduling algorithm to
demonstrate the application of Queue
17. Write a python program to demonstrate the following Binary Tree Traversal methods
18. Write a python program to construct a Binary Search Tree. Insert minimum eight elements. Delete a
Leaf node. Display the tree and the necessary data after insertion and deletion
22. Write a python program to implement Dijkstra’s Algorithm to find the shortest path
23. Write a python program to implement travelling salesman problem using Minimum spanning tree