280 likes | 308 Views
Lecture 16 Cramer’s Rule, Eigenvalue and Eigenvector. Shang-Hua Teng. Determinants and Linear System Cramer’s Rule. Cramer’s Rule. If det A is not zero, then Ax = b has the unique solution. Cramer’s Rule for Inverse. Proof:. Where Does Matrices Come From?. Computer Science.
E N D
Lecture 16Cramer’s Rule, Eigenvalue and Eigenvector Shang-Hua Teng
Cramer’s Rule • If det A is not zero, then Ax = b has the unique solution
Cramer’s Rule for Inverse Proof:
Computer Science • Graphs: G = (V,E)
Adjacency matrix: Matrices Representation of graphs
Adjacency Matrix: 1 5 2 3 4
1 2 4 3 Matrix of Graphs Adjacency Matrix: • If A(i, j) = 1: edge exists Else A(i, j) = 0. 1 2 -3 4 3
Laplacian of Graphs 1 5 2 3 4
1 2 4 3 Matrix of Weighted Graphs Weighted Matrix: • If A(i, j) = w(i,j): edge exists Else A(i, j) = infty. 1 2 -3 4 3
Random walks How long does it take to get completely lost?
1 2 6 3 4 5 Random walks Transition Matrix
Markov Matrix • Every entry is non-negative • Every column adds to 1 • A Markov matrix defines a Markov chain
Other Matrices • Projections • Rotations • Permutations • Reflections
Term-Document Matrix • Index each document (by human or by computer) • fij counts, frequencies, weights, etc • Each document can be regarded as a point in m dimensions
Document-Term Matrix • Index each document (by human or by computer) • fij counts, frequencies, weights, etc • Each document can be regarded as a point in n dimensions
c1 c2 c3 c4 c5 m1 m2 m3 m4 human 1 0 0 1 0 0 0 0 0 interface 1 0 1 0 0 0 0 0 0 computer 1 1 0 0 0 0 0 0 0 user 0 1 1 0 1 0 0 0 0 system 0 1 1 2 0 0 0 0 0 response 0 1 0 0 1 0 0 0 0 time 0 1 0 0 1 0 0 0 0 EPS 0 0 1 1 0 0 0 0 0 survey 0 1 0 0 0 0 0 0 1 trees 0 0 0 0 0 1 1 1 0 graph 0 0 0 0 0 0 1 1 1 minors 0 0 0 0 0 0 0 1 1
Random walks How long does it take to get completely lost?
1 2 6 3 4 5 Random walks Transition Matrix