SlideShare a Scribd company logo
1 of 7
SPARSE MATRICES
PRESENTATION BY ZAIN ZAFAR
What are SPARSE MATRICES?
   One of the most important developments in scientific computing is sparse
    matrix technology. This technology includes the data structures to
    represent the matrices, the techniques for manipulating them, the
    algorithms used, and the efficient mapping of the data structures and
    algorithms to high performance. A sparse matrix is a matrix having a
    relatively small number of nonzero elements.

          Consider the following as an example of a sparse matrix A:
                                 ┌                    ┐
                                  | 11 0 13 0 0 0 |
                                  | 21 22 0 24 0 0 |
                                  | 0 32 33 0 35 0 |
                                  | 0 0 43 44 0 46 |
                                  | 51 0 0 54 55 0 |
                                  | 61 62 0 0 65 66 |
                                 └                    ┘
Sparse Matrices
in Data Structures
Sparse matrix is a two-dimensional array in which most of
the elements have null value or zero “0”. In large number
of applications sparse matrices are used. It is wastage of
memory and processing time if we store null values of a
matrix in array. To avoid such circumstances different
techniques are used such as linked list. In simple words
sparse matrices are matrices that allow special
techniques to take advantage of the large number of
null elements and the structure.
Symmetric classification of Sparse
Matrix:
    Triangular Matrices:                     Band Matrices:
    Triangular matrices have the same        An important special type of
     number of rows as they have               sparse matrices is band
     columns; that is, they have n rows        matrix, defined as follows. The
     and n columns. In triangular matrix       lower bandwidth of a matrix A is
     both main and lower diagonals             the smallest number p such that
     are filled with non-zero values or        the entry aij vanishes whenever i > j
     main diagonal and upper storing           + p.
     diagonals are filled with non-zero
     values.
Types of Triangular Matrices:

 Upper triangular matrix:                  Lower triangular matrix:
    A matrix A is an upper triangular        A matrix A is a lower triangular
     matrix if its nonzero elements are        matrix if its nonzero elements are
     found only in the upper triangle of       found only in the lower triangle of
     the matrix, including the main            the matrix, including the main
     diagonal;                                 diagonal;
Types of Band Matrices:

 Diagonal matrix                          Tri-diagonal matrix
    Let A be a square matrix (with          A tri-diagonal matrix is a matrix
     entries in any field). If all off-       that has nonzero elements only in
     diagonal entries of A are zero,          the main diagonal, the first
     then A is a diagonal matrix.             diagonal below this, and the first
                                              diagonal above the main
                                              diagonal.
Importance of Sparse
Matrices
Sparse matrices occur in many
applications including solving partial
differential equations (PDEs), text-
document matrices used for latent
semantic indexing (LSI), linear and
nonlinear optimization, and
manipulating network and graph
models.

More Related Content

What's hot

What's hot (20)

Introduction to data structure ppt
Introduction to data structure pptIntroduction to data structure ppt
Introduction to data structure ppt
 
ID3 ALGORITHM
ID3 ALGORITHMID3 ALGORITHM
ID3 ALGORITHM
 
Presentation on Data Structure
Presentation on Data StructurePresentation on Data Structure
Presentation on Data Structure
 
Queue data structure
Queue data structureQueue data structure
Queue data structure
 
Tree and graph
Tree and graphTree and graph
Tree and graph
 
Arrays in Data Structure and Algorithm
Arrays in Data Structure and Algorithm Arrays in Data Structure and Algorithm
Arrays in Data Structure and Algorithm
 
Data Structures- Part5 recursion
Data Structures- Part5 recursionData Structures- Part5 recursion
Data Structures- Part5 recursion
 
Splay Tree Algorithm
Splay Tree AlgorithmSplay Tree Algorithm
Splay Tree Algorithm
 
Data Structures (CS8391)
Data Structures (CS8391)Data Structures (CS8391)
Data Structures (CS8391)
 
Stack
StackStack
Stack
 
Unit 1 introduction to data structure
Unit 1   introduction to data structureUnit 1   introduction to data structure
Unit 1 introduction to data structure
 
Binary search tree(bst)
Binary search tree(bst)Binary search tree(bst)
Binary search tree(bst)
 
Data Streaming For Big Data
Data Streaming For Big DataData Streaming For Big Data
Data Streaming For Big Data
 
Data Structure: Algorithm and analysis
Data Structure: Algorithm and analysisData Structure: Algorithm and analysis
Data Structure: Algorithm and analysis
 
PPT On Sorting And Searching Concepts In Data Structure | In Programming Lang...
PPT On Sorting And Searching Concepts In Data Structure | In Programming Lang...PPT On Sorting And Searching Concepts In Data Structure | In Programming Lang...
PPT On Sorting And Searching Concepts In Data Structure | In Programming Lang...
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
 
Circular queue
Circular queueCircular queue
Circular queue
 
Queue ppt
Queue pptQueue ppt
Queue ppt
 
linked list in data structure
linked list in data structure linked list in data structure
linked list in data structure
 
Arrays
ArraysArrays
Arrays
 

Viewers also liked

04 ds and algorithm session_05
04 ds and algorithm session_0504 ds and algorithm session_05
04 ds and algorithm session_05
Niit Care
 
07 ds and algorithm session_10
07 ds and algorithm session_1007 ds and algorithm session_10
07 ds and algorithm session_10
Niit Care
 
05 ds and algorithm session_07
05 ds and algorithm session_0705 ds and algorithm session_07
05 ds and algorithm session_07
Niit Care
 

Viewers also liked (20)

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
 
Sparse matrices
Sparse matricesSparse matrices
Sparse matrices
 
Sparse Matrix and Polynomial
Sparse Matrix and PolynomialSparse Matrix and Polynomial
Sparse Matrix and Polynomial
 
linkedlist
linkedlistlinkedlist
linkedlist
 
DATA STRUCTURES
DATA STRUCTURESDATA STRUCTURES
DATA STRUCTURES
 
LINEAR ALGEBRA BEHIND GOOGLE SEARCH
LINEAR ALGEBRA BEHIND GOOGLE SEARCHLINEAR ALGEBRA BEHIND GOOGLE SEARCH
LINEAR ALGEBRA BEHIND GOOGLE SEARCH
 
What is sparse matrix
What is sparse matrixWhat is sparse matrix
What is sparse matrix
 
04 ds and algorithm session_05
04 ds and algorithm session_0504 ds and algorithm session_05
04 ds and algorithm session_05
 
Chapter 15
Chapter 15Chapter 15
Chapter 15
 
Operations on linked list
Operations on linked listOperations on linked list
Operations on linked list
 
Lec6 mod linked list
Lec6 mod linked listLec6 mod linked list
Lec6 mod linked list
 
07 ds and algorithm session_10
07 ds and algorithm session_1007 ds and algorithm session_10
07 ds and algorithm session_10
 
Data mining tasks
Data mining tasksData mining tasks
Data mining tasks
 
Chap 13(dynamic memory allocation)
Chap 13(dynamic memory allocation)Chap 13(dynamic memory allocation)
Chap 13(dynamic memory allocation)
 
05 ds and algorithm session_07
05 ds and algorithm session_0705 ds and algorithm session_07
05 ds and algorithm session_07
 
Data structures using C
Data structures using CData structures using C
Data structures using C
 
Matrix and its applications by mohammad imran
Matrix and its applications by mohammad imranMatrix and its applications by mohammad imran
Matrix and its applications by mohammad imran
 
Linked Lists
Linked ListsLinked Lists
Linked Lists
 
Applications of data structures
Applications of data structuresApplications of data structures
Applications of data structures
 
Alleviating Data Sparsity for Twitter Sentiment Analysis
Alleviating Data Sparsity for Twitter Sentiment AnalysisAlleviating Data Sparsity for Twitter Sentiment Analysis
Alleviating Data Sparsity for Twitter Sentiment Analysis
 

Similar to Sparse matrices

Alg II 3-6 Solving Systems - Matrices
Alg II 3-6 Solving Systems - MatricesAlg II 3-6 Solving Systems - Matrices
Alg II 3-6 Solving Systems - Matrices
jtentinger
 
Alg II Unit 3-6-solvingsystemsmatrices
Alg II Unit 3-6-solvingsystemsmatricesAlg II Unit 3-6-solvingsystemsmatrices
Alg II Unit 3-6-solvingsystemsmatrices
jtentinger
 
Svm Presentation
Svm PresentationSvm Presentation
Svm Presentation
shahparin
 
Array.....it also help full all ECE department students.
Array.....it also help full all ECE department students.Array.....it also help full all ECE department students.
Array.....it also help full all ECE department students.
AnupamBiswas67
 
Math's project.pptx
Math's project.pptxMath's project.pptx
Math's project.pptx
zakafu9
 

Similar to Sparse matrices (20)

Matrix and it's Application
Matrix and it's ApplicationMatrix and it's Application
Matrix and it's Application
 
Chapter 4 matrix
Chapter 4  matrixChapter 4  matrix
Chapter 4 matrix
 
Introduction
IntroductionIntroduction
Introduction
 
Use of matrix in daily life
Use of matrix in daily lifeUse of matrix in daily life
Use of matrix in daily life
 
Thomas Algorithim.pptx
Thomas Algorithim.pptxThomas Algorithim.pptx
Thomas Algorithim.pptx
 
Rank of a matrix
Rank of a matrixRank of a matrix
Rank of a matrix
 
Matrices
MatricesMatrices
Matrices
 
Application of matrices in real life
Application of matrices in real lifeApplication of matrices in real life
Application of matrices in real life
 
Alg II 3-6 Solving Systems - Matrices
Alg II 3-6 Solving Systems - MatricesAlg II 3-6 Solving Systems - Matrices
Alg II 3-6 Solving Systems - Matrices
 
Alg II Unit 3-6-solvingsystemsmatrices
Alg II Unit 3-6-solvingsystemsmatricesAlg II Unit 3-6-solvingsystemsmatrices
Alg II Unit 3-6-solvingsystemsmatrices
 
N41049093
N41049093N41049093
N41049093
 
Matrix
MatrixMatrix
Matrix
 
Asymptotic Notation and Data Structures
Asymptotic Notation and Data StructuresAsymptotic Notation and Data Structures
Asymptotic Notation and Data Structures
 
Fem in matlab
Fem in matlabFem in matlab
Fem in matlab
 
Mattrix.pptx
Mattrix.pptxMattrix.pptx
Mattrix.pptx
 
Lesson 1 - Introduction to Matrices
Lesson 1 - Introduction to MatricesLesson 1 - Introduction to Matrices
Lesson 1 - Introduction to Matrices
 
Data Structures unit I Introduction - data types
Data Structures unit I Introduction - data typesData Structures unit I Introduction - data types
Data Structures unit I Introduction - data types
 
Svm Presentation
Svm PresentationSvm Presentation
Svm Presentation
 
Array.....it also help full all ECE department students.
Array.....it also help full all ECE department students.Array.....it also help full all ECE department students.
Array.....it also help full all ECE department students.
 
Math's project.pptx
Math's project.pptxMath's project.pptx
Math's project.pptx
 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 

Sparse matrices

  • 2. What are SPARSE MATRICES?  One of the most important developments in scientific computing is sparse matrix technology. This technology includes the data structures to represent the matrices, the techniques for manipulating them, the algorithms used, and the efficient mapping of the data structures and algorithms to high performance. A sparse matrix is a matrix having a relatively small number of nonzero elements. Consider the following as an example of a sparse matrix A: ┌ ┐ | 11 0 13 0 0 0 | | 21 22 0 24 0 0 | | 0 32 33 0 35 0 | | 0 0 43 44 0 46 | | 51 0 0 54 55 0 | | 61 62 0 0 65 66 | └ ┘
  • 3. Sparse Matrices in Data Structures Sparse matrix is a two-dimensional array in which most of the elements have null value or zero “0”. In large number of applications sparse matrices are used. It is wastage of memory and processing time if we store null values of a matrix in array. To avoid such circumstances different techniques are used such as linked list. In simple words sparse matrices are matrices that allow special techniques to take advantage of the large number of null elements and the structure.
  • 4. Symmetric classification of Sparse Matrix:  Triangular Matrices:  Band Matrices:  Triangular matrices have the same  An important special type of number of rows as they have sparse matrices is band columns; that is, they have n rows matrix, defined as follows. The and n columns. In triangular matrix lower bandwidth of a matrix A is both main and lower diagonals the smallest number p such that are filled with non-zero values or the entry aij vanishes whenever i > j main diagonal and upper storing + p. diagonals are filled with non-zero values.
  • 5. Types of Triangular Matrices: Upper triangular matrix: Lower triangular matrix:  A matrix A is an upper triangular  A matrix A is a lower triangular matrix if its nonzero elements are matrix if its nonzero elements are found only in the upper triangle of found only in the lower triangle of the matrix, including the main the matrix, including the main diagonal; diagonal;
  • 6. Types of Band Matrices: Diagonal matrix Tri-diagonal matrix  Let A be a square matrix (with  A tri-diagonal matrix is a matrix entries in any field). If all off- that has nonzero elements only in diagonal entries of A are zero, the main diagonal, the first then A is a diagonal matrix. diagonal below this, and the first diagonal above the main diagonal.
  • 7. Importance of Sparse Matrices Sparse matrices occur in many applications including solving partial differential equations (PDEs), text- document matrices used for latent semantic indexing (LSI), linear and nonlinear optimization, and manipulating network and graph models.