SlideShare a Scribd company logo
LINKED LIST
PREPARED BY:
KESHAV V
SHREYAS S
UNDER THE GUIDANCE OF:
MRS. N.S.PATIL
SE COMP, AISSMS' IOIT, PUNE
INTRODUCTION TO LINKED
LIST
A linked list is a series of connected nodes, where each node is a data structure.
Linked list can grow as well as shrink in size during execution.
Each node in a linked list contains one or more members that represent data.
In addition to the data, each node contains a pointer, which can point to another
node.
A linked list is called “linked” because each node in the series has a pointer that
points to the next node in the list.
REAL LIFE EXAMPLE
A linked list is like a scavenger hunt. You have a
clue, and that clue has a pointer to the place
having the next clue. So you go to the next place
and get another piece of data and another pointer.
To get something in the middle or at the end, the
only way is to follow the list from the beginning.
ADVANTAGES OF LINKED
LISTS OVER ARRAYS AND
VECTORS
A linked list can easily grow or shrink in size.
Insertion and deletion of nodes is quicker with
linked list than with vectors.
DECLARATIONS
First you must declare a data structure that will be used for the nodes.
For example, the following struct could be used to create a list where each node
holds a float:
struct node
{
float data;
struct node *next;
}
DECLARATIONS
The next step is to declare a pointer to serve as the list head,
as shown below:
node *head;
Once you have declared a node data structure and created a
null head pointer, you have an empty linked list.
The next step is to implement the operations with the list.
OPERATIONS ON LINKED
LISTS
The following operations can be performed on a linked list:
1. Inserting a new node at the beginning of the linked list.
2. Inserting a new node at the end of the linked list.
3. Inserting a new node at the middle of the linked list.
4. Deleting the first node from the linked list.
5. Deleting the last node from the linked list.
6. Deleting any middle node from the linked list.
7. Searching a node in the linked list.
8. Sorting a linked list.
9. Merging two linked lists.
10. Displaying a linked list.
TYPES OF LINKED LISTS
The following are the types of linked lists:
1. Singly Linked List.
2. Doubly Linked List.
3. Circular singly linked list.
4. Circular doubly linked list.
SINGLY LINKED LIST
A singly linked list is the one in which each node contains the
address of its successor node.
As each node has only one link part, back traversal of the list
is not feasible.
Link part of the last node contains NULL value, which
signifies the end of the list.
10 30 NULL20
DOUBLY LINKED LIST
A doubly linked list is the one in which each node contains the
address of its successor node as well as its predecessor
node.
As each node has two link parts, back traversal becomes
quite easy.
“next” link of the last node and “previous” link of the first node
contain NULL value.
NULL 10 30 NULL20
CIRCULAR SINGLY LINKED
LIST
In this type of linked list, each node contains the address of
its successor node, same as in singly linked list.
But the difference is that in circular singly linked list, the last
node does not contain NULL value. Instead, it contains the
address of the head node.
Due to this, once we arrive at the last node, we are able to
access the first node of the list easily.
10 3020
CIRCULAR DOUBLY
LINKED LIST
In this linked list, each node contains two address fields, one
which contains the address of its next node and the other
which contains the address of its previous node, just like in
doubly linked list.
But here, the “previous” link of the head node and the “next”
link of the last node do not contain NULL value. Instead, the
last node points to the head node and the head node points
back to the last node.
So, traversal in both the directions is easily possible.
10 3020
THE END
THANK YOU!

More Related Content

What's hot

Data Structure and Algorithms Linked List
Data Structure and Algorithms Linked ListData Structure and Algorithms Linked List
Data Structure and Algorithms Linked List
ManishPrajapati78
 
Data Structures- Part7 linked lists
Data Structures- Part7 linked listsData Structures- Part7 linked lists
Data Structures- Part7 linked lists
Abdullah Al-hazmy
 
Linked List
Linked ListLinked List
Linked List
Ashim Lamichhane
 
Linked lists 1
Linked lists 1Linked lists 1
Linked lists 1
naymulhaque
 
Ppt of operations on one way link list
Ppt of operations on one way  link listPpt of operations on one way  link list
Ppt of operations on one way link list
Sukhdeep Kaur
 
Data Structures with C Linked List
Data Structures with C Linked ListData Structures with C Linked List
Data Structures with C Linked List
Reazul Islam
 
Singly link list
Singly link listSingly link list
Singly link list
Rojin Khadka
 
Link list presentation slide(Daffodil international university)
Link list presentation slide(Daffodil international university)Link list presentation slide(Daffodil international university)
Link list presentation slide(Daffodil international university)
shah alom
 
Double Linked List (Algorithm)
Double Linked List (Algorithm)Double Linked List (Algorithm)
Double Linked List (Algorithm)
Huba Akhtar
 
Linked lists
Linked listsLinked lists
Linked lists
SARITHA REDDY
 
linked list in data structure
linked list in data structure linked list in data structure
linked list in data structure
shameen khan
 
Doubly Link List
Doubly Link ListDoubly Link List
Doubly Link List
Kashif Memon
 
Linked lists a
Linked lists aLinked lists a
Linked lists a
Khuram Shahzad
 
Circular linked list
Circular linked listCircular linked list
Circular linked list
maamir farooq
 
Linked list
Linked listLinked list
Linked list
Priyanka Rana
 
Insertion in singly linked list
Insertion in singly linked listInsertion in singly linked list
Insertion in singly linked list
Keval Bhogayata
 
Data Structure Lecture 5
Data Structure Lecture 5Data Structure Lecture 5
Data Structure Lecture 5
Teksify
 
Singly linked list
Singly linked listSingly linked list
Singly linked list
Amar Jukuntla
 
Insertion into linked lists
Insertion into linked lists Insertion into linked lists
Insertion into linked lists MrDavinderSingh
 

What's hot (20)

Data Structure and Algorithms Linked List
Data Structure and Algorithms Linked ListData Structure and Algorithms Linked List
Data Structure and Algorithms Linked List
 
Data Structures- Part7 linked lists
Data Structures- Part7 linked listsData Structures- Part7 linked lists
Data Structures- Part7 linked lists
 
Linked List
Linked ListLinked List
Linked List
 
Linked lists 1
Linked lists 1Linked lists 1
Linked lists 1
 
Ppt of operations on one way link list
Ppt of operations on one way  link listPpt of operations on one way  link list
Ppt of operations on one way link list
 
Data Structures with C Linked List
Data Structures with C Linked ListData Structures with C Linked List
Data Structures with C Linked List
 
Singly link list
Singly link listSingly link list
Singly link list
 
Link list presentation slide(Daffodil international university)
Link list presentation slide(Daffodil international university)Link list presentation slide(Daffodil international university)
Link list presentation slide(Daffodil international university)
 
Double Linked List (Algorithm)
Double Linked List (Algorithm)Double Linked List (Algorithm)
Double Linked List (Algorithm)
 
Linked lists
Linked listsLinked lists
Linked lists
 
linked list in data structure
linked list in data structure linked list in data structure
linked list in data structure
 
Doubly Link List
Doubly Link ListDoubly Link List
Doubly Link List
 
Linked lists a
Linked lists aLinked lists a
Linked lists a
 
Circular linked list
Circular linked listCircular linked list
Circular linked list
 
Linked list
Linked listLinked list
Linked list
 
Insertion in singly linked list
Insertion in singly linked listInsertion in singly linked list
Insertion in singly linked list
 
Data Structure Lecture 5
Data Structure Lecture 5Data Structure Lecture 5
Data Structure Lecture 5
 
Singly linked list
Singly linked listSingly linked list
Singly linked list
 
Linked list
Linked listLinked list
Linked list
 
Insertion into linked lists
Insertion into linked lists Insertion into linked lists
Insertion into linked lists
 

Similar to Linked List

Introduction to linked lists
Introduction to linked listsIntroduction to linked lists
Introduction to linked lists
pooja kumari
 
Linked List in Data Structure
Linked List in Data StructureLinked List in Data Structure
Linked List in Data Structure
Meghaj Mallick
 
Linked List-Types.pdf
Linked List-Types.pdfLinked List-Types.pdf
Linked List-Types.pdf
MaryJacob24
 
Link_List.pptx
Link_List.pptxLink_List.pptx
Link_List.pptx
sandeep54552
 
data structures and applications power p
data structures and applications power pdata structures and applications power p
data structures and applications power p
MeghaKulkarni27
 
lecture8 database for BSCS.................
lecture8 database for BSCS.................lecture8 database for BSCS.................
lecture8 database for BSCS.................
abaa16269
 
Linked list
Linked listLinked list
Linked list
Wasif Khan
 
Linked list.docx
Linked list.docxLinked list.docx
Linked list.docx
EmilyMengich
 
Doubly Linked List
Doubly Linked ListDoubly Linked List
Linked list and its operations - Traversal
Linked list and its operations - TraversalLinked list and its operations - Traversal
Linked list and its operations - Traversal
kasthurimukila
 
Unit 3 dsa LINKED LIST
Unit 3 dsa LINKED LISTUnit 3 dsa LINKED LIST
Linked List.pptx
Linked List.pptxLinked List.pptx
Linked List.pptx
SherinRappai
 
CH4.pptx
CH4.pptxCH4.pptx
CH4.pptx
mohamedOsmaanFG
 
Linked list
Linked listLinked list
Linked list
sweetysweety8
 
1.3 Linked List.pptx
1.3 Linked List.pptx1.3 Linked List.pptx
1.3 Linked List.pptx
ssuserd2f031
 
Chapter 3 Linkedlist Data Structure .pdf
Chapter 3 Linkedlist Data Structure .pdfChapter 3 Linkedlist Data Structure .pdf
Chapter 3 Linkedlist Data Structure .pdf
Axmedcarb
 
linked_lists
linked_listslinked_lists
linked_lists
Mohamed Elsayed
 
Linked List
Linked ListLinked List
Linked List
CHANDAN KUMAR
 

Similar to Linked List (20)

Introduction to linked lists
Introduction to linked listsIntroduction to linked lists
Introduction to linked lists
 
Linked List in Data Structure
Linked List in Data StructureLinked List in Data Structure
Linked List in Data Structure
 
Linked List-Types.pdf
Linked List-Types.pdfLinked List-Types.pdf
Linked List-Types.pdf
 
Link_List.pptx
Link_List.pptxLink_List.pptx
Link_List.pptx
 
data structures and applications power p
data structures and applications power pdata structures and applications power p
data structures and applications power p
 
lecture8 database for BSCS.................
lecture8 database for BSCS.................lecture8 database for BSCS.................
lecture8 database for BSCS.................
 
Linked list
Linked listLinked list
Linked list
 
Algo>ADT list & linked list
Algo>ADT list & linked listAlgo>ADT list & linked list
Algo>ADT list & linked list
 
Linked list.docx
Linked list.docxLinked list.docx
Linked list.docx
 
Doubly Linked List
Doubly Linked ListDoubly Linked List
Doubly Linked List
 
Linked list and its operations - Traversal
Linked list and its operations - TraversalLinked list and its operations - Traversal
Linked list and its operations - Traversal
 
Unit 3 dsa LINKED LIST
Unit 3 dsa LINKED LISTUnit 3 dsa LINKED LIST
Unit 3 dsa LINKED LIST
 
Linked List.pptx
Linked List.pptxLinked List.pptx
Linked List.pptx
 
CH4.pptx
CH4.pptxCH4.pptx
CH4.pptx
 
Linked list
Linked listLinked list
Linked list
 
1.3 Linked List.pptx
1.3 Linked List.pptx1.3 Linked List.pptx
1.3 Linked List.pptx
 
Chapter 3 Linkedlist Data Structure .pdf
Chapter 3 Linkedlist Data Structure .pdfChapter 3 Linkedlist Data Structure .pdf
Chapter 3 Linkedlist Data Structure .pdf
 
linked_lists
linked_listslinked_lists
linked_lists
 
Linked List
Linked ListLinked List
Linked List
 
Link list assi
Link list assiLink list assi
Link list assi
 

Recently uploaded

一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 

Recently uploaded (20)

一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 

Linked List

  • 1. LINKED LIST PREPARED BY: KESHAV V SHREYAS S UNDER THE GUIDANCE OF: MRS. N.S.PATIL SE COMP, AISSMS' IOIT, PUNE
  • 2. INTRODUCTION TO LINKED LIST A linked list is a series of connected nodes, where each node is a data structure. Linked list can grow as well as shrink in size during execution. Each node in a linked list contains one or more members that represent data. In addition to the data, each node contains a pointer, which can point to another node. A linked list is called “linked” because each node in the series has a pointer that points to the next node in the list.
  • 3. REAL LIFE EXAMPLE A linked list is like a scavenger hunt. You have a clue, and that clue has a pointer to the place having the next clue. So you go to the next place and get another piece of data and another pointer. To get something in the middle or at the end, the only way is to follow the list from the beginning.
  • 4. ADVANTAGES OF LINKED LISTS OVER ARRAYS AND VECTORS A linked list can easily grow or shrink in size. Insertion and deletion of nodes is quicker with linked list than with vectors.
  • 5. DECLARATIONS First you must declare a data structure that will be used for the nodes. For example, the following struct could be used to create a list where each node holds a float: struct node { float data; struct node *next; }
  • 6. DECLARATIONS The next step is to declare a pointer to serve as the list head, as shown below: node *head; Once you have declared a node data structure and created a null head pointer, you have an empty linked list. The next step is to implement the operations with the list.
  • 7. OPERATIONS ON LINKED LISTS The following operations can be performed on a linked list: 1. Inserting a new node at the beginning of the linked list. 2. Inserting a new node at the end of the linked list. 3. Inserting a new node at the middle of the linked list. 4. Deleting the first node from the linked list. 5. Deleting the last node from the linked list. 6. Deleting any middle node from the linked list. 7. Searching a node in the linked list. 8. Sorting a linked list. 9. Merging two linked lists. 10. Displaying a linked list.
  • 8. TYPES OF LINKED LISTS The following are the types of linked lists: 1. Singly Linked List. 2. Doubly Linked List. 3. Circular singly linked list. 4. Circular doubly linked list.
  • 9. SINGLY LINKED LIST A singly linked list is the one in which each node contains the address of its successor node. As each node has only one link part, back traversal of the list is not feasible. Link part of the last node contains NULL value, which signifies the end of the list. 10 30 NULL20
  • 10. DOUBLY LINKED LIST A doubly linked list is the one in which each node contains the address of its successor node as well as its predecessor node. As each node has two link parts, back traversal becomes quite easy. “next” link of the last node and “previous” link of the first node contain NULL value. NULL 10 30 NULL20
  • 11. CIRCULAR SINGLY LINKED LIST In this type of linked list, each node contains the address of its successor node, same as in singly linked list. But the difference is that in circular singly linked list, the last node does not contain NULL value. Instead, it contains the address of the head node. Due to this, once we arrive at the last node, we are able to access the first node of the list easily. 10 3020
  • 12. CIRCULAR DOUBLY LINKED LIST In this linked list, each node contains two address fields, one which contains the address of its next node and the other which contains the address of its previous node, just like in doubly linked list. But here, the “previous” link of the head node and the “next” link of the last node do not contain NULL value. Instead, the last node points to the head node and the head node points back to the last node. So, traversal in both the directions is easily possible. 10 3020