FACTOID # 13: New York has America's lowest percentage of residents who are veterans.
 
 Home   Encyclopedia   Statistics   States A-Z   Flags   Maps   FAQ   About 
   
 
WHAT'S NEW
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > Sparse graph

In the mathematical subfield of numerical analysis a sparse matrix is a matrix populated primarily with zeros. A sparse graph is a graph with a sparse adjacency matrix.


Sparsity is a concept, useful in combinatorics and application areas such as network theory, of a low density of significant data or connections. This concept is amenable to quantitative reasoning. It is also noticeable in everyday life.


Huge sparse matrices often appear in science or engineering when solving problems for linear models.


When storing and manipulating sparse matrices on the computer it is often necessary to modify the standard algorithms and take advantage of the sparse structure of the matrix. Sparse data is by its nature more easily compressed which can yield enormous savings in memory usage. And more importantly manipulating huge sparse matrices with the standard algorithms may be impossible due to their sheer size. The definition of huge depends on the hardware and the computer programs available to manipulate the matrix.

Contents

Definitions

Given a sparse NM matrix A the row bandwidth for the n-th row is defined as

The bandwidth for the matrix is defined as

Example

A bitmap image having only 2 colors, with one of them dominant (say a file that stores a handwritten signature) can be encoded as a sparse matrix that contains only row and column numbers for pixels with the non-dominant color.


Storing a sparse matrix

The naive data structure for a matrix is a two dimensional array. Each entry in the array represents an element ai,j of the matrix and can be accessed by the two indices i and j. For a nm matrix we need at least (n*m) / 8 bytes to represent the matrix when assuming 1 bit for each entry.


A sparse matrix contains many zero entries. The basic idea when storing sparse matrices is to only store the non-zero entries as opposed to storing all entries. Depending on the number and distribution of the non-zero entries, different data structures can be used and yield huge savings in memory when compared to a naive approach.


Diagonal matrix

A very efficient structure for a diagonal matrix is to store just the entries in the main diagonal as a one dimensional array. For nn matrix we need only n / 8 bytes when assuming 1 bit for each entry.


Reducing the bandwidth

The Cuthill-McKee_algorithm can be used to reduce the bandwith of a sparse symmetric matrix.


Reducing the fill-in

The fill-in of a matrix are those entries which change from an initial zero to a non-zero value during the execution of an algorithm. To reduce the memory requirements and the number of arithmetic operations used during an algorithm it is useful to minimize the fill-in by switching rows and columns in the matrix. The symbolic Cholesky decomposition can be used to calculate the worst possible fill-in before doing the actual Cholesky decomposition.


See also


  Results from FactBites:
 
Fast and effective algorithms for graph partitioning and sparse-matrix ordering (5952 words)
Partitioning the graph of a sparse matrix to minimize the edge cut and distributing different partitions to different processors minimizes the communication overhead in parallel sparse-matrix vector multiplication [12].
HEM, by absorbing the heavier edges, generates coarse graphs whose nodes are loosely connected (by the lighter remaining edges), thus ensuring that a partition of the coarse graph corresponds to a good partition of the original graph.
The elimination graph is the graph of the partially factored sparse matrix in which all columns except those corresponding to the separator nodes have been eliminated.
Sparse graph code - Wikipedia, the free encyclopedia (137 words)
A Sparse graph code is a code which is represented by a sparse graph.
Any linear code can be represented as a graph, where there are two sets of nodes - a set representing the transmitted bits and another set representing the constraints that the transmitted bits have to satisfy.
The state of the art classical error-correcting codes are based on sparse graphs, achieving close to the Shannon limit.
  More results at FactBites »

 
 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments

Want to know more?
Search encyclopedia, statistics and forums:

 


Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms, 1022, m