CS 219: Sparse Matrix Algorithms

Slides:



Advertisements
Similar presentations
05/11/2005 Carnegie Mellon School of Computer Science Aladdin Lamps 05 Combinatorial and algebraic tools for multigrid Yiannis Koutis Computer Science.
Advertisements

Partial Differential Equations
Chapter 28 – Part II Matrix Operations. Gaussian elimination Gaussian elimination LU factorization LU factorization Gaussian elimination with partial.
Chapter 6 Eigenvalues and Eigenvectors
CS 240A: Solving Ax = b in parallel Dense A: Gaussian elimination with partial pivoting (LU) Same flavor as matrix * matrix, but more complicated Sparse.
CS 290H 7 November Introduction to multigrid methods
Clustering II CMPUT 466/551 Nilanjan Ray. Mean-shift Clustering Will show slides from:
Eigenvalues and Eigenvectors
CSCI 317 Mike Heroux1 Sparse Matrix Computations CSCI 317 Mike Heroux.
CS 584. Review n Systems of equations and finite element methods are related.
Some useful linear algebra. Linearly independent vectors span(V): span of vector space V is all linear combinations of vectors v i, i.e.
Matrix Operations. Matrix Notation Example Equality of Matrices.
Matrices and Systems of Equations
Sparse Matrix Methods Day 1: Overview Day 2: Direct methods
CSC5160 Topics in Algorithms Tutorial 1 Jan Jerry Le
The Landscape of Ax=b Solvers Direct A = LU Iterative y’ = Ay Non- symmetric Symmetric positive definite More RobustLess Storage (if sparse) More Robust.
Sparse Matrix Methods Day 1: Overview Matlab and examples Data structures Ax=b Sparse matrices and graphs Fill-reducing matrix permutations Matching and.
CS240A: Conjugate Gradients and the Model Problem.
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
Conjugate gradients, sparse matrix-vector multiplication, graphs, and meshes Thanks to Aydin Buluc, Umit Catalyurek, Alan Edelman, and Kathy Yelick for.
Google’s Billion Dollar Eigenvector Gerald Kruse, PhD. John ‘54 and Irene ‘58 Dale Professor of MA, CS and I T Interim Assistant Provost Juniata.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Complexity of direct methods n 1/2 n 1/3 2D3D Space (fill): O(n log n)O(n 4/3 ) Time (flops): O(n 3/2 )O(n 2 ) Time and space to solve any problem on any.
The Landscape of Sparse Ax=b Solvers Direct A = LU Iterative y’ = Ay Non- symmetric Symmetric positive definite More RobustLess Storage More Robust More.
Scientific Computing Partial Differential Equations Poisson Equation.
Computation on meshes, sparse matrices, and graphs Some slides are from David Culler, Jim Demmel, Bob Lucas, Horst Simon, Kathy Yelick, et al., UCB CS267.
CS 290H Lecture 5 Elimination trees Read GLN section 6.6 (next time I’ll assign 6.5 and 6.7) Homework 1 due Thursday 14 Oct by 3pm turnin file1.
Linear Systems Iterative Solutions CSE 541 Roger Crawfis.
Computing Eigen Information for Small Matrices The eigen equation can be rearranged as follows: Ax = x  Ax = I n x  Ax - I n x = 0  (A - I n )x = 0.
1 Incorporating Iterative Refinement with Sparse Cholesky April 2007 Doron Pearl.
Elliptic PDEs and the Finite Difference Method
Solution of Sparse Linear Systems
Parallel Solution of the Poisson Problem Using MPI
CS240A: Conjugate Gradients and the Model Problem.
Administrivia: October 5, 2009 Homework 1 due Wednesday Reading in Davis: Skim section 6.1 (the fill bounds will make more sense next week) Read section.
CS 290H Administrivia: May 14, 2008 Course project progress reports due next Wed 21 May. Reading in Saad (second edition): Sections
5.1 Eigenvectors and Eigenvalues 5. Eigenvalues and Eigenvectors.
Graphs Basic properties.
CS 290H 31 October and 2 November Support graph preconditioners Final projects: Read and present two related papers on a topic not covered in class Or,
 In the previews parts we have seen some kind of segmentation method.  In this lecture we will see graph cut, which is a another segmentation method.
2.5 – Determinants and Multiplicative Inverses of Matrices.
Mesh Segmentation via Spectral Embedding and Contour Analysis Speaker: Min Meng
Programming assignment # 3 Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Conjugate gradient iteration One matrix-vector multiplication per iteration Two vector dot products per iteration Four n-vectors of working storage x 0.
Laplacian Matrices of Graphs: Algorithms and Applications ICML, June 21, 2016 Daniel A. Spielman.
CS 140: Sparse Matrix-Vector Multiplication and Graph Partitioning
Review of Eigenvectors and Eigenvalues from CliffsNotes Online mining-the-Eigenvectors-of-a- Matrix.topicArticleId-20807,articleId-
Laplacian Matrices of Graphs: Algorithms and Applications ICML, June 21, 2016 Daniel A. Spielman.
The Landscape of Sparse Ax=b Solvers Direct A = LU Iterative y’ = Ay Non- symmetric Symmetric positive definite More RobustLess Storage More Robust More.
CS246 Linear Algebra Review. A Brief Review of Linear Algebra Vector and a list of numbers Addition Scalar multiplication Dot product Dot product as a.
Review of Eigenvectors and Eigenvalues
Introduction The central problems of Linear Algebra are to study the properties of matrices and to investigate the solutions of systems of linear equations.
Matrix Representation of Graphs
Model Problem: Solving Poisson’s equation for temperature
CS 290N / 219: Sparse Matrix Algorithms
Solving Linear Systems Ax=b
CS 290H Administrivia: April 16, 2008
Lecture 19 MA471 Fall 2003.
Parallel Matrix Multiplication and other Full Matrix Algorithms
Singular Value Decomposition
Parallel Matrix Multiplication and other Full Matrix Algorithms
CS 290H Lecture 3 Fill: bounds and heuristics
Eigenvalues and Eigenvectors
Symmetric Matrices and Quadratic Forms
Read GLN sections 6.1 through 6.4.
Administrivia: November 9, 2009
Eigenvalues and Eigenvectors
Linear Algebra Lecture 16.
Linear Algebra Lecture 28.
Symmetric Matrices and Quadratic Forms
Presentation transcript:

CS 219: Sparse Matrix Algorithms John R. Gilbert (gilbert@cs.ucsb.edu) www.cs.ucsb.edu/~gilbert/cs219

Systems of linear equations: Ax = b Eigenvalues and eigenvectors: Aw = λw

Systems of linear equations: Ax = b Alice is four years older than Bob. In three years, Alice will be twice Bob’s age. How old are Alice and Bob now?

Poisson’s equation for temperature

Example: The Temperature Problem A cabin in the snow Wall temperature is 0°, except for a radiator at 100° What is the temperature in the interior?

Example: The Temperature Problem A cabin in the snow (a square region ) Wall temperature is 0°, except for a radiator at 100° What is the temperature in the interior?

The physics: Poisson’s equation

Many Physical Models Use Stencil Computations PDE models of heat, fluids, structures, … Weather, airplanes, bridges, bones, … Game of Life many, many others 6.43

From Stencil Graph to System of Linear Equations Solve Ax = b for x Matrix A, right-hand side vector b, unknown vector x A is sparse: most of the entries are 0

The (2-dimensional) model problem Graph is a regular square grid with n = k^2 vertices. Corresponds to matrix for regular 2D finite difference mesh. Gives good intuition for behavior of sparse matrix algorithms on many 2-dimensional physical problems. There’s also a 3-dimensional model problem.

Solving Poisson’s equation for temperature k = n1/3 For each i from 1 to n, except on the boundaries: – x(i-k2) – x(i-k) – x(i-1) + 6*x(i) – x(i+1) – x(i+k) – x(i+k2) = 0 n equations in n unknowns: A*x = b Each row of A has at most 7 nonzeros.

Spectral graph clustering

Definitions The Laplacian matrix of an n-vertex undirected graph G is the n-by-n symmetric matrix A with aij = -1 if i ≠ j and (i, j) is an edge of G aij = 0 if i ≠ j and (i, j) is not an edge of G aii = the number of edges incident on vertex i Theorem: The Laplacian matrix of G is symmetric, singular, and positive semidefinite. The multiplicity of 0 as an eigenvalue is equal to the number of connected components of G. A generalized Laplacian matrix (more accurately, a symmetric weakly diagonally dominant M-matrix) is an n-by-n symmetric matrix A with aij ≤ 0 if i ≠ j aii ≥ Σ |aij| where the sum is over j ≠ i

The Landscape of Sparse Ax=b Solvers Direct A = LU Iterative y’ = Ay More Robust More General Non- symmetric Symmetric positive definite More Robust Less Storage D

Administrivia Course web site: www.cs.ucsb.edu/~gilbert/cs219 Be sure you’re on the GauchoSpace class discussion list First homework is on the web site, due next Monday About 6 weekly homeworks, then a final project (implementation experiment, application, or survey paper) Assigned readings: Davis book, Saad book (online), Multigrid Tutorial. (Order from SIAM; also library reserve soon.)