Lab 10
Lab 10
Lab 10
1 Objective
The purpose of this lab session is to implement Doubly, Circular, and Multi Linked List data
structure and its applications.
2 Instructions
You have to perform the following tasks yourselves. Raise your hand if you face any difficulty in
understanding and solving these tasks. Plagiarism is an abhorrent practice and you should not
engage in it.
3 How to Submit
• Submit lab work in a single .py file on Google Classroom. (No other format will be accepted) •
Lab work file name should be saved with your roll number (e.g. 19a-001-SE_LW04.py) • Submit
home work in a single .py file on Google Classroom. (No other format will be accepted) • Lab
work file name should be saved with your roll number (e.g. 19a-001-SE_HW04.py)
#
--- --- ---- ---- --- ---- ---- ---- --- ---- ---- ---- --- ---- ---- --- ---- ---- ---- --- ---- ----
else :
self . _tail . _next = oldhead . _next # bypass the old head
self . _size -= 1
return oldhead . _element
• searchItem(data) - Returns the position of data item in the list (e.g. parent, child, and node
number)
class Node :
def __init__ ( self , data ) :
self . data = data
self . next = None
self . child = None
class multiLevelLinkedList () :
def __init__ ( self ) :
self . _head = None
self . _size =0