DOC PREVIEW
UT Dallas CS 6385 - overall-minimum-cut

This preview shows page 1-2-3-4-29-30-31-32-33-60-61-62-63 out of 63 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 63 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 63 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 63 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 63 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 63 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 63 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 63 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 63 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 63 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 63 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 63 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 63 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 63 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 63 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Overall minimum cutThe ProblemExampleExampleImmediate SolutionTime for Min-CutImprovementRandomized SolutionMeaning of “contraction”Example:Example:Example:Example:Example:Is output min-cut?Is output min-cut?Is output min-cut?Is output min-cut?When is C a min-cut?Probability calculationProbability calculationProbability calculationProbability calculationProbability calculationProbability calculationThe Contraction AlgorithmSlide 27Slide 28ExercisesolutionAlgorithm 2 for min cutsSlide 32Slide 33Slide 34Slide 35Slide 36Most Tightly Connected VertexThe AlgorithmExampleExampleExampleExampleThe AlgorithmThe AlgorithmMerge(G,e,f)ExampleThe AlgorithmExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleSlide 66Theorem -2 (Harary)Theorem -2 (Harary)a. Harary Proof – such a graph can be constructeda. Harary Proof – such a graph can be constructedExerciseOverall minimum cut•The minimum cut between two specified nodes can be obtained as a byproduct of the maximum flow computation. If, however, we want an overall minimum cut in the whole graph, then a single maximum flow computation does not suffice. Interestingly, one can find an overall minimum cut directly, without using anything about maximum flows. Below we present two relaitvely simple algorithms.The ProblemINPUT: Undirected Graph G=(V,E)OUTPUT: A smallest-size set of edges such that G’=(V,E-E1) is not connected.EE 1ExampleACBDGEFExampleACBDGEFE1 = BEImmediate SolutionFor every pair of nodes s,t find the min-cut Ms,t Choose the pair <s,t> with the smallest Ms,t.Time= O(n² T(min-cut) )Time for Min-CutFord-Fulkerson: O(|E|flow)In our case: max flow ≤ nso: O(n² |E|n) = O(n² n³)This can be improvedImprovementWe don’t need all pairs.Why?Every node is in one side of a cut.Therefore: Fix node s. Try all other n-1 options as node t.Time: )(4nORandomized SolutionRepeat Until 2 nodes left:1. choose edge at random2. “contract” edgeWhen only 2 node left:Take all edges between them as the min-cut.Time: O(|E|)=O(n²)Meaning of “contraction”Make edge ab with its two adjacent nodes a,b into a single node ab.All edges of a and b will now be edges from ab (creating a multigraph).Example:ACBDGEFExample:ACBDGEFcontractExample:ACBDGEFcontractACBDEFGExample:ACBDGEFcontractACBDEFGcontractExample:ACBDGEFcontractACBDEFGcontractACB EFGDIs output min-cut?Not necessarily.Is it a cut?-yes.Is output min-cut?Not necessarily.Is it a cut?-yes.Could there be an edge between these sides that was deleted?Is output min-cut?Not necessarily.Is it a cut?-yes.No. The only deleted edges were within the contractions.Is output min-cut?Not necessarily.Is it a cut?-yes. cut C={e1,…,ec}No. The only deleted edges were within the contractions.When is C a min-cut?When none of the edges in C={e1,…,ec}are chosen to be contracted.What is the probability of that happening?Probability calculationNote: We can assume that degree of every node in graph throughout contraction process ≥ cProbability calculationNote: We can assume that degree of every node in graph throughout contraction process ≥ cOtherwise:Cut node and get cut of size < c.Probability calculationProbability that one of the C edges is chosen at first stage:Probability that one of the C edges is chosen after stage i ≤:Probability of not choosing an edge of C at stage i ≥: nnccEc22/incinc22/)(ininin 221Probability calculationNote: The algorithm has n-2 stages (at that point 2 nodes are left).Probability of not choosing an edge from C at any stage ≥ =)1)(1)(1()1)(1)(1)(1()3(2)4(2)5(23222122nnnnnnnnnn))()(())()()((3142533524132nnnnnnnnProbability calculationWhat do we have?))()(())()()((3142533524132nnnnnnnnProbability calculationWhat do we have?Telescope cancellations:=))()(())()()((3142533524132nnnnnnnn))()(())()()((3142533524132nnnnnnnn)(21)1(2nOnnThe Contraction Algorithm•Probability that smallest cut is not chosen is (1-1/n2)•Therefore, if we repeat the algorithm K times independently and choose the smallest of the found cuts, say C, then the following holds:Pr(C is not a minimum cut) ≤ ••If K is chosen as K = ln2, then the above probability will be approximately e-l, which is very small already for moderate values of l.•If l = 10, e-10 <.001•An interesting by-product of this algorithm is the theorem that the number of minimum cuts in a graph is at most n2, since each arises with at least 1/n2 probability in a run and these are mutually exclusive events. Note that the total number of different cuts may well be exponentially large, but only at most n2 of them can be minimum (actually, n2 is only an upper bound, the precise tight bound is n(n - 1)/2).Exercise•Give an example to show that the bound n(n - 1)/2 on the number of minimum cuts is tight (that is, it can hold with equality).solution•Consider a graph on n nodes which is a simple circle (ring). •It cannot be disconnected by removing a single edge, but it can be disconnected by removing 2 edges, so the minimum cut size is 2. •If we remove any 2 edges from the graph, it gets disconnected. Therefore, every pair of edges form a minimum cut. •Since there are n edges in a circle on n nodes, we can choose n(n-1)/2 different minimum cuts, which is exactly the bound on the number of minimum cuts. •Thus, in this case the bound holds with equality, which shows that it is tight.Algorithm 2 for min cuts•A Deterministic Algorithm for Minimum Cut: The Nagamochi-Ibaraki Algorithm•A simple deterministic algorithm for minimum cuts was discovered by Japanese researchers Nagamochi and Ibaraki. Recall that the (edge-)connectivity of a graph G is denoted by λ(G); and λ(x,y) denotes the connectivity between two different nodes x, y.•Let Gxy be the graph obtained from G by contracting (merging) nodes x, y.•In this operation we omit the possibly arising loop (if x, y are connected in G), but keep the parallel edges.•We can now use the following result:For any two nodes x, yλ(G) = min{ λ(x, y), λ(Gxy) } (1)•Thus, if we can find two nodes x, y for which λ(x, y) can be computed easily (without a flow computation), then the above formula yields a simple recursive algorithm.•One can indeed easily find such a pair x,y of nodes. This is done via the


View Full Document

UT Dallas CS 6385 - overall-minimum-cut

Documents in this Course
assn1

assn1

2 pages

38rel2

38rel2

5 pages

Report

Report

3 pages

networks

networks

18 pages

lp2

lp2

44 pages

lp2 (2)

lp2 (2)

27 pages

lp1(1)

lp1(1)

21 pages

integer1

integer1

50 pages

FrankR2

FrankR2

3 pages

duality

duality

28 pages

CMST

CMST

44 pages

hw4

hw4

3 pages

for 1

for 1

11 pages

ENCh02

ENCh02

33 pages

pree

pree

2 pages

new  3

new 3

2 pages

new  2

new 2

2 pages

hw4a

hw4a

2 pages

T2_Sol

T2_Sol

4 pages

ISM3

ISM3

8 pages

hw4_sol

hw4_sol

6 pages

Elm04_06

Elm04_06

11 pages

atn proj2

atn proj2

20 pages

12CUT1

12CUT1

8 pages

09Ford

09Ford

23 pages

08FLOW

08FLOW

6 pages

03LP_su

03LP_su

6 pages

40REL40

40REL40

5 pages

39rel3

39rel3

5 pages

38arel2

38arel2

5 pages

37REL1

37REL1

3 pages

24TABU

24TABU

3 pages

22DYNPR

22DYNPR

3 pages

21B&C

21B&C

2 pages

20BBEX0

20BBEX0

3 pages

19BB

19BB

5 pages

14CAPBUD0

14CAPBUD0

11 pages

35BRXCH

35BRXCH

2 pages

34COMB

34COMB

4 pages

32CAPAS

32CAPAS

4 pages

31QUEUE

31QUEUE

3 pages

Load more
Download overall-minimum-cut
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view overall-minimum-cut and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view overall-minimum-cut 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?