TU Wien:Diskrete Mathematik für Informatik UE (Gittenberger)/Übungen WS13/Beispiel 11

Aus VoWi
Zur Navigation springen Zur Suche springen
Use the matrix tree theorem to compute the number of spanning forests of the graph below!

Step 1: Compute the number of spanning trees for component 1 (left).

A1=(011101110),D1=(200020002)=>D1−A1=(2−1−1−12−1−1−12)

Remove any row and any column and calculate the determinant. I remove row 1 and column 1.

|det(2−1−12)|=2⋅2−(−1)⋅(−1)=4−1=3

Step 2: Compute the number of spanning trees for component 2 (right).

A2=(0001100001000111010111110),D2=(2000001000002000003000004)=>D2−A2=(200−1−10100−1002−1−1−10−13−1−1−1−1−14)

Remove any row and any column and calculate the determinant. I remove row 5 and column 5 because it contains a lot of non-zero values. (Many zeros make it easier to calculate)

|det(200−10100002−1−10−13)|

I use the Laplace expansion along the second row to solve his. The second row has only 1 non-zero value and so it's fearly easy to calculate:

(−1)3⋅0⋅|det(00−102−10−13)|+(−1)4⋅1⋅|det(20−102−1−1−13)|+(−1)5⋅0⋅|det...|+(−1)6⋅0⋅|det...|


=1⋅|det(20−102−1−1−13)|


=12+0+0−2−0−2=8

Step 3: Multiply the results to get the total number of possible spanning forests: 8⋅3=24