1 Counting Perfect Matchings of a Graph It is hard in general to count the number of perfect matchings in a graph. But for planar graphs it can be done.

Slides:



Advertisements
Similar presentations
Rules of Matrix Arithmetic
Advertisements

6.1 Vector Spaces-Basic Properties. Euclidean n-space Just like we have ordered pairs (n=2), and ordered triples (n=3), we also have ordered n-tuples.
Ch 7.8: Repeated Eigenvalues
Matrices and Systems of Equations
Review of Matrix Algebra
Graphs G = (V,E) V is the vertex set. Vertices are also called nodes and points. E is the edge set. Each edge connects two different vertices. Edges are.
Linear Equations in Linear Algebra
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
ENGG2013 Unit 7 Non-singular matrix and Gauss-Jordan elimination Jan, 2011.
Matrices and Determinants
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
Solving System of Linear Equations. 1. Diagonal Form of a System of Equations 2. Elementary Row Operations 3. Elementary Row Operation 1 4. Elementary.
1 Operations with Matrice 2 Properties of Matrix Operations
8.4 Matrix Operations Day 1 Thurs May 7 Do Now Solve X – 2y = -6 3x + 4y = 7.
5  Systems of Linear Equations: ✦ An Introduction ✦ Unique Solutions ✦ Underdetermined and Overdetermined Systems  Matrices  Multiplication of Matrices.
Linear Algebra With Applications by Otto Bretscher. Page The Determinant of any diagonal nxn matrix is the product of its diagonal entries. True.
Precalculus – MAT 129 Instructor: Rachel Graham Location: BETTS Rm. 107 Time: 8 – 11:20 a.m. MWF.
Section 4.1 Using Matrices to Represent Data. Matrix Terminology A matrix is a rectangular array of numbers enclosed in a single set of brackets. The.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Review for Chapter 4 Important Terms, Symbols, Concepts 4.1. Systems of Linear Equations in Two Variables.
Systems of Linear Equation and Matrices
Matrix Algebra. Quick Review Quick Review Solutions.
Chap. 2 Matrices 2.1 Operations with Matrices
Slide Chapter 7 Systems and Matrices 7.1 Solving Systems of Two Equations.
How To Find The Reduced Row Echelon Form. Reduced Row Echelon Form A matrix is said to be in reduced row echelon form provided it satisfies the following.
1 Chapter 6 – Determinant Outline 6.1 Introduction to Determinants 6.2 Properties of the Determinant 6.3 Geometrical Interpretations of the Determinant;
A rectangular array of numbers (we will concentrate on real numbers). A nxm matrix has ‘n’ rows and ‘m’ columns What is a matrix? First column First row.
Matrices & Determinants Chapter: 1 Matrices & Determinants.
Lesson 13-1: Matrices & Systems Objective: Students will: State the dimensions of a matrix Solve systems using matrices.
Determinants. If is a square matrix of order 1, then |A| = | a 11 | = a 11 If is a square matrix of order 2, then |A| = = a 11 a 22 – a 21 a 12.
8.1 Matrices & Systems of Equations
Ch X 2 Matrices, Determinants, and Inverses.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
1 C ollege A lgebra Systems and Matrices (Chapter5) 1.
Matrices CHAPTER 8.1 ~ 8.8. Ch _2 Contents  8.1 Matrix Algebra 8.1 Matrix Algebra  8.2 Systems of Linear Algebra Equations 8.2 Systems of Linear.
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.
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
Elementary Linear Algebra Anton & Rorres, 9 th Edition Lecture Set – 02 Chapter 2: Determinants.
Data Structures & Algorithms Graphs
Solving Linear Systems Solving linear systems Ax = b is one part of numerical linear algebra, and involves manipulating the rows of a matrix. Solving linear.
4.5 Matrices, Determinants, Inverseres -Identity matrices -Inverse matrix (intro) -An application -Finding inverse matrices (by hand) -Finding inverse.
Copyright © 2011 Pearson Education, Inc. Solving Linear Systems Using Matrices Section 6.1 Matrices and Determinants.
Matrices and Systems of Linear Equations
Matrix Algebra Section 7.2. Review of order of matrices 2 rows, 3 columns Order is determined by: (# of rows) x (# of columns)
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
Matrices and Determinants
Student Handbook 1. Matrices A matrix (plural: matrices, not matrixes) is a rectangular array of numbers such as Matrices are useful when modelling a.
Section 2.1 Determinants by Cofactor Expansion. THE DETERMINANT Recall from algebra, that the function f (x) = x 2 is a function from the real numbers.
Slide Copyright © 2009 Pearson Education, Inc. 7.4 Solving Systems of Equations by Using Matrices.
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Paths and circuits.
Matrices, Vectors, Determinants.
10.4 Matrix Algebra. 1. Matrix Notation A matrix is an array of numbers. Definition Definition: The Dimension of a matrix is m x n “m by n” where m =
Review of Eigenvectors and Eigenvalues from CliffsNotes Online mining-the-Eigenvectors-of-a- Matrix.topicArticleId-20807,articleId-
CHAPTER 7 Determinant s. Outline - Permutation - Definition of the Determinant - Properties of Determinants - Evaluation of Determinants by Elementary.
MATH 1046 Determinants (Section 4.2)
Linear Algebra With Applications by Otto Bretscher.
MAT 322: LINEAR ALGEBRA.
Review of Eigenvectors and Eigenvalues
Finding the Inverse of a Matrix
5 Systems of Linear Equations and Matrices
Chapter 8: Lesson 8.1 Matrices & Systems of Equations
Solving Systems Using Elimination
MATRICES MATRIX OPERATIONS.
Elementary Matrix Methid For find Inverse
MATRICES MATRIX OPERATIONS.
Determinant of a Matrix
ENM 500 Linear Algebra Review
6.3 Using Elimination to Solve Systems
DETERMINANT MATH 80 - Linear Algebra.
MATRICES MATRIX OPERATIONS.
MATRICES MATRIX OPERATIONS.
Presentation transcript:

1 Counting Perfect Matchings of a Graph It is hard in general to count the number of perfect matchings in a graph. But for planar graphs it can be done in polynomial time.

2 Pfaffian orientation of a graph: An orientation of a graph G is Pfaffian if every even cycle C such that G - V(C) has a perfect matching has an odd number of edges directed in either direction of the cycle.

3 To get a Pfaffian orientation of a planar graph [Proof of correctness due to Jerrum]. Orient each edge so that all faces except possibly the external one have an odd number of edges going clockwise. You can always get such an orientation by starting with an oriented tree, then adding edges that finish faces to satisfy this property.

4

5 Pick any spanning tree and you can orient those arcs arbitrarily.

6 Pick any edge so that it is on some face with all but one of its edges oriented. Orient it so an odd number of arcs are clockwise. Before 1, so blue arc must go counterclockwise.

7 Before 2, so blue arc must go clockwise. After: 3.

8 Before 1, so blue arc must go counterclockwise. After: 1.

9 Before 0, so new blue arc must be (f,g) which is a clockwise arc.

10 Before 1, so new blue arc must be (d,f) which is a counterclockwise arc.

11 Each internal face has an odd number of clockwise arcs as required.

12 A smaller example: Pffafian orientation

13 abcd a0+1+1 b00+1 c 00 d 0 If there is an arc (u,v) then position u,v is +1. If there is an arc (v,u) then position u,v is -1. If no arc: value is 0.

14 abcd a0+1+1 b00+1 c 00 d 0 [Number of perfect matchings] 2 = determinant

15 One way to think of the sign of a permutation: sign( σ) = (-1) s where the permutation σ can be sorted (turned into the identity permutation) by using s swap operations. How many swaps does it take to sort: ? Cycle structure notation (0123) How many to sort ? Cycle structure notation (01234) Even cycles contribute -1 to the sign. Odd cycles contribute +1 to the sign.

16

17 abcd a0+1+1 b00+1 c 00 d 0 Where do non-zero terms of the determinant come from? Sign term: (a b)(c d)  sign is +1 Recall: an even number of even cycles, sign +1.

18 abcd a0+1+1 b00+1 c 00 d 0 Sign term: (a b d c)  sign is -1 Recall: an odd number of even cycles, sign -1.

19 abcd a0+1+1 b00+1 c 00 d 0 Sign term: (a c d b)  sign is -1

20 abcd a0+1+1 b00+1 c 00 d 0 Sign term: (a c)(b d)  sign is -1.

21 abcd a0+1+1 b00+1 c 00 d 0 Remaining terms are zero.

22 The original graph has two perfect matchings.

23 BABA A BA B A BB

24 abc a01 b 01 c1 0 What happens with odd cycles?

25 abc a01 b 01 c1 0 Non-zero terms: (a b c) Sign is 1, 1* 1 * 1 * 1 = 1 (a c b) Sign is 1, 1* -1 * -1 * -1 = -1

26 The non-zero terms of the determinant consist of collections of cycles from the graph. Even Cycles: One even cycle has a contribution of: -1 for the sign term from the determinant, and it must also have an odd number of arcs going in the traversal direction because even cycles have an odd number of clockwise arcs and hence an odd number of counterclockwise ones and so there is another -1 arising from product of the +1/-1 contributions of its arcs. Final contribution: -1 * -1 = +1

27 Odd cycles: One odd cycle has a contribution of: +1 for the sign term from the determinant. Traversing an odd cycle in the two different orders always results in one -1 contribution and one +1 contribution no matter how the edges are directed since if it has an odd number of -1 edges going one way, it must have an even number going the other way. So the terms come in pairs that cancel each other out!

28 For each ordered pair (A,B) of matchings has a corresponding term in determinant. There is a bijection between the ordered pairs of matchings from the graph and the non-zero terms in the determinant that are not the ones cancelled out. With a Pfaffian orientation, the contributions are all +1 for each collection of even cycles. This is why the determinant is: (number of matchings) * (number of matchings)

29 The eigenvalues of the adjacency matrix A are the values such that Ax= x for some vector x. The come from solving det(A - I) = 0. The characteristic polynomial is a polynomial in which is det(A - I). For example: A path with two vertices has its characteristic polynomial equal to The coefficients of k in the characteristic polynomial are counting certain subgraphs of the graph in a manner similar to what we just did.

30

31

32... … … Each term has one red value so each terms is multiplied by c.

33... … … Add a constant times a row to another row.

34... … … … … The determinant is the sum of the determinants of these two matrices: But the determinant of the second one is 0 because it has two rows that are constant multiples of each other. So the determinant does not change.

35 Swapping two adjacent rows: multiplies the determinant by -1. So: apply Gaussian elimination to make the matrix upper triangular keeping track of what you have done to the determinant at each step. The determinant of an upper triangular matrix is the product of its diagonal entries.

36... … 0 …