Sparse matrix data structure one example - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

Sparse matrix data structure one example

Description:

Stationary distribution. of a Markov chain. Power method: matvec. and vector arithmetic ... Importance = stationary distribution of Markov process. ... – PowerPoint PPT presentation

Number of Views:193
Avg rating:3.0/5.0
Slides: 8
Provided by: JohnGi84
Category:

less

Transcript and Presenter's Notes

Title: Sparse matrix data structure one example


1
Sparse matrix data structure (one example)
  • Full
  • 2-dimensional array of real or complex numbers
  • (nrowsncols) memory
  • Sparse
  • compressed column storage (CSC)
  • about (1.5nzs .5ncols) memory

2
Graphs and Sparse Matrices Cholesky
factorization
Fill new nonzeros in factor
Symmetric Gaussian elimination for j 1 to n
add edges between js higher-numbered
neighbors
G(RT)
G(A)
3
Sparse Cholesky factorization to solve Ax b
  • Preorder replace A by A(p,p) and b by b(p)
  • Symbolic Factorization build data structure for
    RT
  • Numeric Factorization A RTR
  • Triangular Solves solve RTy b, then Rx y
  • Replace x(p) by x

4
Fill-reducing permutations in Matlab
  • Symmetric approximate minimum degree
  • p symamd(A)
  • symmetric permutation chol(A(p,p)) often
    sparser than chol(A)
  • Symmetric nested dissection
  • not built into Matlab
  • several versions in meshpart toolbox (course web
    page references)
  • Nonsymmetric approximate minimum degree
  • p colamd(A)
  • column permutation lu(A(,p)) often sparser
    than lu(A)
  • also for QR factorization
  • Reverse Cuthill-McKee
  • p symrcm(A)
  • A(p,p) often has smaller bandwidth than A
  • similar to Sparspak RCM

5
Link analysis of the web
  • Web page vertex
  • Link directed edge
  • Link matrix Gij 1 if page j links to page i

6
A Page Rank Matrix
  • Importance ranking of web pages
  • Stationary distribution of a Markov chain
  • Power method matvec and vector arithmetic
  • MatlabP page ranking demo (from SC03) on
    a web crawl of mit.edu (170,000 pages)

7
Web graph PageRank (Google)
An important page is one that many important
pages point to.
  • Markov process follow a random link most of the
    time otherwise, go to any page at random.
  • Importance stationary distribution of Markov
    process.
  • Transition matrix is pG (1-p)ones(size(G)),
    scaled so each column sums to 1.
  • Importance of page i is the i-th entry in the
    principal eigenvector of the transition matrix.
  • But, the matrix is 8,000,000,000 by 8,000,000,000.
Write a Comment
User Comments (0)
About PowerShow.com