SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Downloaden Sie, um offline zu lesen
LINKED LIST
August 31, 2015
—————Shivam Gupta 20148084
SHIVAM GUPTA LINKED LIST
OUTLINE
1 INTRODUCTION
2 NODE
3 OPERATION ON LINKED LIST
4 DOUBLY LINKED LIST
5 CIRCULAR LINKED LIST
6 CIRCULAR DOUBLY LINKED LIST
7 ADVANTAGE
8 SUMMARY
SHIVAM GUPTA LINKED LIST
INTRODUCTION
A linked list is a series of connected nodes (or links) where
each node is a data structure.
Dynamically allocated data structures can be linked together
to form a chain.
SHIVAM GUPTA LINKED LIST
NODE
Each node has two parts :-
The First one is the info part that contain the actual data of
the list.
The Second one is the link part that points to the next node
of the list.
SHIVAM GUPTA LINKED LIST
OPERATION
Operation on linked list
The various actions performed on linked list are:-
1 Adding at beginning
2 Insert a node in between the linked list
3 Adding at end
4 Removing a Node
5 Traverse a linked list
SHIVAM GUPTA LINKED LIST
ADDING AT THE BEGINNING
SHIVAM GUPTA LINKED LIST
INSERTING IN BETWEEN
SHIVAM GUPTA LINKED LIST
ADDING AT THE END
SHIVAM GUPTA LINKED LIST
ADDING AT THE END
SHIVAM GUPTA LINKED LIST
REMOVING A NODE
SHIVAM GUPTA LINKED LIST
TRAVERSING LIST
SHIVAM GUPTA LINKED LIST
REVERSAL OF A LIST
SHIVAM GUPTA LINKED LIST
DOUBLY LINKED LIST
Every node stores a reference to previous node as well as its
next.This is good if you need to move back by a few nodes and
don’t want to start from the front again and again.
SHIVAM GUPTA LINKED LIST
CIRCULAR LINKED LIST
Every node stores a single reference but the last node inspite of
pointing to NULL points back to the front thus forming a closed
chain like structure.
SHIVAM GUPTA LINKED LIST
CIRCULAR DOUBLY LINKED LIST
Circular Doubly Linked List contain:- Each node store a reference
to the previous as well as the next one with pointing the last node
to the first node without any null value.
SHIVAM GUPTA LINKED LIST
ADVANTAGE
The Linked List advantages are collected because of the array
disadvantages, array disadvantages are:
1 Array Size
2 Memory allocation
3 Insertion and Deletion
ARRAY LINKED LIST
Size is to be specified. Not to declare size.
Static Memory Allocation Dynamic Memory Allocation
SHIVAM GUPTA LINKED LIST
SUMMARY
It is easy to insert a node at the front of a list.
The linked list toolkit also provides a function for inserting a
new node elsewhere
It is easy to remove a node at the front of a list.
The linked list toolkit also provides a function for removing a
node elsewhere–you should read about this
function and the other functions of the toolkit.
SHIVAM GUPTA LINKED LIST
SUMMARY
SHIVAM GUPTA LINKED LIST

Weitere ähnliche Inhalte

Ähnlich wie Linked List

circularlinklist-190205164051.pptx
circularlinklist-190205164051.pptxcircularlinklist-190205164051.pptx
circularlinklist-190205164051.pptx
MeghaKulkarni27
 

Ähnlich wie Linked List (20)

Data Structures and Algorithms - Lec 05.pptx
Data Structures and Algorithms - Lec 05.pptxData Structures and Algorithms - Lec 05.pptx
Data Structures and Algorithms - Lec 05.pptx
 
Linked list
Linked listLinked list
Linked list
 
Linked lists
Linked listsLinked lists
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
 
Data Structures- Part7 linked lists
Data Structures- Part7 linked listsData Structures- Part7 linked lists
Data Structures- Part7 linked lists
 
Linkedlists
LinkedlistsLinkedlists
Linkedlists
 
Linked List-Types.pdf
Linked List-Types.pdfLinked List-Types.pdf
Linked List-Types.pdf
 
Linkedlist
LinkedlistLinkedlist
Linkedlist
 
Linked List.pptx
Linked List.pptxLinked List.pptx
Linked List.pptx
 
Unit 1 linked list
Unit 1 linked listUnit 1 linked list
Unit 1 linked list
 
linked list using c
linked list using clinked list using c
linked list using c
 
csc211_lecture_21.pptx
csc211_lecture_21.pptxcsc211_lecture_21.pptx
csc211_lecture_21.pptx
 
Linear Data Structures - List, Stack and Queue
Linear Data Structures - List, Stack and QueueLinear Data Structures - List, Stack and Queue
Linear Data Structures - List, Stack and Queue
 
Circular link list.ppt
Circular link list.pptCircular link list.ppt
Circular link list.ppt
 
Linked Lists.pdf
Linked Lists.pdfLinked Lists.pdf
Linked Lists.pdf
 
Linked list
Linked listLinked list
Linked list
 
CH4.pptx
CH4.pptxCH4.pptx
CH4.pptx
 
circularlinklist-190205164051.pptx
circularlinklist-190205164051.pptxcircularlinklist-190205164051.pptx
circularlinklist-190205164051.pptx
 
02. the linked lists (1)
02. the linked lists (1)02. the linked lists (1)
02. the linked lists (1)
 
Linked List
Linked ListLinked List
Linked List
 

Mehr von Shivam Singh (7)

Stacks
StacksStacks
Stacks
 
Trees
TreesTrees
Trees
 
What If Microsoft sold diapers!? MS Diapers!
What If Microsoft sold diapers!? MS Diapers!What If Microsoft sold diapers!? MS Diapers!
What If Microsoft sold diapers!? MS Diapers!
 
Search Algprithms
Search AlgprithmsSearch Algprithms
Search Algprithms
 
Binary Search Tree
Binary Search TreeBinary Search Tree
Binary Search Tree
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 
Sorting Algorithms
Sorting AlgorithmsSorting Algorithms
Sorting Algorithms
 

Kürzlich hochgeladen

UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 

Kürzlich hochgeladen (20)

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 

Linked List

  • 1. LINKED LIST August 31, 2015 —————Shivam Gupta 20148084 SHIVAM GUPTA LINKED LIST
  • 2. OUTLINE 1 INTRODUCTION 2 NODE 3 OPERATION ON LINKED LIST 4 DOUBLY LINKED LIST 5 CIRCULAR LINKED LIST 6 CIRCULAR DOUBLY LINKED LIST 7 ADVANTAGE 8 SUMMARY SHIVAM GUPTA LINKED LIST
  • 3. INTRODUCTION A linked list is a series of connected nodes (or links) where each node is a data structure. Dynamically allocated data structures can be linked together to form a chain. SHIVAM GUPTA LINKED LIST
  • 4. NODE Each node has two parts :- The First one is the info part that contain the actual data of the list. The Second one is the link part that points to the next node of the list. SHIVAM GUPTA LINKED LIST
  • 5. OPERATION Operation on linked list The various actions performed on linked list are:- 1 Adding at beginning 2 Insert a node in between the linked list 3 Adding at end 4 Removing a Node 5 Traverse a linked list SHIVAM GUPTA LINKED LIST
  • 6. ADDING AT THE BEGINNING SHIVAM GUPTA LINKED LIST
  • 7. INSERTING IN BETWEEN SHIVAM GUPTA LINKED LIST
  • 8. ADDING AT THE END SHIVAM GUPTA LINKED LIST
  • 9. ADDING AT THE END SHIVAM GUPTA LINKED LIST
  • 10. REMOVING A NODE SHIVAM GUPTA LINKED LIST
  • 12. REVERSAL OF A LIST SHIVAM GUPTA LINKED LIST
  • 13. DOUBLY LINKED LIST Every node stores a reference to previous node as well as its next.This is good if you need to move back by a few nodes and don’t want to start from the front again and again. SHIVAM GUPTA LINKED LIST
  • 14. CIRCULAR LINKED LIST Every node stores a single reference but the last node inspite of pointing to NULL points back to the front thus forming a closed chain like structure. SHIVAM GUPTA LINKED LIST
  • 15. CIRCULAR DOUBLY LINKED LIST Circular Doubly Linked List contain:- Each node store a reference to the previous as well as the next one with pointing the last node to the first node without any null value. SHIVAM GUPTA LINKED LIST
  • 16. ADVANTAGE The Linked List advantages are collected because of the array disadvantages, array disadvantages are: 1 Array Size 2 Memory allocation 3 Insertion and Deletion ARRAY LINKED LIST Size is to be specified. Not to declare size. Static Memory Allocation Dynamic Memory Allocation SHIVAM GUPTA LINKED LIST
  • 17. SUMMARY It is easy to insert a node at the front of a list. The linked list toolkit also provides a function for inserting a new node elsewhere It is easy to remove a node at the front of a list. The linked list toolkit also provides a function for removing a node elsewhere–you should read about this function and the other functions of the toolkit. SHIVAM GUPTA LINKED LIST