Neeldhara
  • About
  • Research
    • Overview
    • People
    • Publications
    • Surveys
  • Teaching
    • Courses
    • Materials
  • Lists
    • Puzzles
    • Bookmarks
  • Exposition
    • Talks
    • Videos
  • Events
  • Blog

CS614. Advanced Algorithms. L02 Quiz.

CS614. Advanced Algorithms.

L02 Solutions

Back to the course page

Problem 1. Identify the Circuits

Let GGG be a simple, undirected, and connected graph. Consider the graphic matroid discussed in class, i.e, where:

  • the universe UUU is the set of edges of GGG, i.e, E(G)E(G)E(G);
  • the family F\mathcal{F}F of independent sets is the collection of all subsets of edges that are acyclic.

A maximal independent set in a matroid is called a basis, and for this example, the maximal independent sets correspond to spanning trees.

A minimal dependent set in a matroid is called a circuit. In this example, what are the circuits?

Solution

The circuits of the graphic matroid are the cycles of the graph GGG.

Problem 2. Matchings

Let GGG be a simple, undirected, and connected graph. Consider the following set system:

  • the universe UUU is the set of edges of GGG, i.e, E(G)E(G)E(G);
  • the family F\mathcal{F}F of independent sets is the collection of all subsets of edges that are matchings.

Is this a matroid? Why or why not? Justify your answer.

Solution

Not a matroid: consider the graph on the vertex set {a,b,c,d}\{a,b,c,d\}{a,b,c,d} with the edges {ab,cd,ad}\{ab, cd, ad\}{ab,cd,ad}.

There are two matchings in this instance:

  • M1:={ab,cd}M_1 := \{ab,cd\}M1​:={ab,cd}
  • M2:{ad}M_2: \{ad\}M2​:{ad}

However, although ∣M1∣>∣M2∣|M_1| > |M_2|∣M1​∣>∣M2​∣, neither of the edges from M1M_1M1​ can be added to M2M_2M2​.

Problem 3. Independent Sets

Let GGG be a simple, undirected, and connected graph. Consider the following set system:

  • the universe UUU is the set of vertices of GGG, i.e, V(G)V(G)V(G);
  • the family F\mathcal{F}F of independent sets is the collection of all subsets SSS of that are independent in GGG, i.e, the subgraph G[S]G[S]G[S] has no edges.

Is this a matroid? Why or why not? Justify your answer.

Solution

Not a matroid: consider the graph on the vertex set {a,b,c}\{a,b,c\}{a,b,c} with the edges {ab,ac}\{ab, ac\}{ab,ac}. There are two independent sets: S1:={b,c}S_1 := \{b,c\}S1​:={b,c} and M2:{a}M_2: \{a\}M2​:{a}, but neither of the vertices from S1S_1S1​ can be added to S2S_2S2​.

If the independent sets formed a matroid the problem of finding a maximum independent set would not be NP-complete.

— Comment in class


© 2022 • Neeldhara Misra • Credits •

 

Corrections? Please leave a comment here or a PR in this repository, thanks!

I’d rather be a failure at something I love than a success at something I hate.

George Burns

You live and you learn — at any rate, you live.

Douglas Adams

A problem worthy of attack proves its worth by fighting back.

Paul Erdos

×