Pushing Lemma
Lett∈T. The Multiway Cutproblem has a solutionS that contains an important(t,T \t)-cut.
Proof: Let R be the vertices reachable fromt inG \S for a solutionS.
R t
δ(R)is not important, then there is an important cut δ(R0) with R ⊂R0 and|δ(R0)|≤ |δ(R)|. ReplaceS with
S0 := (S\δ(R))∪δ(R0) ⇒ |S0| ≤ |S|
S0 is a multiway cut: (1) There is not-u path inG\S0 and (2) a u-v path inG \S0 implies at-u path, a contradiction.
Multiway Cut and important cuts
19Pushing Lemma
Lett∈T. The Multiway Cutproblem has a solutionS that contains an important(t,T \t)-cut.
Proof: Let R be the vertices reachable fromt inG \S for a solutionS.
R0 R t
δ(R)is not important, then there is an important cut δ(R0) with R ⊂R0 and|δ(R0)|≤ |δ(R)|. ReplaceS with
S0 := (S\δ(R))∪δ(R0) ⇒ |S0| ≤ |S|
S0 is a multiway cut: (1) There is not-u path inG\S0 and (2) a u-v path inG \S0 implies at-u path, a contradiction.
Multiway Cut and important cuts
19Pushing Lemma
Lett∈T. The Multiway Cutproblem has a solutionS that contains an important(t,T \t)-cut.
Proof: Let R be the vertices reachable fromt inG \S for a
δ(R)is not important, then there is an important cut δ(R0) with R ⊂R0 and|δ(R0)|≤ |δ(R)|. ReplaceS with
S0 := (S\δ(R))∪δ(R0) ⇒ |S0| ≤ |S|
S0 is a multiway cut: (1) There is not-u path inG\S0 and (2) a u-v path inG \S0 implies a t-u path, a contradiction.
Multiway Cut and important cuts
19Pushing Lemma
Lett∈T. The Multiway Cutproblem has a solutionS that contains an important(t,T \t)-cut.
Proof: Let R be the vertices reachable fromt inG \S for a solutionS.
t u
R v R0
δ(R)is not important, then there is an important cut δ(R0) with R ⊂R0 and|δ(R0)|≤ |δ(R)|. ReplaceS with
S0 := (S\δ(R))∪δ(R0) ⇒ |S0| ≤ |S|
S0 is a multiway cut: (1) There is not-u path inG\S0 and (2) a u-v path inG \S0 implies a t-u path, a contradiction.
Multiway Cut and important cuts
191 If every vertex of T is in a different component, then we are done.
2 Let t∈T be a vertex that is not separated from everyT \t.
3 Branch on a choice of an important(t,T \t) cut S of size at most k.
4 Set G :=G\S andk :=k− |S|.
5 Go to step 1.
We branch into at most4k directions at most k times: 4k2·nO(1) running time.
Next: Better analysis gives 4k bound on the size of the search tree.
Algorithm for Multiway Cut
20We have seen: at most4k important cut of size at most k.
Proof: We show the stronger statement P
S∈S4−|S|≤2−λ, where λis the minimum(X,Y)-cut size.
Branch 1: removinguv.
λincreases by at most one and we add the edgeuv to each separator, increasing the cut by one. Thus the total contribution is
X
λincreases by at least one. Thus the total contribution is X
S∈S2
4−|S|≤2−(λ+1)=2−λ/2.
A refined bound
21Lemma
IfS is the set of all important(X,Y)-cuts, thenP
S∈S4−|S|≤1 holds.
Proof: We show the stronger statement P
S∈S4−|S|≤2−λ, where λis the minimum (X,Y)-cut size.
Branch 1: removinguv.
λincreases by at most one and we add the edgeuv to each separator, increasing the cut by one. Thus the total contribution is
X
λincreases by at least one. Thus the total contribution is X
S∈S2
4−|S|≤2−(λ+1)=2−λ/2.
A refined bound
21Lemma
The search tree for theMultiway Cutalgorithm has4k leaves.
Proof: Let Lk be the maximum number of leaves with parameter k. We proveLk ≤4k by induction. After enumerating the setSk of important separators of size≤k, we branch into|Sk|directions.
X
S∈Sk
4k−|S|=4k· X
S∈Sk
4−|S|≤4k
Still need: bound the work at each node.
Refined analysis for Multiway Cut
22We have seen:
Lemma
We can enumerate every important(X,Y)-cut of size at mostk in timeO(4k ·k·(|V(G)|+|E(G)|)).
Problem: running time at a node of the recursion tree is not linear in the number children.
Refined enumeration algorithms
23We have seen:
Lemma
We can enumerate every important(X,Y)-cut of size at mostk in timeO(4k ·k·(|V(G)|+|E(G)|)).
Problem: running time at a node of the recursion tree is not linear in the number children.
Easily follows:
Lemma
We can enumerate a supersetSk0 of every important (X,Y)-cut of size at mostk in timeO(|Sk0| ·k2·(|V(G)|+|E(G)|))such that P
S∈Sk0 4−|S|≤1holds.
Refined enumeration algorithms
23We have seen:
Lemma
We can enumerate every important(X,Y)-cut of size at mostk in timeO(4k ·k·(|V(G)|+|E(G)|)).
Problem: running time at a node of the recursion tree is not linear in the number children.
Needs more work:
Lemma
We can enumerate the setSk of every important (X,Y)-cut of size at mostk in time O(|Sk| ·k2·(|V(G)|+|E(G)|)).
Refined enumeration algorithms
23Theorem
Multiway Cutcan be solved in time O(4k ·k3·(|V(G)|+|E(G)|)).
1 If every vertex of T is in a different component, then we are done.
2 Let t∈T be a vertex that is not separated from everyT \t.
3 Branch on a choice of an important(t,T \t) cut S of size at most k.
4 Set G :=G\S andk :=k− |S|.
5 Go to step 1.
Algorithm for Multiway Cut
24Lemma:
At mostk·4k edges incident to t can be part of an inclusionwise minimals−t cut of size at most k.
Proof: We show that every such edge is contained in an important (s,t)-cut of size at mostk.
Suppose thatvt ∈δ(R) and|δ(R)|=k.
There is an important(s,t)-cutδ(R0)withR ⊆R0 and|δ(R0)|≤k. Clearly,vt ∈δ(R0): v ∈R, hencev ∈R0.
Simple application
25Lemma:
At mostk·4k edges incident to t can be part of an inclusionwise minimals−t cut of size at most k.
Proof: We show that every such edge is contained in an important (s,t)-cut of size at mostk.
v
R t
s
Suppose thatvt ∈δ(R) and|δ(R)|=k.
There is an important(s,t)-cutδ(R0)withR ⊆R0 and|δ(R0)|≤k. Clearly,vt ∈δ(R0): v ∈R, hencev ∈R0.
Simple application
25Lemma:
At mostk·4k edges incident to t can be part of an inclusionwise minimals−t cut of size at most k.
Proof: We show that every such edge is contained in an important (s,t)-cut of size at mostk.
v R
R0
s t
Suppose thatvt ∈δ(R) and|δ(R)|=k.
There is an important(s,t)-cutδ(R0)withR ⊆R0 and|δ(R0)|≤k.
Clearly,vt ∈δ(R0): v ∈R, hencev ∈R0.
Simple application
25Lets,t1, . . . ,tn be vertices andS1, . . . ,Sn be sets of at mostk edges such thatSi separates ti froms, butSi does notseparatetj froms for any j 6=i.
It is possible thatn is “large” even ifk is “small.”
s
Is the opposite possible, i.e.,Si separates everytj except ti? Lemma
IfSi separatestj froms if and only j 6=i and every Si has size at mostk, then n≤(k+1)·4k+1.
Proof: Add a new vertex t. Every edge tti is part of an
(inclusionwise minimal)(s,t)-cut of size at mostk+1. Use the previous lemma.
Anti isolation
26Lets,t1, . . . ,tn be vertices andS1, . . . ,Sn be sets of at mostk edges such thatSi separates ti froms, butSi does notseparatetj froms for any j 6=i.
It is possible thatn is “large” even ifk is “small.”
s
Is the opposite possible, i.e.,Si separates everytj except ti? Lemma
IfSi separatestj froms if and only j 6=i and every Si has size at mostk, then n≤(k+1)·4k+1.
Proof: Add a new vertex t. Every edge tti is part of an
(inclusionwise minimal)(s,t)-cut of size at mostk+1. Use the previous lemma.
Anti isolation
26Lets,t1, . . . ,tn be vertices andS1, . . . ,Sn be sets of at mostk edges such thatSi separates ti froms, butSi does notseparatetj froms for any j 6=i.
It is possible thatn is “large” even ifk is “small.”
s
Is the opposite possible, i.e.,Si separates everytj except ti? Lemma
IfSi separatestj froms if and only j 6=i and every Si has size at mostk, then n≤(k+1)·4k+1.
Proof: Add a new vertex t. Every edge tti is part of an
(inclusionwise minimal)(s,t)-cut of size at mostk+1. Use the previous lemma.
Anti isolation
26Lets,t1, . . . ,tn be vertices andS1, . . . ,Sn be sets of at mostk edges such thatSi separates ti froms, butSi does notseparatetj froms for any j 6=i.
It is possible thatn is “large” even ifk is “small.”
s
Is the opposite possible, i.e.,Si separates everytj except ti? Lemma
IfSi separatestj froms if and only j 6=i and every Si has size at mostk, then n≤(k+1)·4k+1.
Proof: Add a new vertex t. Every edge tti is part of an
(inclusionwise minimal)(s,t)-cut of size at mostk+1. Use the previous lemma.
Anti isolation
26Lets,t1, . . . ,tn be vertices andS1, . . . ,Sn be sets of at mostk edges such thatSi separates ti froms, butSi does notseparatetj froms for any j 6=i.
It is possible thatn is “large” even ifk is “small.”
s
Is the opposite possible, i.e.,Si separates everytj exceptti?
Lemma
IfSi separatestj froms if and only j 6=i and every Si has size at mostk, then n≤(k+1)·4k+1.
Proof: Add a new vertex t. Every edge tti is part of an
(inclusionwise minimal)(s,t)-cut of size at mostk+1. Use the previous lemma.
Anti isolation
26Lets,t1, . . . ,tn be vertices andS1, . . . ,Sn be sets of at mostk edges such thatSi separates ti froms, butSi does notseparatetj froms for any j 6=i.
It is possible thatn is “large” even ifk is “small.”
s
Is the opposite possible, i.e.,Si separates everytj exceptti?
Lemma
IfSi separatestj froms if and only j 6=i and every Si has size at mostk, then n≤(k+1)·4k+1.
Proof: Add a new vertex t. Every edge tti is part of an
(inclusionwise minimal)(s,t)-cut of size at mostk+1. Use the previous lemma.
Anti isolation
26Lets,t1, . . . ,tn be vertices andS1, . . . ,Sn be sets of at mostk edges such thatSi separates ti froms, butSi does notseparatetj froms for any j 6=i.
It is possible thatn is “large” even ifk is “small.”
s
Is the opposite possible, i.e.,Si separates everytj exceptti?
Lemma
IfSi separatestj froms if and only j 6=i and every Si has size at mostk, then n≤(k+1)·4k+1.
Proof: Add a new vertex t. Every edge tti is part of an
(inclusionwise minimal)(s,t)-cut of size at mostk+1. Use the previous lemma.
Anti isolation
26Lets,t1, . . . ,tn be vertices andS1, . . . ,Sn be sets of at mostk edges such thatSi separates ti froms, butSi does notseparatetj froms for any j 6=i.
It is possible thatn is “large” even ifk is “small.”
s
Is the opposite possible, i.e.,Si separates everytj exceptti? Lemma
IfSi separatestj froms if and only j 6=i and everySi has size at mostk, thenn ≤(k+1)·4k+1.
Proof: Add a new vertex t. Every edge tti is part of an
(inclusionwise minimal)(s,t)-cut of size at mostk+1. Use the previous lemma.
Anti isolation
26t1 t2 t3 t4 t5 t6
s t
S3
Is the opposite possible, i.e.,Si separates everytj exceptti? Lemma
IfSi separatestj froms if and only j 6=i and everySi has size at mostk, thenn ≤(k+1)·4k+1.
Proof: Add a new vertex t. Every edge tti is part of an
(inclusionwise minimal)(s,t)-cut of size at mostk+1. Use the previous lemma.
Anti isolation
26s
Is the opposite possible, i.e.,Si separates everytj exceptti? Lemma
IfSi separatestj froms if and only j 6=i and everySi has size at mostk, thenn ≤(k+1)·4k+1.
Proof: Add a new vertex t. Every edge tti is part of an
(inclusionwise minimal)(s,t)-cut of size at mostk+1. Use the previous lemma.
Anti isolation
26s
Is the opposite possible, i.e.,Si separates everytj exceptti? Lemma
IfSi separatestj froms if and only j 6=i and everySi has size at mostk, thenn ≤(k+1)·4k+1.
Proof: Add a new vertex t. Every edge tti is part of an
(inclusionwise minimal)(s,t)-cut of size at mostk+1. Use the previous lemma.