Guidelines DS Python GE4a
Guidelines DS Python GE4a
- -
-
- -
-
- -
- -
- - -
1.
2.
3.
(i)
Practicals List
1. Write a program to implement singly linked list as an ADT that supports the following opera-
tions:
i. Insert an element x at the beginning of the singly linked list
ii. Insert an element x at ith position in the singly linked list
iii. Remove an element from the beginning of the doubly linked list
iv. Remove an element from ith position in the singly linked list.
vi. Search for an element x in the singly linked list and return its pointer
2. Write a program to implement doubly linked list as an ADT that supports the following op-
erations:
i. Insert an element x at the beginning of the doubly linked list
ii. Insert an element x at the end of the doubly linked list
iii. Remove an element from the beginning of the doubly linked list
iv. Remove an element from the end of the doubly linked list
3. Write a program to implement circular linked list as an ADT which supports the following
operations:
i. Insert an element x in the list
ii. Remove an element from the list
iii. Search for an element x in the list and return its pointer