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

1.1 binary tree
1.1 binary tree1.1 binary tree
1.1 binary treeKrish_ver2
 
Tree in data structure
Tree in data structureTree in data structure
Tree in data structureghhgj jhgh
 
Data structure - Graph
Data structure - GraphData structure - Graph
Data structure - GraphMadhu Bala
 
Graph in data structure
Graph in data structureGraph in data structure
Graph in data structureAbrish06
 
linked list in data structure
linked list in data structure linked list in data structure
linked list in data structure shameen khan
 
SEARCHING AND SORTING ALGORITHMS
SEARCHING AND SORTING ALGORITHMSSEARCHING AND SORTING ALGORITHMS
SEARCHING AND SORTING ALGORITHMSGokul Hari
 
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
 
Quick sort-Data Structure
Quick sort-Data StructureQuick sort-Data Structure
Quick sort-Data StructureJeanie Arnoco
 
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHI
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHIBCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHI
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHISowmya Jyothi
 
trees in data structure
trees in data structure trees in data structure
trees in data structure shameen khan
 

What's hot (20)

1.1 binary tree
1.1 binary tree1.1 binary tree
1.1 binary tree
 
Tree and graph
Tree and graphTree and graph
Tree and graph
 
Tree in data structure
Tree in data structureTree in data structure
Tree in data structure
 
Graph traversals in Data Structures
Graph traversals in Data StructuresGraph traversals in Data Structures
Graph traversals in Data Structures
 
Data structure - Graph
Data structure - GraphData structure - Graph
Data structure - Graph
 
Graph in data structure
Graph in data structureGraph in data structure
Graph in data structure
 
single linked list
single linked listsingle linked list
single linked list
 
linked list in data structure
linked list in data structure linked list in data structure
linked list in data structure
 
SEARCHING AND SORTING ALGORITHMS
SEARCHING AND SORTING ALGORITHMSSEARCHING AND SORTING ALGORITHMS
SEARCHING AND SORTING ALGORITHMS
 
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
 
Bfs and Dfs
Bfs and DfsBfs and Dfs
Bfs and Dfs
 
Array ppt
Array pptArray ppt
Array ppt
 
Trees and graphs
Trees and graphsTrees and graphs
Trees and graphs
 
Binary tree
Binary tree Binary tree
Binary tree
 
Quick sort-Data Structure
Quick sort-Data StructureQuick sort-Data Structure
Quick sort-Data Structure
 
Tree - Data Structure
Tree - Data StructureTree - Data Structure
Tree - Data Structure
 
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHI
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHIBCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHI
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHI
 
Merge sort algorithm
Merge sort algorithmMerge sort algorithm
Merge sort algorithm
 
trees in data structure
trees in data structure trees in data structure
trees in data structure
 
sorting and its types
sorting and its typessorting and its types
sorting and its types
 

Viewers also liked

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
 
Sparse Matrix and Polynomial
Sparse Matrix and PolynomialSparse Matrix and Polynomial
Sparse Matrix and PolynomialAroosa Rajput
 
DATA STRUCTURES
DATA STRUCTURESDATA STRUCTURES
DATA STRUCTURESbca2010
 
LINEAR ALGEBRA BEHIND GOOGLE SEARCH
LINEAR ALGEBRA BEHIND GOOGLE SEARCHLINEAR ALGEBRA BEHIND GOOGLE SEARCH
LINEAR ALGEBRA BEHIND GOOGLE SEARCHDivyansh Verma
 
04 ds and algorithm session_05
04 ds and algorithm session_0504 ds and algorithm session_05
04 ds and algorithm session_05Niit Care
 
Operations on linked list
Operations on linked listOperations on linked list
Operations on linked listSumathi Kv
 
07 ds and algorithm session_10
07 ds and algorithm session_1007 ds and algorithm session_10
07 ds and algorithm session_10Niit Care
 
05 ds and algorithm session_07
05 ds and algorithm session_0705 ds and algorithm session_07
05 ds and algorithm session_07Niit Care
 
Data structures using C
Data structures using CData structures using C
Data structures using CPdr Patnaik
 
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 imranMohammad Imran
 
Applications of data structures
Applications of data structuresApplications of data structures
Applications of data structuresWipro
 

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

Matrix and it's Application
Matrix and it's ApplicationMatrix and it's Application
Matrix and it's ApplicationMahmudle Hassan
 
Chapter 4 matrix
Chapter 4  matrixChapter 4  matrix
Chapter 4 matrixWan Pekan
 
Use of matrix in daily life
Use of matrix in daily lifeUse of matrix in daily life
Use of matrix in daily lifesadia Afrose
 
Thomas Algorithim.pptx
Thomas Algorithim.pptxThomas Algorithim.pptx
Thomas Algorithim.pptxAditya194181
 
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 - Matricesjtentinger
 
Alg II Unit 3-6-solvingsystemsmatrices
Alg II Unit 3-6-solvingsystemsmatricesAlg II Unit 3-6-solvingsystemsmatrices
Alg II Unit 3-6-solvingsystemsmatricesjtentinger
 
Asymptotic Notation and Data Structures
Asymptotic Notation and Data StructuresAsymptotic Notation and Data Structures
Asymptotic Notation and Data StructuresAmrinder Arora
 
Lesson 1 - Introduction to Matrices
Lesson 1 - Introduction to MatricesLesson 1 - Introduction to Matrices
Lesson 1 - Introduction to MatricesJonathan Templin
 
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 typesAmirthaVarshini80
 
Svm Presentation
Svm PresentationSvm Presentation
Svm Presentationshahparin
 
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.pptxzakafu9
 

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

ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
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).pptxVishalSingh1417
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
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.pdfPoh-Sun Goh
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
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
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
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.christianmathematics
 

Recently uploaded (20)

ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
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
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
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
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
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
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
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.
 

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.