Graph theory Flashcards
Define augmenting path
An alternating path between matched and unmatched edges starting and ending at a unmatched edge/exposed vertex.
What is a spanning tree
Spanning tree is a subgraph of G with all vertices remained and with no cycles.
A graph contains an augmenting path if and only if..
The matching is not maximal
A graph has an augmenting path if and only if (think of Blossoms)
the contracted graph has an augmenting path.
Define spanning subgraph
A subset of edges from G. All vertices are a part of the subgraph.
A perfect matching is a spanning subgraph.
Define symmetric difference
Set of edges that appears in one of the sets but not both: AΔB≔(A∪B)\(A∩B)
What is a matching number?
a’(G) is the maximal number of edges in a matching in a graph.
What is a covering?
A subset of vertices K⊆V such that every edge is covered by a vertex of K
What is the covering number?
β(G) is the minimum number of vertices to cover G.
What is the relationship between matching number and covering number?
For a matching M and a covering K: |M|≤|K|, α’(G)≤β(G).
State Berg’s theorem.
Non-existence of augmenting path implies optimality. (maximum matching)
State König-Egervárys theorem
For every bipartite graph, α’(G)=β(G)
Proof: Is intuitively correct since a vertex can at most cover 1 edges of M (else M wouldn’t be a matching), so you simply just choose for every matched edge the endpoint with most neighbors.
Describe the APS alg.
An algorithm for finding M augmenting path. Or a maximal M-covered u tree.
Describe Dijkstra’s algorithm (learn how to run it)
Algorithm for shortest distance between two given vertices in af graph of positives lengths. Do not work on graph with negative weight
What is Warshall’s algorithm?
Discuss how shortest distance can be found in digraphs even with negative weight. If there is not directed path between two vertices we say their distance is ∞.
What is the transitive closure of G?
The graph G with all edges between vertices if there exists a directed path between these two vertices.
What is Bellman-Ford algorithm?
Shortest distance algorithm even when weights are negative. But require no cycles of negative length. We find all smallest distances from some vertex s to every other vertex.
What is Floyd’s algorithm?
In digraph with no cycle of negative length, we can find the distance matrix of G. We keep track of found distance and update when we find a shorter distance.
State handshaking lemma
A graph always have an even number of odd vertices.
(each edge contributes 2 to the degree count)
The total degree count is always even
- Vertices of even degree contributes with an even degree count to the sum
- Vertices of odd degree contributes with an odd number to the sum
Since the sum is even, we must have an even number of odd vertices.
Define a walk
A sequence of edge in G, where vertices and edges are allowed to repeat.
Define a path
A open walk where edges and vertices do not repeat
Define a tour and Euler tour
Tour: A closed walk where each edge is walked at least once.
Euler tour: A closed walk where each edge is walk exactly once. An Eulerian tour will always be optimal CPT.
What is the idea behind Perfect Matching Polytope
PMP helps us find a perfect/maximal matching by solving a ILP problem.
What is the characteristic vector?
χ_M∈R^E with coordinates (χ_M )_e= 1 if e in M and 0 if e notin M