SlideShare a Scribd company logo
LINKED
LIST
{
}
...
WHAT IS LINKED LIST?
A Linked list is a linear data structure where each
is a separate objects, known as a node. each node
contains some data and points to the next node in the
structure, forming sequence.
This structure allows for efficient insertion or removal of
elements from any position as only the link is needed to
be modified to point to some other element.
The Node
Each node in its basic contains has two
portions; the data, and references to the next
node in the sequence.
In C, we define node as a structure that has
the data and the reference pointer
information.
ADVANTAGES OVER AN ARRAY NODE
1.Not fixed in size: linked list are not fixed in size unlike
that of arrays, hence they can grow and shrink depending
on the data to be inserted. only the amount of memory
required to store the data is used.
2.Efficient insertion and deletion: insertion and deletion
are efficient and take constant time as only the links are
manipulated, not the actual memory location of the actual
elements.
DISADVANTAGES OVER AN ARRAY
1.Slightly more memory usage: as each element has to store its data
along with the reference information.
2. Sequential access; nodes in a linked list must be read in order from the
beginning as linked list are inherently sequential access.
3.Difficult reverse traversal; difficulties arise In linked list when it comes to
reverse traversing in a singly linked list. This can be resolved using
doubly linked lists, but this again increase memory as we have to store
the previous reference pointer.
ACCESSING AN ELEMENT IN A LINKED
LIST
An element in a linked list cannot be accessed directly,
unlike an array. Thus, one has to traverse from one end
of the linked list to the element that has to be accessed.
This is what causes the average O(n) search and access
time in a linked list. Insertion and deletion on the other
hand is constant time as only a few pointers have to be
modified
Uses of a linked list
1. Implement other data structures: It is used to
implement other data structures such as stacks,
queues and non-linear ones like trees and
graphs.
2. Hash Chaining: It has uses in hash chaining
for the implementation in open chaining.
Singly Linked List
A singly list is the simplest type of
linked list in which every node contains
some data and a pointer to the next
node. A singly linked list allows traversal
of data only in one way.
Singly Linked List
Doubly Linked List
A doubly linked list is a data structure which
consists of nodes which have data, a pointer to the
next node, and also a pointer to the previous
node. Three ways of inserting a node in a doubly
linked list in C++ are: Insertion of node at the
front of the list. Insertion of node after a given
node of the list.
Doubly Linked List
Circular Linked List
In a circular linked list, the last node contains a pointer
to the first node of the list, forming a loop.
While traversing a circular linked list, we can begin at
any node and traverse the list in any directions, forward or
backward, until we reach the same mode we started.
Thus, a circular linked list has no beginning and no
ending.
Circular Linked List
THANK
YOU!
{
} ..
..
DSA-Linked-List-.. learning process.pptx

More Related Content

PPT
PpptPresentationSilgkeLinkListpython.ppt
PPTX
Data Structures-UNIT Four_Linked_List.pptx
PDF
Linked list (introduction) 1
PPTX
Linked list in Data Structure and Algorithm
PPT
Lecture 2b lists
PPTX
link list.pptx complete notes detailed ans
PPTX
Data Structures and Algorithms - Lec 05.pptx
PPTX
Data Structure and Algorithms by Sabeen Memon03.pptx
PpptPresentationSilgkeLinkListpython.ppt
Data Structures-UNIT Four_Linked_List.pptx
Linked list (introduction) 1
Linked list in Data Structure and Algorithm
Lecture 2b lists
link list.pptx complete notes detailed ans
Data Structures and Algorithms - Lec 05.pptx
Data Structure and Algorithms by Sabeen Memon03.pptx

Similar to DSA-Linked-List-.. learning process.pptx (20)

PPTX
Different types of Linked list.
PPTX
Introduction to Data Structures and Linked List
PPTX
Introduction to linked list in data structure.pptx
PDF
Static arrays are structures whose size is fixed at compile time and.pdf
DOC
DATA STRUCTURES - SHORT NOTES
PPTX
Linked-Lists-A-Fundamental-Data-Structure.pptx
PPTX
Linked list
PPTX
6. Linked list - Data Structures using C++ by Varsha Patil
PPTX
linked list.pptx
PPTX
Lecture 2 - Linear Data Structures & Implementation.pptx
PDF
What is a linked listWhat is a linked lists general syntaxCan .pdf
PPTX
1.3 Linked List.pptx
PPTX
236170316121.pptx hii iam ms. aknown here is nothing important
PPTX
Data Structures Introduction & Linear DS
PPTX
Linked List Representation of a Linked List.pptx
PPTX
DSA - Copy.pptx
PPTX
DSL Unit 4 (Linked list) (PPT)SE3rd sem sppu.pptx
PPTX
linked list in data structure
DOCX
Introduction to linked lists
PDF
Data Structures and Algorithms-DSA_Linkedlist_class 1.pdf
Different types of Linked list.
Introduction to Data Structures and Linked List
Introduction to linked list in data structure.pptx
Static arrays are structures whose size is fixed at compile time and.pdf
DATA STRUCTURES - SHORT NOTES
Linked-Lists-A-Fundamental-Data-Structure.pptx
Linked list
6. Linked list - Data Structures using C++ by Varsha Patil
linked list.pptx
Lecture 2 - Linear Data Structures & Implementation.pptx
What is a linked listWhat is a linked lists general syntaxCan .pdf
1.3 Linked List.pptx
236170316121.pptx hii iam ms. aknown here is nothing important
Data Structures Introduction & Linear DS
Linked List Representation of a Linked List.pptx
DSA - Copy.pptx
DSL Unit 4 (Linked list) (PPT)SE3rd sem sppu.pptx
linked list in data structure
Introduction to linked lists
Data Structures and Algorithms-DSA_Linkedlist_class 1.pdf
Ad

Recently uploaded (20)

PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PDF
.pdf is not working space design for the following data for the following dat...
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPTX
Database Infoormation System (DBIS).pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPT
ISS -ESG Data flows What is ESG and HowHow
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPT
Quality review (1)_presentation of this 21
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
Business Acumen Training GuidePresentation.pptx
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
.pdf is not working space design for the following data for the following dat...
Business Ppt On Nestle.pptx huunnnhhgfvu
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Database Infoormation System (DBIS).pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Galatica Smart Energy Infrastructure Startup Pitch Deck
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
Data_Analytics_and_PowerBI_Presentation.pptx
Acceptance and paychological effects of mandatory extra coach I classes.pptx
ISS -ESG Data flows What is ESG and HowHow
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
IBA_Chapter_11_Slides_Final_Accessible.pptx
Quality review (1)_presentation of this 21
Introduction to Knowledge Engineering Part 1
Business Acumen Training GuidePresentation.pptx
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
Ad

DSA-Linked-List-.. learning process.pptx

  • 2. WHAT IS LINKED LIST? A Linked list is a linear data structure where each is a separate objects, known as a node. each node contains some data and points to the next node in the structure, forming sequence. This structure allows for efficient insertion or removal of elements from any position as only the link is needed to be modified to point to some other element.
  • 3. The Node Each node in its basic contains has two portions; the data, and references to the next node in the sequence. In C, we define node as a structure that has the data and the reference pointer information.
  • 4. ADVANTAGES OVER AN ARRAY NODE 1.Not fixed in size: linked list are not fixed in size unlike that of arrays, hence they can grow and shrink depending on the data to be inserted. only the amount of memory required to store the data is used. 2.Efficient insertion and deletion: insertion and deletion are efficient and take constant time as only the links are manipulated, not the actual memory location of the actual elements.
  • 5. DISADVANTAGES OVER AN ARRAY 1.Slightly more memory usage: as each element has to store its data along with the reference information. 2. Sequential access; nodes in a linked list must be read in order from the beginning as linked list are inherently sequential access. 3.Difficult reverse traversal; difficulties arise In linked list when it comes to reverse traversing in a singly linked list. This can be resolved using doubly linked lists, but this again increase memory as we have to store the previous reference pointer.
  • 6. ACCESSING AN ELEMENT IN A LINKED LIST An element in a linked list cannot be accessed directly, unlike an array. Thus, one has to traverse from one end of the linked list to the element that has to be accessed. This is what causes the average O(n) search and access time in a linked list. Insertion and deletion on the other hand is constant time as only a few pointers have to be modified
  • 7. Uses of a linked list 1. Implement other data structures: It is used to implement other data structures such as stacks, queues and non-linear ones like trees and graphs. 2. Hash Chaining: It has uses in hash chaining for the implementation in open chaining.
  • 8. Singly Linked List A singly list is the simplest type of linked list in which every node contains some data and a pointer to the next node. A singly linked list allows traversal of data only in one way.
  • 10. Doubly Linked List A doubly linked list is a data structure which consists of nodes which have data, a pointer to the next node, and also a pointer to the previous node. Three ways of inserting a node in a doubly linked list in C++ are: Insertion of node at the front of the list. Insertion of node after a given node of the list.
  • 12. Circular Linked List In a circular linked list, the last node contains a pointer to the first node of the list, forming a loop. While traversing a circular linked list, we can begin at any node and traverse the list in any directions, forward or backward, until we reach the same mode we started. Thus, a circular linked list has no beginning and no ending.