SlideShare a Scribd company logo
1 of 22
DATA STRUCTURE 
ASSIGNMENT NO 1 
TEAM 8 
MULTIPLY LINKED LIST 
TEAM MEMBERS 
ANAND. S _ 13MX03 
DHIVYA. K. S _ 13MX09 
KARTHIK. A.R _ 13MX21 
MALATHI. A _ 13MX25 
YOGESHWARI _ 13MX54
Linked list 
• A Linked representation of data structure is 
known as a linked list, Which is a collection of 
nodes. 
• Each node is a collection of fields categorized as 
data items and links.
Merits of linked data structure 
• Efficient implementation of insertion and 
deletion operations. 
• Efficient usage of storage memory.
Multiple linked list 
• In multiple linked list, each node contains two or 
more link fields, each field being used to connect 
the same set of data records in a different order. 
• Eg : By name, By department etc, . .
MULTIPLY LINKED LIST 
Linked representation with multiple data 
and link fields. 
Multiply linked representation of the list L 
is a network of nodes which are connected 
to one another based on some associations.
Node structure of a multiply linked list: 
LINK 2 
… 
DATA1 DATA2 … DATA X LINK 1 
LINK 4 
LINK 3 
LINK m- 
1 
LINK m
EXAMPLE 1: Student details for representation as 
a multiply linked list 
Name of 
the student 
Roll no: No of 
Credits 
Sports Club 
Membership 
Day 
Student 
Department 
ARUN MX05 200 YES YES DCA 
BABU ME12 210 N0 YES DME 
LAKSHMI MX23 210 YES NO DCA 
RAM CE40 190 YES NO DCE 
GURU CS35 190 NO YES DCS 
SREE CE46 220 YES NO DCE
Node structure of the multiply linked list 
student: 
Sports Club Men 
Name of Name of 
the student the Credits 
Registered 
Roll no 
Day Student 
Dept Enroll
Multiply linked list structure of list student 
ARUN MX05 200 YES YES DCA 
BABU ME12 210 N0 YES DME 
LAKSHMI MX23 210 YES NO DCA 
RAM CE40 190 YES NO DCE 
SCM - Sports Club Membership
DS 
DS - DAY STUDENT 
ARUN MX05 200 YES YES DCA 
BABU ME12 210 N0 YES DME 
LAKSHMI MX23 210 YES NO DCA 
GURU CS35 190 NO YES DCS 
SREE CE46 220 YES NO DCE
D 
D- DEPARTMENT NAME 
ARUN MX05 200 YES YES DCA 
RAM CE40 190 YES NO DCE 
LAKSHMI MX23 210 YES NO DCA 
BABU ME12 210 N0 YES DME 
SREE CE46 220 YES NO DCE 
GURU CS35 190 NO YES DCS
Insert ALI into the multiply linked list student 
ALI DCS 200 YES NO DCS 
ARUN MX05 200 YES YES DCA 
GURU CS35 190 NO YES DCS 
BABU ME12 210 N0 YES DME 
ALI DCS 200 YES NO DCS
Delete SREE from the Sports Club Membership 
list from student: 
BEFORE DELETING : 
RAM CE40 190 YES NO DCE 
SREE CE46 220 YES NO DCE 
AFTER DELETING : 
RAM CE40 190 YES NO DCE 
SREE CE46 220 YES NO DCE
Example 2 Sparse Matrix 
The sparse matrix is a matrix with zeros as the 
dominating elements. 
7 8 5 3 
4 6 2 1 
5 3 2 9 
1 4 9 2 
7 0 0 0 
0 0 0 0 
0 0 1 0 
0 2 0 0 
Matrix Sparse Matrix
Node structure of the multiply linked list: 
ROW COL DATA 
RIGHT 
DOWN
 Each non zero element of the matrix is 
represented using the node structure. Here 
ROW, COL and DATA fields record the row , 
column and values of the non zero elements in 
the matrix. 
 The RIGHT link points to the node holding 
the next non zero value in the same row of the 
matrix. 
 The LEFT link points to the node holding the 
next non zero value in the same column of the 
matrix.
Applications of multiply 
linked list 
•Addition of polynomials 
•Representation of sparse matrix
• The objective of the addition of polynomial is to 
perform a symbolic addition of two polynomials. 
• p1 :2x^ 6 + x^3+5x+4 
• P2: 7x^6+8x^5-9x^3+10x^2+14 
Be the two polynomials over a variable x. 
The objective is to obtain the algebraic sum of p1 
and p2 as, 
p1+p2=9x^6+8x^5-8x^3+10x^2+5x+18.
Sparse matrix in multiply linked list: 
0 1 0 0 0 0 
0 0 0 0 0 0 
2 0 0 1 0 0 
0 0 0 0 0 0 
0 3 0 0 0 0 
0 0 0 0 0 0 
0 0 0 0 0 1 
7x6
7 6 0 1 0 2 0 4 0 6 
1 0 
3 0 
6 0 
7 0 
1 2 1 
3 1 2 3 4 1 
6 2 3 
7 6 1 
START
THANK YOU

More Related Content

What's hot

Chapter 2 Relational Data Model-part1
Chapter 2 Relational Data Model-part1Chapter 2 Relational Data Model-part1
Chapter 2 Relational Data Model-part1Eddyzulham Mahluzydde
 
Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3Eddyzulham Mahluzydde
 
En Ch03 Figs
En Ch03 FigsEn Ch03 Figs
En Ch03 Figsgourab87
 
Database normalization
Database normalizationDatabase normalization
Database normalizationJignesh Jain
 
Relational algebra.pptx
Relational algebra.pptxRelational algebra.pptx
Relational algebra.pptxRUpaliLohar
 
Chapter 2 Relational Data Model-part 2
Chapter 2 Relational Data Model-part 2Chapter 2 Relational Data Model-part 2
Chapter 2 Relational Data Model-part 2Eddyzulham Mahluzydde
 
Normalization & join
Normalization & joinNormalization & join
Normalization & joinSohag Babu
 
Normalization of Data Base
Normalization of Data BaseNormalization of Data Base
Normalization of Data BaseRavinder Kamboj
 
Database normalization
Database normalizationDatabase normalization
Database normalizationEdward Blurock
 
DEE 431 Database keys and Normalisation Slide 2
DEE 431 Database keys and Normalisation Slide 2DEE 431 Database keys and Normalisation Slide 2
DEE 431 Database keys and Normalisation Slide 2YOGESH SINGH
 
Data Redundancy & Update Anomalies
Data Redundancy & Update AnomaliesData Redundancy & Update Anomalies
Data Redundancy & Update AnomaliesJens Patel
 
Intro to relational model
Intro to relational modelIntro to relational model
Intro to relational modelATS SBGI MIRAJ
 

What's hot (19)

Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
Chapter 2 Relational Data Model-part1
Chapter 2 Relational Data Model-part1Chapter 2 Relational Data Model-part1
Chapter 2 Relational Data Model-part1
 
Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3
 
En Ch03 Figs
En Ch03 FigsEn Ch03 Figs
En Ch03 Figs
 
Normalization
NormalizationNormalization
Normalization
 
Chapter-13-solutions
Chapter-13-solutionsChapter-13-solutions
Chapter-13-solutions
 
Database normalization
Database normalizationDatabase normalization
Database normalization
 
Relational algebra.pptx
Relational algebra.pptxRelational algebra.pptx
Relational algebra.pptx
 
Chapter 2 Relational Data Model-part 2
Chapter 2 Relational Data Model-part 2Chapter 2 Relational Data Model-part 2
Chapter 2 Relational Data Model-part 2
 
OrACLE RELATIONAL
OrACLE RELATIONALOrACLE RELATIONAL
OrACLE RELATIONAL
 
Dbms relational data model and sql queries
Dbms relational data model and sql queries Dbms relational data model and sql queries
Dbms relational data model and sql queries
 
Normal forms
Normal formsNormal forms
Normal forms
 
Normalization & join
Normalization & joinNormalization & join
Normalization & join
 
Normalization of Data Base
Normalization of Data BaseNormalization of Data Base
Normalization of Data Base
 
Database normalization
Database normalizationDatabase normalization
Database normalization
 
DEE 431 Database keys and Normalisation Slide 2
DEE 431 Database keys and Normalisation Slide 2DEE 431 Database keys and Normalisation Slide 2
DEE 431 Database keys and Normalisation Slide 2
 
Data Redundancy & Update Anomalies
Data Redundancy & Update AnomaliesData Redundancy & Update Anomalies
Data Redundancy & Update Anomalies
 
Research gadot
Research gadotResearch gadot
Research gadot
 
Intro to relational model
Intro to relational modelIntro to relational model
Intro to relational model
 

Viewers also liked

Sparse matrices
Sparse matricesSparse matrices
Sparse matricesZain Zafar
 
Data structures using C
Data structures using CData structures using C
Data structures using CPdr Patnaik
 
Sparse Matrix and Polynomial
Sparse Matrix and PolynomialSparse Matrix and Polynomial
Sparse Matrix and PolynomialAroosa Rajput
 
Multiplication of two 3 d sparse matrices using 1d arrays and linked lists
Multiplication of two 3 d sparse matrices using 1d arrays and linked listsMultiplication of two 3 d sparse matrices using 1d arrays and linked lists
Multiplication of two 3 d sparse matrices using 1d arrays and linked listsDr Sandeep Kumar Poonia
 
Queue Data Structure (w/ php egs)
Queue Data Structure (w/ php egs)Queue Data Structure (w/ php egs)
Queue Data Structure (w/ php egs)Roman Rodomansky
 
6. Linked list - Data Structures using C++ by Varsha Patil
6. Linked list - Data Structures using C++ by Varsha Patil6. Linked list - Data Structures using C++ by Varsha Patil
6. Linked list - Data Structures using C++ by Varsha Patilwidespreadpromotion
 
Introduction to data structures and Algorithm
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and AlgorithmDhaval Kaneria
 

Viewers also liked (9)

Sparse matrices
Sparse matricesSparse matrices
Sparse matrices
 
Sparse matrices
Sparse matricesSparse matrices
Sparse matrices
 
Data structures using C
Data structures using CData structures using C
Data structures using C
 
Sparse Matrix and Polynomial
Sparse Matrix and PolynomialSparse Matrix and Polynomial
Sparse Matrix and Polynomial
 
Multiplication of two 3 d sparse matrices using 1d arrays and linked lists
Multiplication of two 3 d sparse matrices using 1d arrays and linked listsMultiplication of two 3 d sparse matrices using 1d arrays and linked lists
Multiplication of two 3 d sparse matrices using 1d arrays and linked lists
 
Doubly linked list (animated)
Doubly linked list (animated)Doubly linked list (animated)
Doubly linked list (animated)
 
Queue Data Structure (w/ php egs)
Queue Data Structure (w/ php egs)Queue Data Structure (w/ php egs)
Queue Data Structure (w/ php egs)
 
6. Linked list - Data Structures using C++ by Varsha Patil
6. Linked list - Data Structures using C++ by Varsha Patil6. Linked list - Data Structures using C++ by Varsha Patil
6. Linked list - Data Structures using C++ by Varsha Patil
 
Introduction to data structures and Algorithm
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and Algorithm
 

Similar to linkedlist

Data Manipulation Language.pptx
Data Manipulation Language.pptxData Manipulation Language.pptx
Data Manipulation Language.pptxEllenGracePorras
 
Relational model
Relational modelRelational model
Relational modelRUpaliLohar
 
Workflow and Database Management
Workflow and Database ManagementWorkflow and Database Management
Workflow and Database ManagementVeneet-BA
 
Workflow Diagram
Workflow DiagramWorkflow Diagram
Workflow DiagramLakshmi-BA
 
Workflow Diagram
Workflow DiagramWorkflow Diagram
Workflow DiagramSunil-QA
 
Workflow and Database Management
Workflow and Database ManagementWorkflow and Database Management
Workflow and Database ManagementSwatiS-BA
 
Workflow Diagram
Workflow DiagramWorkflow Diagram
Workflow DiagramShwetha-BA
 
Preparing for BIT – IT2301 Database Management Systems 2001d
Preparing for BIT – IT2301 Database Management Systems 2001dPreparing for BIT – IT2301 Database Management Systems 2001d
Preparing for BIT – IT2301 Database Management Systems 2001dGihan Wikramanayake
 
CSCI 4140-AA Pre-Req.ppt
CSCI 4140-AA Pre-Req.pptCSCI 4140-AA Pre-Req.ppt
CSCI 4140-AA Pre-Req.pptZahidKhan671907
 
Module 3 Dara structure notes
Module 3 Dara structure notesModule 3 Dara structure notes
Module 3 Dara structure notesDreamers6
 
Module 1 session 5
Module 1   session 5Module 1   session 5
Module 1 session 5raghuinfo
 
Linked List Basics
Linked List BasicsLinked List Basics
Linked List BasicsKaustavRoy40
 
relational database
relational databaserelational database
relational databasessuser05420e
 

Similar to linkedlist (20)

Data Manipulation Language.pptx
Data Manipulation Language.pptxData Manipulation Language.pptx
Data Manipulation Language.pptx
 
Relational model
Relational modelRelational model
Relational model
 
Workflow and Database Management
Workflow and Database ManagementWorkflow and Database Management
Workflow and Database Management
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
 
Workflow Diagram
Workflow DiagramWorkflow Diagram
Workflow Diagram
 
Workflow Diagram
Workflow DiagramWorkflow Diagram
Workflow Diagram
 
Workflow and Database Management
Workflow and Database ManagementWorkflow and Database Management
Workflow and Database Management
 
Workflow Diagram
Workflow DiagramWorkflow Diagram
Workflow Diagram
 
Preparing for BIT – IT2301 Database Management Systems 2001d
Preparing for BIT – IT2301 Database Management Systems 2001dPreparing for BIT – IT2301 Database Management Systems 2001d
Preparing for BIT – IT2301 Database Management Systems 2001d
 
Unit03 dbms
Unit03 dbmsUnit03 dbms
Unit03 dbms
 
CSCI 4140-AA Pre-Req.ppt
CSCI 4140-AA Pre-Req.pptCSCI 4140-AA Pre-Req.ppt
CSCI 4140-AA Pre-Req.ppt
 
E-R diagram & SQL
E-R diagram & SQLE-R diagram & SQL
E-R diagram & SQL
 
Unit03 dbms
Unit03 dbmsUnit03 dbms
Unit03 dbms
 
RDBMS in SQL
RDBMS in SQLRDBMS in SQL
RDBMS in SQL
 
NMEC RD_UNIT 1.ppt
NMEC RD_UNIT 1.pptNMEC RD_UNIT 1.ppt
NMEC RD_UNIT 1.ppt
 
Module 3 Dara structure notes
Module 3 Dara structure notesModule 3 Dara structure notes
Module 3 Dara structure notes
 
Module 1 session 5
Module 1   session 5Module 1   session 5
Module 1 session 5
 
Linked List Basics
Linked List BasicsLinked List Basics
Linked List Basics
 
relational database
relational databaserelational database
relational database
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
 

More from Sathasivam Rangasamy (11)

deque and it applications
deque and it applicationsdeque and it applications
deque and it applications
 
Team 2
Team 2Team 2
Team 2
 
Team 1
Team 1Team 1
Team 1
 
Team 10
Team 10Team 10
Team 10
 
Team 9
Team 9Team 9
Team 9
 
single linked list
single linked listsingle linked list
single linked list
 
Team 6
Team 6Team 6
Team 6
 
Team 5
Team 5Team 5
Team 5
 
Team 4
Team 4Team 4
Team 4
 
Team 3
Team 3Team 3
Team 3
 
Loaders
LoadersLoaders
Loaders
 

linkedlist

  • 1. DATA STRUCTURE ASSIGNMENT NO 1 TEAM 8 MULTIPLY LINKED LIST TEAM MEMBERS ANAND. S _ 13MX03 DHIVYA. K. S _ 13MX09 KARTHIK. A.R _ 13MX21 MALATHI. A _ 13MX25 YOGESHWARI _ 13MX54
  • 2. Linked list • A Linked representation of data structure is known as a linked list, Which is a collection of nodes. • Each node is a collection of fields categorized as data items and links.
  • 3. Merits of linked data structure • Efficient implementation of insertion and deletion operations. • Efficient usage of storage memory.
  • 4. Multiple linked list • In multiple linked list, each node contains two or more link fields, each field being used to connect the same set of data records in a different order. • Eg : By name, By department etc, . .
  • 5. MULTIPLY LINKED LIST Linked representation with multiple data and link fields. Multiply linked representation of the list L is a network of nodes which are connected to one another based on some associations.
  • 6.
  • 7. Node structure of a multiply linked list: LINK 2 … DATA1 DATA2 … DATA X LINK 1 LINK 4 LINK 3 LINK m- 1 LINK m
  • 8. EXAMPLE 1: Student details for representation as a multiply linked list Name of the student Roll no: No of Credits Sports Club Membership Day Student Department ARUN MX05 200 YES YES DCA BABU ME12 210 N0 YES DME LAKSHMI MX23 210 YES NO DCA RAM CE40 190 YES NO DCE GURU CS35 190 NO YES DCS SREE CE46 220 YES NO DCE
  • 9. Node structure of the multiply linked list student: Sports Club Men Name of Name of the student the Credits Registered Roll no Day Student Dept Enroll
  • 10. Multiply linked list structure of list student ARUN MX05 200 YES YES DCA BABU ME12 210 N0 YES DME LAKSHMI MX23 210 YES NO DCA RAM CE40 190 YES NO DCE SCM - Sports Club Membership
  • 11. DS DS - DAY STUDENT ARUN MX05 200 YES YES DCA BABU ME12 210 N0 YES DME LAKSHMI MX23 210 YES NO DCA GURU CS35 190 NO YES DCS SREE CE46 220 YES NO DCE
  • 12. D D- DEPARTMENT NAME ARUN MX05 200 YES YES DCA RAM CE40 190 YES NO DCE LAKSHMI MX23 210 YES NO DCA BABU ME12 210 N0 YES DME SREE CE46 220 YES NO DCE GURU CS35 190 NO YES DCS
  • 13. Insert ALI into the multiply linked list student ALI DCS 200 YES NO DCS ARUN MX05 200 YES YES DCA GURU CS35 190 NO YES DCS BABU ME12 210 N0 YES DME ALI DCS 200 YES NO DCS
  • 14. Delete SREE from the Sports Club Membership list from student: BEFORE DELETING : RAM CE40 190 YES NO DCE SREE CE46 220 YES NO DCE AFTER DELETING : RAM CE40 190 YES NO DCE SREE CE46 220 YES NO DCE
  • 15. Example 2 Sparse Matrix The sparse matrix is a matrix with zeros as the dominating elements. 7 8 5 3 4 6 2 1 5 3 2 9 1 4 9 2 7 0 0 0 0 0 0 0 0 0 1 0 0 2 0 0 Matrix Sparse Matrix
  • 16. Node structure of the multiply linked list: ROW COL DATA RIGHT DOWN
  • 17.  Each non zero element of the matrix is represented using the node structure. Here ROW, COL and DATA fields record the row , column and values of the non zero elements in the matrix.  The RIGHT link points to the node holding the next non zero value in the same row of the matrix.  The LEFT link points to the node holding the next non zero value in the same column of the matrix.
  • 18. Applications of multiply linked list •Addition of polynomials •Representation of sparse matrix
  • 19. • The objective of the addition of polynomial is to perform a symbolic addition of two polynomials. • p1 :2x^ 6 + x^3+5x+4 • P2: 7x^6+8x^5-9x^3+10x^2+14 Be the two polynomials over a variable x. The objective is to obtain the algebraic sum of p1 and p2 as, p1+p2=9x^6+8x^5-8x^3+10x^2+5x+18.
  • 20. Sparse matrix in multiply linked list: 0 1 0 0 0 0 0 0 0 0 0 0 2 0 0 1 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 7x6
  • 21. 7 6 0 1 0 2 0 4 0 6 1 0 3 0 6 0 7 0 1 2 1 3 1 2 3 4 1 6 2 3 7 6 1 START