SlideShare a Scribd company logo
Linked list
SINGLE LINKED LIST
Single linked list is a sequence
of elements in which every
element has link to its next
element in the sequence.
 In any single linked list, the individual element
is called as “Node”. Every “Node” contains two
fields, data and next.
The data fields is used to store actual value of that
node and next field is used to store the address of
the next node in the sequence.
Stores
actual value
Stores address
of next node
LinkData
 In a single linked list, the address of the first
node is always stored in reference node known
as “front” it is also known as “head”.
 Always next part of the last node be NULL.
Example:
Insertion:
In a single linked list, the insertion operation
can be performed in three ways. They are as
follows…
 Inserting at beginning of the list
 Inserting at End of the list
 Inserting at specific location in the list
Deletion:
A In a single linked list, the deletion
operation can be performed in three ways.
They are as follows…
 Deletion from Beginning of the list
 Deletion from End of the list
 Deletion a Specific Node
Displaying a single linked list:
To display the elements of a single linked list…
 Check whether list is empty
 If it is empty then, display ‘List is Empty’
 If it is Not Empty then, define a Node pointer
‘temp’ and initialize with head
 Finally display temp data with arrow pointing to
Null (temp data ---> Null).
Doubly linked list
Doubly linked list is a sequence of elements in
which every element has links to its previous
element and next element in the sequence.
 In double linked list, every node has link
to its previous node and next node. So,
we can traverse forward by using next
field and can traverse backward by using
previous field
 Every node in a double linked list
contains three fields and they are shown
in the following figure…
Link 1, field is used to store the address of
the previous node in the sequence, link 2
field is used to store the address of the
node in the sequence and ‘DATA’ field is
used to store the actual value of that node.
Example:
 In doubly linked list, the first node must be
always pointer by head.
 Always the previous field of the first node
must be Null.
 Always the next field of the last node must be
Null.
 In a doubly linked list, we perform the
following operations...
1. Insertion
2. Deletion
3. Display
Insertion:
In a doubly linked list, the insertion
operation can be performed in three ways as
follows…
 Inserting at beginning of the list
 Insertion at end of the list
Inserting at specific location
Deletion:
In a doubly linked list, the deletion
operation can be performed in three ways as
follows…
 Deletion from beginning of the list
 Deletion from end of the list
 Deletion a specific node
Displaying a doubly linked list:
We can use the following steps to display
the elements of a double linked list…
 Check whether list is Empty
 If it is Empty, then display ‘list is empty’ and
terminate the function
 If it is not Empty, then define a Node pointer
‘temp’ and initialize with head
 Finally, display temp data with arrow
pointing to Null (temp data ---> Null).
Applications of linked list
 Linked list are frequently used to implement
other data structures such as trees, graphs and
heaps.
 Linked list are useful for creating dynamic
stacks and queue with can grow or shrink at
run time.
 Linked list can be used to store and process
polynomial.
Efficient memory utilization that is not pre
allocated memory allocated. When ever it is
required and is de allocated when it is not
longer required.
 Insertion and deletion are easier and efficient
 Many complex applications can be easily
handle with link list.
Linked list

More Related Content

PPTX
Double Linked List (Algorithm)
PPTX
Doubly linked list
PPTX
Doubly Linked Lists
PDF
Doubly Link List
PPTX
DOUBLE LINKED LIST(DATA STRUCTURE) PPT BY PRASUN KUMAR
PPTX
Doubly Linked List
PPT
Doubly linked list
PPTX
Linked list in Data Structure and Algorithm
Double Linked List (Algorithm)
Doubly linked list
Doubly Linked Lists
Doubly Link List
DOUBLE LINKED LIST(DATA STRUCTURE) PPT BY PRASUN KUMAR
Doubly Linked List
Doubly linked list
Linked list in Data Structure and Algorithm

What's hot (20)

PPT
Circular linked list
PPT
Data Structure and Algorithms Linked List
ODP
Linked List
PPTX
linked list in Data Structure, Simple and Easy Tutorial
PDF
Circular linked list
PPTX
Linked list
PPT
Unit ii(dsc++)
PPT
Link list
PPTX
Linked lists 1
PPT
Data Structure Lecture 6
PPTX
Ppt on Linked list,stack,queue
PPT
Linked list
PPTX
Linked list
PPTX
Circular link list.ppt
PPT
Linked lists
PPT
List Data Structure
PPTX
linked list in data structure
PPT
Link List
PPT
Excel test review
PPTX
Deletion from single way linked list and search
Circular linked list
Data Structure and Algorithms Linked List
Linked List
linked list in Data Structure, Simple and Easy Tutorial
Circular linked list
Linked list
Unit ii(dsc++)
Link list
Linked lists 1
Data Structure Lecture 6
Ppt on Linked list,stack,queue
Linked list
Linked list
Circular link list.ppt
Linked lists
List Data Structure
linked list in data structure
Link List
Excel test review
Deletion from single way linked list and search
Ad

Similar to Linked list (20)

PPTX
Linked list, Singly link list and its operations
PPTX
PPTX
Linked Lists and its application advantages over arrays
PPTX
Dounly linked list
PPT
lecture four of data structures :Linked List-ds.ppt
DOC
Linked List
PPTX
VCE Unit 02 (1).pptx
PPTX
linked list_MODULE 3.pptx ppt on the linked list
DOCX
Link list assi
PPTX
Linked List Representation of a Linked List.pptx
PPTX
Datastucture-Unit 4-Linked List Presentation.pptx
PPTX
1.3 Linked List.pptx
PPTX
data structures and applications power p
PDF
Linked list (introduction) 1
PPTX
Lec3-Linked list.pptx
PPTX
Implemention of Linked list concept in Data Structures
PPTX
module 3-.pptx
PPTX
Linked List in Data Structure
PPTX
DSModule2.pptx
Linked list, Singly link list and its operations
Linked Lists and its application advantages over arrays
Dounly linked list
lecture four of data structures :Linked List-ds.ppt
Linked List
VCE Unit 02 (1).pptx
linked list_MODULE 3.pptx ppt on the linked list
Link list assi
Linked List Representation of a Linked List.pptx
Datastucture-Unit 4-Linked List Presentation.pptx
1.3 Linked List.pptx
data structures and applications power p
Linked list (introduction) 1
Lec3-Linked list.pptx
Implemention of Linked list concept in Data Structures
module 3-.pptx
Linked List in Data Structure
DSModule2.pptx
Ad

More from sweetysweety8 (20)

PPTX
Artificial neural network
PPTX
Compiler Design
PPTX
Software engineering
PPTX
Software engineering
PPTX
WEB PROGRAMMING ANALYSIS
PPTX
Software engineering
PPTX
Software engineering
PPTX
Compiler Design
PPTX
WEB PROGRAMMING ANALYSIS
PPTX
WEB PROGRAMMING
PPTX
Bigdata
PPTX
BIG DATA ANALYTICS
PPTX
BIG DATA ANALYTICS
PPTX
Compiler Design
PPTX
WEB PROGRAMMING
PPTX
BIG DATA ANALYTICS
PPT
Data mining
PPTX
Operating System
PPTX
Relational Database Management System
PPTX
Relational Database Management System
Artificial neural network
Compiler Design
Software engineering
Software engineering
WEB PROGRAMMING ANALYSIS
Software engineering
Software engineering
Compiler Design
WEB PROGRAMMING ANALYSIS
WEB PROGRAMMING
Bigdata
BIG DATA ANALYTICS
BIG DATA ANALYTICS
Compiler Design
WEB PROGRAMMING
BIG DATA ANALYTICS
Data mining
Operating System
Relational Database Management System
Relational Database Management System

Recently uploaded (20)

PPTX
Emphasizing It's Not The End 08 06 2025.pptx
PPTX
_ISO_Presentation_ISO 9001 and 45001.pptx
PPTX
An Unlikely Response 08 10 2025.pptx
PPTX
BIOLOGY TISSUE PPT CLASS 9 PROJECT PUBLIC
PPTX
Impressionism_PostImpressionism_Presentation.pptx
PDF
Tunisia's Founding Father(s) Pitch-Deck 2022.pdf
PPTX
Introduction to Effective Communication.pptx
PPTX
PHIL.-ASTRONOMY-AND-NAVIGATION of ..pptx
PPTX
ART-APP-REPORT-FINctrwxsg f fuy L-na.pptx
PPTX
Tablets And Capsule Preformulation Of Paracetamol
PDF
oil_refinery_presentation_v1 sllfmfls.pdf
PPTX
water for all cao bang - a charity project
PPTX
INTERNATIONAL LABOUR ORAGNISATION PPT ON SOCIAL SCIENCE
PPTX
2025-08-10 Joseph 02 (shared slides).pptx
PPTX
fundraisepro pitch deck elegant and modern
PPTX
nose tajweed for the arabic alphabets for the responsive
PDF
Presentation1 [Autosaved].pdf diagnosiss
PPTX
Intro to ISO 9001 2015.pptx wareness raising
PDF
natwest.pdf company description and business model
PPTX
Non-Verbal-Communication .mh.pdf_110245_compressed.pptx
Emphasizing It's Not The End 08 06 2025.pptx
_ISO_Presentation_ISO 9001 and 45001.pptx
An Unlikely Response 08 10 2025.pptx
BIOLOGY TISSUE PPT CLASS 9 PROJECT PUBLIC
Impressionism_PostImpressionism_Presentation.pptx
Tunisia's Founding Father(s) Pitch-Deck 2022.pdf
Introduction to Effective Communication.pptx
PHIL.-ASTRONOMY-AND-NAVIGATION of ..pptx
ART-APP-REPORT-FINctrwxsg f fuy L-na.pptx
Tablets And Capsule Preformulation Of Paracetamol
oil_refinery_presentation_v1 sllfmfls.pdf
water for all cao bang - a charity project
INTERNATIONAL LABOUR ORAGNISATION PPT ON SOCIAL SCIENCE
2025-08-10 Joseph 02 (shared slides).pptx
fundraisepro pitch deck elegant and modern
nose tajweed for the arabic alphabets for the responsive
Presentation1 [Autosaved].pdf diagnosiss
Intro to ISO 9001 2015.pptx wareness raising
natwest.pdf company description and business model
Non-Verbal-Communication .mh.pdf_110245_compressed.pptx

Linked list

  • 2. SINGLE LINKED LIST Single linked list is a sequence of elements in which every element has link to its next element in the sequence.
  • 3.  In any single linked list, the individual element is called as “Node”. Every “Node” contains two fields, data and next. The data fields is used to store actual value of that node and next field is used to store the address of the next node in the sequence. Stores actual value Stores address of next node LinkData
  • 4.  In a single linked list, the address of the first node is always stored in reference node known as “front” it is also known as “head”.  Always next part of the last node be NULL. Example:
  • 5. Insertion: In a single linked list, the insertion operation can be performed in three ways. They are as follows…  Inserting at beginning of the list  Inserting at End of the list  Inserting at specific location in the list
  • 6. Deletion: A In a single linked list, the deletion operation can be performed in three ways. They are as follows…  Deletion from Beginning of the list  Deletion from End of the list  Deletion a Specific Node
  • 7. Displaying a single linked list: To display the elements of a single linked list…  Check whether list is empty  If it is empty then, display ‘List is Empty’  If it is Not Empty then, define a Node pointer ‘temp’ and initialize with head  Finally display temp data with arrow pointing to Null (temp data ---> Null).
  • 8. Doubly linked list Doubly linked list is a sequence of elements in which every element has links to its previous element and next element in the sequence.
  • 9.  In double linked list, every node has link to its previous node and next node. So, we can traverse forward by using next field and can traverse backward by using previous field  Every node in a double linked list contains three fields and they are shown in the following figure…
  • 10. Link 1, field is used to store the address of the previous node in the sequence, link 2 field is used to store the address of the node in the sequence and ‘DATA’ field is used to store the actual value of that node. Example:
  • 11.  In doubly linked list, the first node must be always pointer by head.  Always the previous field of the first node must be Null.  Always the next field of the last node must be Null.  In a doubly linked list, we perform the following operations... 1. Insertion 2. Deletion 3. Display
  • 12. Insertion: In a doubly linked list, the insertion operation can be performed in three ways as follows…  Inserting at beginning of the list  Insertion at end of the list Inserting at specific location
  • 13. Deletion: In a doubly linked list, the deletion operation can be performed in three ways as follows…  Deletion from beginning of the list  Deletion from end of the list  Deletion a specific node
  • 14. Displaying a doubly linked list: We can use the following steps to display the elements of a double linked list…  Check whether list is Empty  If it is Empty, then display ‘list is empty’ and terminate the function  If it is not Empty, then define a Node pointer ‘temp’ and initialize with head  Finally, display temp data with arrow pointing to Null (temp data ---> Null).
  • 15. Applications of linked list  Linked list are frequently used to implement other data structures such as trees, graphs and heaps.  Linked list are useful for creating dynamic stacks and queue with can grow or shrink at run time.  Linked list can be used to store and process polynomial.
  • 16. Efficient memory utilization that is not pre allocated memory allocated. When ever it is required and is de allocated when it is not longer required.  Insertion and deletion are easier and efficient  Many complex applications can be easily handle with link list.