CS614. Advanced Algorithms. L03 Solutions.
CS614. Advanced Algorithms.
L03 Solutions
Show that the exchange axiom holds for the Partition Matroid defined in class.
Let (U:=U1∪⋯∪Uℓ,F) be a partition matroid with budgets a1,…,aℓ.
Suppose S,T⊆U1∪⋯∪Uℓ such that S,T∈F, and ∣T∣>∣S∣.
Then, there exists at least one part Ui where ∣T∩Ui∣>∣S∩Ui∣. Now let x∈(T∖S)∩Ui. Note that S∪{x}∈F since:
∣S∩Uj∣={<aj⩽ajif j=i,otherwise.
and therefore:
∣(S∪{x})∩Uj∣={∣S∩Ui∣+1⩽aj⩽ajif j=i,otherwise.
The graphic matroid of a graph G can be represented by the following matrix: we have one row for each vertex, and one column for each edge. The column for edge e has +1 in the row for one endpoint, −1 in the row for the other endpoint, and 0 elsewhere; the choice of which endpoint to give which sign is arbitrary.
Argue that this is a valid representation (i.e, that the forests correspond to linearly independent columns and the subsets of edges that have cycles in them correspond to dependent columns).
Suppose we have a subset of edges that contains a cycle. For simplicity, suppose the cycle is given by:
{pq,qr,rs,st}
Now consider the column vectors cp,cq,cr,cs:
⎣⎡cp1−100cq01−10cr00−11cs−1001⎦⎤Note that:
1⋅cp+1⋅cq+(−1)⋅cr+1⋅cs
is a linear combination with constants (1,1,−1,1) that establish that these vectors are linearly dependent. In general, write down the columns in the order in which they appear on the cycle. If the first entry in the column is not +1, then multiply the column by −1 (except the last column, where we do the reverse: if the first entry is +1, then we multiply the column by −1). This way, we have a situation where every row contains exactly one +1 entry and one −1 entry, and the linear combination sums to 0.
This shows that dependent subsets of the matroid correspond to linearly dependent columns of M.
To see that independent subsets S⊆E(G) correspond to linearly independent columns, consider the set of columns that correspond to S:
\{c_e ~|~ e \in S\ }
Suppose, for the sake of contradiction, that there was some non-trivial linear combination of these columns that vanished, i.e, for non-empty subset T⊆S, there exist constants {αe}e∈T where:
e∈T∑αece=0
But now consider the subgraph consisting of the edges in T. Note that the minimum degree of T must be two (suppose u∈T has degree one, and its unique neighbor is v: then consider the entry in the row corresponding to u in the column corresponding to the edge uv: this is non-zero and there is no cancelation possible in the sum above). However, a graph whose minimum degree is two cannot be acyclic, and this is a contradiction.