Download presentation
Presentation is loading. Please wait.
Published byKerry Parsons Modified over 9 years ago
1
1 Min-cut for Undirected Graphs Given an undirected graph, a global min-cut is a cut (S,V-S) minimizing the number of crossing edges, where a crossing edge is an edge (u,v) s.t. u ∊S and v∊ V-S. S V - S
2
2 Graph Contraction For an undirected graph G, we can construct a new graph G’ by contracting two vertices u, v in G as follows: – u and v become one vertex {u,v} and the edge (u,v) is removed; – the other edges incident to u or v in G are now incident on the new vertex {u,v} in G’; Note: There may be multi-edges between two vertices. We just keep them. u v a b c d e {u,v} a b c d e Graph G Graph G’
3
3 A D B C contract Karger’s Min-cut Algorithm C is a cut, but not necessarily a min-cut. A D B C (i) Graph G (ii) Contract nodes C and D (iii) contract nodes A and CD A B CD contract B ACD (Iv) Cut C={(A,B), (B,C), (B,D)} Note: C is a cut but not necessarily a min-cut.
4
Example
5
Example Cont.
6
6 Karger’s Min-cut Algorithm For i = 1 to 100n 2 repeat randomly pick an edge (u,v) contract u and v until two vertices are left c i ← the number of edges between them Output mini c i
7
7 Analysis Fact 1: If degree(u) denotes the number of edges touching node u, then Proof: easy Fact 2: If there are n nodes, then the average degree of a node is 2|E |/n. Proof: This is a straightforward calculation: when you pick a node X at random,
8
8 Analysis Cont. Fact 3: The size of the minimum cut is at most 2|E |/n. Proof: Consider the partition of V into two pieces, one containing a single node u, and the other containing the remaining n - 1 nodes. The size of this cut is degree(u). Since this is a valid cut, the minimum cut cannot be bigger than this. In other words, for all nodes u, (size of minimum cut) <= degree(u). This means that the size of the minimum cut is also <= the average degree, which we’ve seen is 2|E |/n.
9
9 Analysis Cont. Fact 4: If an edge is picked at random, the probability that it lies across the minimum cut is at most 2/n. Proof: Follow Class Lecture
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.