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

Computer instructions
Computer instructionsComputer instructions
Computer instructions
Anuj Modi
 

What's hot (20)

Matrices
MatricesMatrices
Matrices
 
Associative memory 14208
Associative memory 14208Associative memory 14208
Associative memory 14208
 
Types of Tree in Data Structure in C++
Types of Tree in Data Structure in C++Types of Tree in Data Structure in C++
Types of Tree in Data Structure in C++
 
A Presentation About Array Manipulation(Insertion & Deletion in an array)
A Presentation About Array Manipulation(Insertion & Deletion in an array)A Presentation About Array Manipulation(Insertion & Deletion in an array)
A Presentation About Array Manipulation(Insertion & Deletion in an array)
 
Arrays in Data Structure and Algorithm
Arrays in Data Structure and Algorithm Arrays in Data Structure and Algorithm
Arrays in Data Structure and Algorithm
 
Array in C
Array in CArray in C
Array in C
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
 
One Dimensional Array
One Dimensional Array One Dimensional Array
One Dimensional Array
 
BCA DATA STRUCTURES SEARCHING AND SORTING MRS.SOWMYA JYOTHI
BCA DATA STRUCTURES SEARCHING AND SORTING MRS.SOWMYA JYOTHIBCA DATA STRUCTURES SEARCHING AND SORTING MRS.SOWMYA JYOTHI
BCA DATA STRUCTURES SEARCHING AND SORTING MRS.SOWMYA JYOTHI
 
Binary Tree in Data Structure
Binary Tree in Data StructureBinary Tree in Data Structure
Binary Tree in Data Structure
 
Data Structures - Lecture 3 [Arrays]
Data Structures - Lecture 3 [Arrays]Data Structures - Lecture 3 [Arrays]
Data Structures - Lecture 3 [Arrays]
 
Arrays
ArraysArrays
Arrays
 
Dijkstra
DijkstraDijkstra
Dijkstra
 
Abstract Data Types
Abstract Data TypesAbstract Data Types
Abstract Data Types
 
Array
ArrayArray
Array
 
Introduction to data structure ppt
Introduction to data structure pptIntroduction to data structure ppt
Introduction to data structure ppt
 
Operator Precedence Grammar
Operator Precedence GrammarOperator Precedence Grammar
Operator Precedence Grammar
 
Binary search tree in data structures
Binary search tree in  data structuresBinary search tree in  data structures
Binary search tree in data structures
 
Computer instructions
Computer instructionsComputer instructions
Computer instructions
 
Analysis of algorithm
Analysis of algorithmAnalysis of algorithm
Analysis of algorithm
 

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
 
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
 
Sparse matrix computations in MapReduce
Sparse matrix computations in MapReduceSparse matrix computations in MapReduce
Sparse matrix computations in MapReduce
 

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
 
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
 
18MEC13C-U1.pdf
18MEC13C-U1.pdf18MEC13C-U1.pdf
18MEC13C-U1.pdf
 

Recently uploaded

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
heathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
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
QucHHunhnh
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 

Recently uploaded (20)

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
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
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
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
 
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.
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
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
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
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
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 

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.