SlideShare una empresa de Scribd logo
1 de 23
PRESENTATION ON
LINKED LIST
Presentation Topic:
• Introduction to Linked List
• Single linked list with All
Operations.
CONTENTS
 Introduction of Linked list.
 Advantages and disadvantages of Linked list.
 Comparing B/W Array and Linked list.
 Singly linked list.
 Schematic represenatation of Single linked list.
 Basic operations on a Single linked list.
Creating a Link List.
Displaying a Link List.
Inserting an element in Link List(Front, Mid, End).
Deleting an element from Link List(Front, Mid, End).,
Linked Lists
What are Linked Lists?
 A linked list is a linear data
structure.
 Nodes make up linked lists.
 Nodes are structures made up of
data and a pointer to another
node.
 Usually the pointer is called next.
 It is a collection of nodes with
various fields.
 It contains Data field and
Address field or Link field.
Pointer to the
first node
Info field
Link Field/
Address Field
 Link list is an ordered collection
of elements called Nodes.
 Each node has two parts
 1) Data part – It is used to hold
the data or information.
 2) Pointer part – It is used to
hold the address of next node or
previous node.
( i.e. Link to the next node)
NODE :
DATA
NEXT
Advantages:
1. Link list are dynamic data structure.
2. Efficient memory utilization.
3. Insertion and deletion are easier.
Disadvantages:
1. If the number of fields are more then more memory
space is needed.
2. Access to an data item is little bit time consuming.
Linked List
What are the problems with Arrays
-Size is fixed
-Array Items are stored contiguously
-Insertions and deletion at particular position is complex
Why Linked list ?
-Size is not fixed , Grow and contract according to
insertions and deletions.
-Data can be stored at any place
-Insertions and deletions are simple and faster
Singly Linked list
Singly Linked list
 Each Node contain address of the next node to be followed.
 In Singly Linked List only Linear or Forward Sequential movement
is possible Hence it is also called linear link list.
 Elements are accessed sequentially , no direct access is allowed.
 First Node does not have predecessor while last node does not
have any successor.
 It mainly contains two parts:
1.Data part-It is used to hold the data or information.
2.Address part-It is used to hold the address of the next node.
 Link part of the last node contains NULL value which signifies the
end of the node.
1000 2000
First
10 15 NULL20
4000
1000 2000
Schematic representation:
 Here is a singly-linked list (SLL):
a b c d
Start
• Each node has only one link part.
• Each node contains a value(data) and a pointer to
the next node in the list.
•All nodes are connected to each other through Link
Fields.
•Start is the header pointer which points at the first
node in the list
Basic operations in Single Link Lists
• Creating a Link List.
• Displaying a Link List.
• Inserting an element in Link List(Front, Mid, End).
• Deleting an element from Link List(Front, Mid, End).
Creating a link list
Displaying the Link List
Inserting the node in a SLL
There are 3 cases here:-
Insertion at the beginning
Insertion at the end
Insertion at mid
Insertion at the beginning
Insertion at the end
Insertion at mid
Deleting a node in SLL
Here also we have three cases:-
Deleting the first node
Deleting the last node
Deleting the intermediate node
Deleting the first node
threetwoone
start
Deleting the last node
node3node2node1
start
Deleting the intermediate node
node1 node2 node3
To be deleted
THANK YOU..!!!!!!!!!!

Más contenido relacionado

La actualidad más candente

Binary search tree operations
Binary search tree operationsBinary search tree operations
Binary search tree operationsKamran Zafar
 
Hashing in datastructure
Hashing in datastructureHashing in datastructure
Hashing in datastructurerajshreemuthiah
 
SEARCHING AND SORTING ALGORITHMS
SEARCHING AND SORTING ALGORITHMSSEARCHING AND SORTING ALGORITHMS
SEARCHING AND SORTING ALGORITHMSGokul Hari
 
DATA STRUCTURES
DATA STRUCTURESDATA STRUCTURES
DATA STRUCTURESbca2010
 
Searching and Sorting Techniques in Data Structure
Searching and Sorting Techniques in Data StructureSearching and Sorting Techniques in Data Structure
Searching and Sorting Techniques in Data StructureBalwant Gorad
 
linked list in Data Structure, Simple and Easy Tutorial
linked list in Data Structure, Simple and Easy Tutoriallinked list in Data Structure, Simple and Easy Tutorial
linked list in Data Structure, Simple and Easy TutorialAfzal Badshah
 
Doubly Linked List
Doubly Linked ListDoubly Linked List
Doubly Linked ListNinad Mankar
 
linked list in data structure
linked list in data structure linked list in data structure
linked list in data structure shameen khan
 
Insertion sort and shell sort
Insertion sort and shell sortInsertion sort and shell sort
Insertion sort and shell sortPraveen Kumar
 
Data Structure and Algorithms Hashing
Data Structure and Algorithms HashingData Structure and Algorithms Hashing
Data Structure and Algorithms HashingManishPrajapati78
 
BINARY TREE REPRESENTATION.ppt
BINARY TREE REPRESENTATION.pptBINARY TREE REPRESENTATION.ppt
BINARY TREE REPRESENTATION.pptSeethaDinesh
 
Array linear data_structure_2 (1)
Array linear data_structure_2 (1)Array linear data_structure_2 (1)
Array linear data_structure_2 (1)eShikshak
 

La actualidad más candente (20)

Linked list
Linked listLinked list
Linked list
 
Binary search tree operations
Binary search tree operationsBinary search tree operations
Binary search tree operations
 
Doubly Linked List
Doubly Linked ListDoubly Linked List
Doubly Linked List
 
Linked list
Linked listLinked list
Linked list
 
Hashing in datastructure
Hashing in datastructureHashing in datastructure
Hashing in datastructure
 
Linked List
Linked ListLinked List
Linked List
 
SEARCHING AND SORTING ALGORITHMS
SEARCHING AND SORTING ALGORITHMSSEARCHING AND SORTING ALGORITHMS
SEARCHING AND SORTING ALGORITHMS
 
DATA STRUCTURES
DATA STRUCTURESDATA STRUCTURES
DATA STRUCTURES
 
Searching and Sorting Techniques in Data Structure
Searching and Sorting Techniques in Data StructureSearching and Sorting Techniques in Data Structure
Searching and Sorting Techniques in Data Structure
 
Linear data structure concepts
Linear data structure conceptsLinear data structure concepts
Linear data structure concepts
 
linked list in Data Structure, Simple and Easy Tutorial
linked list in Data Structure, Simple and Easy Tutoriallinked list in Data Structure, Simple and Easy Tutorial
linked list in Data Structure, Simple and Easy Tutorial
 
Doubly Linked List
Doubly Linked ListDoubly Linked List
Doubly Linked List
 
Binary tree
Binary  treeBinary  tree
Binary tree
 
linked list in data structure
linked list in data structure linked list in data structure
linked list in data structure
 
Insertion sort and shell sort
Insertion sort and shell sortInsertion sort and shell sort
Insertion sort and shell sort
 
Disjoint sets
Disjoint setsDisjoint sets
Disjoint sets
 
Ch17 Hashing
Ch17 HashingCh17 Hashing
Ch17 Hashing
 
Data Structure and Algorithms Hashing
Data Structure and Algorithms HashingData Structure and Algorithms Hashing
Data Structure and Algorithms Hashing
 
BINARY TREE REPRESENTATION.ppt
BINARY TREE REPRESENTATION.pptBINARY TREE REPRESENTATION.ppt
BINARY TREE REPRESENTATION.ppt
 
Array linear data_structure_2 (1)
Array linear data_structure_2 (1)Array linear data_structure_2 (1)
Array linear data_structure_2 (1)
 

Similar a Linked list

Similar a Linked list (20)

Linked list (1).pptx
Linked list (1).pptxLinked list (1).pptx
Linked list (1).pptx
 
ds-lecture-4-171012041008 (1).pdf
ds-lecture-4-171012041008 (1).pdfds-lecture-4-171012041008 (1).pdf
ds-lecture-4-171012041008 (1).pdf
 
Introduction to linked lists
Introduction to linked listsIntroduction to linked lists
Introduction to linked lists
 
data structures and applications power p
data structures and applications power pdata structures and applications power p
data structures and applications power p
 
Singly Linked List
Singly Linked ListSingly Linked List
Singly Linked List
 
Linked list
Linked listLinked list
Linked list
 
Data Structures(Part 1)
Data Structures(Part 1)Data Structures(Part 1)
Data Structures(Part 1)
 
Linked list in DS
Linked list in DSLinked list in DS
Linked list in DS
 
linked list
linked list linked list
linked list
 
1.3 Linked List.pptx
1.3 Linked List.pptx1.3 Linked List.pptx
1.3 Linked List.pptx
 
Linked list in Data Structure and Algorithm
Linked list in Data Structure and Algorithm Linked list in Data Structure and Algorithm
Linked list in Data Structure and Algorithm
 
Different types of Linked list.
Different types of Linked list.Different types of Linked list.
Different types of Linked list.
 
Linked List
Linked ListLinked List
Linked List
 
Unit 1 linked list
Unit 1 linked listUnit 1 linked list
Unit 1 linked list
 
Unit 3 dsa LINKED LIST
Unit 3 dsa LINKED LISTUnit 3 dsa LINKED LIST
Unit 3 dsa LINKED LIST
 
csc211_lecture_21.pptx
csc211_lecture_21.pptxcsc211_lecture_21.pptx
csc211_lecture_21.pptx
 
Doubly linked list
Doubly linked listDoubly linked list
Doubly linked list
 
Linked list.pptx
Linked list.pptxLinked list.pptx
Linked list.pptx
 
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
 

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 

Último (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 

Linked list

  • 2. Presentation Topic: • Introduction to Linked List • Single linked list with All Operations.
  • 3. CONTENTS  Introduction of Linked list.  Advantages and disadvantages of Linked list.  Comparing B/W Array and Linked list.  Singly linked list.  Schematic represenatation of Single linked list.  Basic operations on a Single linked list. Creating a Link List. Displaying a Link List. Inserting an element in Link List(Front, Mid, End). Deleting an element from Link List(Front, Mid, End).,
  • 5. What are Linked Lists?  A linked list is a linear data structure.  Nodes make up linked lists.  Nodes are structures made up of data and a pointer to another node.  Usually the pointer is called next.  It is a collection of nodes with various fields.  It contains Data field and Address field or Link field. Pointer to the first node Info field Link Field/ Address Field
  • 6.  Link list is an ordered collection of elements called Nodes.  Each node has two parts  1) Data part – It is used to hold the data or information.  2) Pointer part – It is used to hold the address of next node or previous node. ( i.e. Link to the next node) NODE : DATA NEXT
  • 7. Advantages: 1. Link list are dynamic data structure. 2. Efficient memory utilization. 3. Insertion and deletion are easier. Disadvantages: 1. If the number of fields are more then more memory space is needed. 2. Access to an data item is little bit time consuming.
  • 8. Linked List What are the problems with Arrays -Size is fixed -Array Items are stored contiguously -Insertions and deletion at particular position is complex Why Linked list ? -Size is not fixed , Grow and contract according to insertions and deletions. -Data can be stored at any place -Insertions and deletions are simple and faster
  • 10. Singly Linked list  Each Node contain address of the next node to be followed.  In Singly Linked List only Linear or Forward Sequential movement is possible Hence it is also called linear link list.  Elements are accessed sequentially , no direct access is allowed.  First Node does not have predecessor while last node does not have any successor.  It mainly contains two parts: 1.Data part-It is used to hold the data or information. 2.Address part-It is used to hold the address of the next node.  Link part of the last node contains NULL value which signifies the end of the node. 1000 2000 First 10 15 NULL20 4000 1000 2000
  • 11. Schematic representation:  Here is a singly-linked list (SLL): a b c d Start • Each node has only one link part. • Each node contains a value(data) and a pointer to the next node in the list. •All nodes are connected to each other through Link Fields. •Start is the header pointer which points at the first node in the list
  • 12. Basic operations in Single Link Lists • Creating a Link List. • Displaying a Link List. • Inserting an element in Link List(Front, Mid, End). • Deleting an element from Link List(Front, Mid, End).
  • 15. Inserting the node in a SLL There are 3 cases here:- Insertion at the beginning Insertion at the end Insertion at mid
  • 16. Insertion at the beginning
  • 19. Deleting a node in SLL Here also we have three cases:- Deleting the first node Deleting the last node Deleting the intermediate node
  • 20. Deleting the first node threetwoone start
  • 21. Deleting the last node node3node2node1 start
  • 22. Deleting the intermediate node node1 node2 node3 To be deleted