• Nem Talált Eredményt

Important separators and parameterized algorithms

N/A
N/A
Protected

Academic year: 2022

Ossza meg "Important separators and parameterized algorithms"

Copied!
61
0
0

Teljes szövegt

(1)

Important separators and parameterized algorithms

Dániel Marx1

1Institute for Computer Science and Control, Hungarian Academy of Sciences (MTA SZTAKI)

Budapest, Hungary

School on Parameterized Algorithms and Complexity

(2)

Definition: δ(R)is the set of edges with exactly one endpoint inR. Definition: A setS of edges is aminimal (X,Y)-cutif there is no X−Y path inG\S and no proper subset ofS breaks everyX−Y path.

Observation: Every minimal(X,Y)-cutS can be expressed asS = δ(R)for some X ⊆R andR∩Y =∅.

R δ(R) X Y

(3)

Definition

A minimal(X,Y)-cutδ(R)is importantif there is no(X,Y)-cut δ(R0) withR ⊂R0 and|δ(R0)|≤ |δ(R)|.

Note: Can be checked in polynomial time if a cut is important (δ(R) is important ifR =Rmax).

R δ(R) X Y

(4)

Definition

A minimal(X,Y)-cutδ(R)is importantif there is no(X,Y)-cut δ(R0) withR ⊂R0 and|δ(R0)|≤ |δ(R)|.

Note: Can be checked in polynomial time if a cut is important (δ(R) is important ifR =Rmax).

R0 δ(R)

R

δ(R0)

X Y

(5)

Definition

A minimal(X,Y)-cutδ(R)is importantif there is no(X,Y)-cut δ(R0) withR ⊂R0 and|δ(R0)|≤ |δ(R)|.

Note: Can be checked in polynomial time if a cut is important (δ(R) is important ifR =Rmax).

R δ(R)

X Y

(6)

Theorem

There are at most4k important(X,Y)-cuts of size at mostk.

R δ(R)

X Y

(7)

Lemma:

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.

(8)

Lemma:

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.

(9)

Lemma:

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.

(10)

Lets,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

t6

t5

t4

t3

t2

t1

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.

(11)

Lets,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

t6

t5

t4

t3

t2

t1

S1

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.

(12)

Lets,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

t6

t5

t4

t3

t2

t1

S2

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.

(13)

Lets,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

t6

t5

t4

t3

t2

t1

S3

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.

(14)

Lets,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

t6

t5

t4

t3

t2

t1

S1

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.

(15)

Lets,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

t6

t5

t4

t3

t2

t1

S2

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.

(16)

Lets,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

t6

t5

t4

t3

t2

t1

S3

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.

(17)

Lets,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

t6

t5

t4

t3

t2

t1

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.

(18)

t1 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.

(19)

s

t6

t5

t4

t3

t2

t1

t

S2

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.

(20)

s

t6 t5 t4 t3 t2 t1

t

S1

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.

(21)

Lemma

IfSi separatestj froms if and only j 6=i and everySi has size at mostk, thenn ≤(k+1)·4k+1.

Lower bound: in a binary tree of heightk, any of the2k leaves can be the only reachable leaf after removingk edges.

s

(22)

Definition: Amultiway cut of a set of terminalsT is a setS of edges such that each component ofG\S contains at most one vertex ofT.

Multiway Cut

Input: GraphG, setT of vertices, inte- gerk

Find: Amultiway cutS of at most k

edges. t4

t5

t4

t3

t2

t1

Polynomial for|T|=2, but NP-hard for any fixed |T| ≥3 .

(23)

Definition: Amultiway cut of a set of terminalsT is a setS of edges such that each component ofG\S contains at most one vertex ofT.

Multiway Cut

Input: GraphG, setT of vertices, inte- gerk

Find: Amultiway cutS of at most k

edges. t4

t5

t4

t3

t2

t1

Theorem

Multiway Cuton planar graphs can be solved in time 2O(|T|)·nO(

|T|).

Theorem

Multiway Cuton planar graphs is W[1]-hard parameterized by

(24)

Definition: Amultiway cut of a set of terminalsT is a setS of edges such that each component ofG\S contains at most one vertex ofT.

Multiway Cut

Input: GraphG, setT of vertices, inte- gerk

Find: Amultiway cutS of at most k

edges. t4

t5

t4

t3

t2

t1

Trivial to solve in polynomial time for fixedk (in time nO(k)).

Theorem

Multiway cutcan be solved in time4k ·nO(1), i.e., it is

fixed-parameter tractable (FPT) parameterized by the sizek of the solution.

(25)

Pushing Lemma

Lett∈T. The Multiway Cutproblem has a solutionS that contains an important(t,T \t)-cut.

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.

We can give a4k bound on the size of the search tree.

(26)

Multicut

Input: GraphG, pairs(s1,t1),. . .,(s`,t`), integerk

Find: A set S of edges such that G\S has no si-ti path for any i.

Theorem

Multicutcan be solved in timef(k, `)·nO(1) (FPT parameterized by combined parametersk and`).

Proof: The solution partitions{s1,t1, . . . ,s`,t`}into components. Guess this partition, contract the vertices in a class, and solve Multiway Cut.

Much more involved: Theorem

Multicutis FPT parameterized by the sizek of the solution.

(27)

Multicut

Input: GraphG, pairs(s1,t1),. . .,(s`,t`), integerk

Find: A set S of edges such that G\S has no si-ti path for any i.

Theorem

Multicutcan be solved in timef(k, `)·nO(1) (FPT parameterized by combined parametersk and`).

Proof: The solution partitions{s1,t1, . . . ,s`,t`}into components.

Guess this partition, contract the vertices in a class, and solve Multiway Cut.

Much more involved: Theorem

Multicutis FPT parameterized by the sizek of the solution.

(28)

Multicut

Input: GraphG, pairs(s1,t1),. . .,(s`,t`), integerk

Find: A set S of edges such that G\S has no si-ti path for any i.

Theorem

Multicutcan be solved in timef(k, `)·nO(1) (FPT parameterized by combined parametersk and`).

Proof: The solution partitions{s1,t1, . . . ,s`,t`}into components.

Guess this partition, contract the vertices in a class, and solve Multiway Cut.

Much more involved:

Theorem

Multicutis FPT parameterized by the sizek of the solution.

(29)

Definition: ~δ(R) is the set of edgesleavingR.

Observation: Every inclusionwise-minimal directed (X,Y)-cutS can be expressed asS =~δ(R) for some X ⊆R andR∩Y =∅.

Definition: A minimal(X,Y)-cut~δ(R) isimportant if there is no (X,Y)-cut~δ(R0)with R ⊂R0 and|~δ(R0)|≤ |~δ(R)|.

R

~δ(R)

Y X

(30)

Definition: ~δ(R) is the set of edgesleavingR.

Observation: Every inclusionwise-minimal directed (X,Y)-cutS can be expressed asS =~δ(R) for some X ⊆R andR∩Y =∅.

Definition: A minimal(X,Y)-cut~δ(R) isimportant if there is no (X,Y)-cut~δ(R0)with R ⊂R0 and|~δ(R0)|≤ |~δ(R)|.

R0

~δ(R0)

R

~δ(R)

Y X

(31)

Definition: ~δ(R) is the set of edgesleavingR.

Observation: Every inclusionwise-minimal directed (X,Y)-cutS can be expressed asS =~δ(R) for some X ⊆R andR∩Y =∅.

Definition: A minimal(X,Y)-cut~δ(R) isimportant if there is no (X,Y)-cut~δ(R0)with R ⊂R0 and|~δ(R0)|≤ |~δ(R)|.

The proof for the undirected case goes through for the directed case:

Theorem

There are at most4k importantdirected(X,Y)-cuts of size at mostk.

(32)

The undirected approach does not work: the pushing lemma is not true.

Pushing Lemma (for undirected graphs)

Lett∈T. The Multiway Cutproblem has a solutionS that contains an important(t,T \t)-cut.

Directed counterexample:

s t

a

b

Unique solution with k = 1 edges, but it is not an important cut (boundary of{s,a}, but the boundary of{s,a,b} has same size).

(33)

The undirected approach does not work: the pushing lemma is not true.

Pushing Lemma (for undirected graphs)

Lett∈T. The Multiway Cutproblem has a solutionS that contains an important(t,T \t)-cut.

Directed counterexample:

s t

a

b

Unique solution with k = 1 edges, but it is not an important cut (boundary of{s,a}, but the boundary of{s,a,b} has same size).

(34)

The undirected approach does not work: the pushing lemma is not true.

Pushing Lemma (for undirected graphs)

Lett∈T. The Multiway Cutproblem has a solutionS that contains an important(t,T \t)-cut.

Directed counterexample:

b a

t s

Unique solution with k = 1 edges, but it is not an important cut (boundary of{s,a}, but the boundary of{s,a,b} has same size).

(35)

The undirected approach does not work: the pushing lemma is not true.

Pushing Lemma (for undirected graphs)

Lett∈T. The Multiway Cutproblem has a solutionS that contains an important(t,T \t)-cut.

Problem in the undirected proof:

v t u

R

R0

Replacing R by R0 cannot create a t → u path, but can create a u→t path.

(36)

The undirected approach does not work: the pushing lemma is not true.

Pushing Lemma (for undirected graphs)

Lett∈T. The Multiway Cutproblem has a solutionS that contains an important(t,T \t)-cut.

Using additional techniques, one can show:

Theorem

Directed Multiway Cutis FPT parameterized by the sizek of the solution.

(37)

Directed Multicut

Input: GraphG, pairs(s1,t1),. . .,(s`,t`), integerk

Find: A setS of edges such thatG\S has nosi →ti path for any i.

Theorem

Directed Multicutis W[1]-hard parameterized by k.

(38)

Directed Multicut

Input: GraphG, pairs(s1,t1),. . .,(s`,t`), integerk

Find: A setS of edges such thatG\S has nosi →ti path for any i.

Theorem

Directed Multicutis W[1]-hard parameterized by k.

But the case`=2can be reduced toDirected Multiway Cut:

t1 s1

t2 s2

(39)

Directed Multicut

Input: GraphG, pairs(s1,t1),. . .,(s`,t`), integerk

Find: A setS of edges such thatG\S has nosi →ti path for any i.

Theorem

Directed Multicutis W[1]-hard parameterized by k.

But the case`=2can be reduced toDirected Multiway Cut:

x y

s2 t2

s1 t1

(40)

Directed Multicut

Input: GraphG, pairs(s1,t1),. . .,(s`,t`), integerk

Find: A setS of edges such thatG\S has nosi →ti path for any i.

Theorem

Directed Multicutis W[1]-hard parameterized by k.

But the case`=2can be reduced toDirected Multiway Cut:

x y

s2 t2

s1 t1

(41)

Directed Multicut

Input: GraphG, pairs(s1,t1),. . .,(s`,t`), integerk

Find: A setS of edges such thatG\S has nosi →ti path for any i.

Theorem

Directed Multicutis W[1]-hard parameterized by k.

Corollary

Directed Multicutwith `=2is FPT parameterized by the sizek of the solution.

Open questions:

?

IsDirected Multicut with `=3FPT?

IsDirected Multicut FPT parameterized by k and`?

(42)

Directed Multicut

Input: GraphG, pairs(s1,t1),. . .,(s`,t`), integerk

Find: A setS of edges such thatG\S has nosi →ti path for any i.

Theorem

Directed Multicutis W[1]-hard parameterized by k on DAGs.

Theorem

Directed Multicutis NP-hard for `=2 on DAGs.

Theorem

Directed Multicutis FPT parameterized by k and`on DAGs.

(43)

Skew Multicut

Input: GraphG, pairs(s1,t1),. . .,(s`,t`), integer k Find: A setS of k directed edges such that G\S con-

tains nosi →tj path for any i ≥j.

t4 t3 t2 t1

s4 s3 s2 s1

(44)

Skew Multicut

Input: GraphG, pairs(s1,t1),. . .,(s`,t`), integer k Find: A setS of k directed edges such that G\S con-

tains nosi →tj path for any i ≥j.

t4 t3 t2 t1

s4 s3 s2 s1

Pushing Lemma

Skew Multicutproblem has a solution S that contains an important(s`,{t1, . . . ,t`})-cut.

(45)

Skew Multicut

Input: GraphG, pairs(s1,t1),. . .,(s`,t`), integer k Find: A setS of k directed edges such that G\S con-

tains nosi →tj path for any i ≥j.

t4 t3 t2 t1

s4 s3 s2 s1

Pushing Lemma

Skew Multicutproblem has a solution S that contains an important(s`,{t1, . . . ,t`})-cut.

Theorem

k O(1)

(46)

Pushing Lemma

Skew Multicutproblem has a solution S that contains an important(s`,{t1, . . . ,t`})-cut.

Proof: Similar to the undirected pushing lemma. Let R be the vertices reachable fromt inG \S for a solutionS.

s` t`

t1

t2

. . . R

δ(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 skew multicut: (1) There is nos`-tj path in G\S0 for any j and (2) asi-tj path inG \S0 implies a s`-tj path, a contradiction.

(47)

Pushing Lemma

Skew Multicutproblem has a solution S that contains an important(s`,{t1, . . . ,t`})-cut.

Proof: Similar to the undirected pushing lemma. Let R be the vertices reachable fromt inG \S for a solutionS.

s` t`

t1

t2

. . . R

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 skew multicut: (1) There is nos`-tj path in G\S0 for any j and (2) asi-tj path inG \S0 implies a s`-tj path, a contradiction.

(48)

Pushing Lemma

Skew Multicutproblem has a solution S that contains an important(s`,{t1, . . . ,t`})-cut.

Proof: Similar to the undirected pushing lemma. Let R be the vertices reachable fromt inG \S for a solutionS.

s` t`

t1

t2

. . . si

R

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 skew multicut: (1) There is nos`-tj path in G\S0 for any j and (2) asi-tj path inG \S0 implies a s`-tj path, a contradiction.

(49)

Pushing Lemma

Skew Multicutproblem has a solution S that contains an important(s`,{t1, . . . ,t`})-cut.

Proof: Similar to the undirected pushing lemma. Let R be the vertices reachable fromt inG \S for a solutionS.

s` t`

t1

t2

. . . si

R

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 skew multicut: (1) There is nos`-tj path in G\S0 for any j

0

(50)

Directed Feedback Vertex/Edge Set Input: Directed graphG, integer k

Find: A setSofkvertices/edges such thatG\S is acyclic.

Note: Edge and vertex versions are equivalent, we will consider the edge version here.

Theorem

Directed Feedback Edge Setis FPT parameterized by the sizek of the solution.

Solution uses the technique of

it er

ative compression.

(51)

Directed Feedback Edge Set Compression Input: Directed graphG, integer k,

a set W of k+1 edges such that G\W is acyclic

Find: A set S of k edges such that G \S is acyclic.

Easier than the original problem, as the extra inputW gives us useful structural information aboutG.

Lemma

The compression problem is FPT parameterized byk.

A useful trick for edge deletion problems: we define the

compression problem in a way that a solution ofk+1 vertices are given and we have to find a solution ofk edges.

(52)

Directed Feedback Edge Set Compression Input: Directed graphG, integer k,

a setW ofk+1verticessuch thatG\W is acyclic

Find: A set S of k edges such that G \S is acyclic.

Easier than the original problem, as the extra inputW gives us useful structural information aboutG.

Lemma

The compression problem is FPT parameterized byk.

A useful trick for edge deletion problems: we define the

compression problem in a way that a solution ofk+1 verticesare given and we have to find a solution ofk edges.

(53)

Proof: Let W ={w1, . . . ,wk+1} Let us split eachwi into an edge−→

tisi.

t4 s1

t1 t2s2 t3s3 s4

By guessing the order of {w1, . . . ,wk+1} in the acyclic ordering of G\S, we can assume thatw1 <w2 <· · ·<wk+1 in G\S [(k+1)!possibilities].

⇒We can solve the compression problem by (k+1)!applications ofSkew Multicut.

(54)

Proof: Let W ={w1, . . . ,wk+1} Let us split eachwi into an edge−→

tisi.

t4 s1

t1 t2s2 t3s3 s4 Claim:

G \S is acyclic and has an ordering with w1 <w2 <· · ·<wk+1

S covers every si →tj path for every i ≥j

⇓ G\S is acyclic

⇒We can solve the compression problem by (k+1)!applications ofSkew Multicut.

(55)

Proof: Let W ={w1, . . . ,wk+1} Let us split eachwi into an edge−→

tisi.

s4 t3s3 t2s2

t1s1 t4

Claim:

G \S is acyclic and has an ordering with w1 <w2 <· · ·<wk+1

S covers every si →tj path for every i ≥j

⇓ G\S is acyclic

⇒We can solve the compression problem by (k+1)!applications ofSkew Multicut.

(56)

Proof: Let W ={w1, . . . ,wk+1} Let us split eachwi into an edge−→

tisi.

s4 t3s3 t2s2

t1s1 t4

Claim:

G \S is acyclic and has an ordering with w1 <w2 <· · ·<wk+1

S covers every si →tj path for every i ≥j

⇓ G\S is acyclic

⇒We can solve the compression problem by (k+1)!applications

of .

(57)

We have given af(k)nO(1) algorithm for the following problem:

Directed Feedback Edge Set Compression Input: Directed graphG, integer k,

a setW ofk+1 vertices such thatG\W is acyclic

Find: A set S of k edges such that G \S is acyclic.

Nice, but how do we get a solutionW of size k+1?

We get it for free!

Powerful technique:

it er

ative compression.

(58)

We have given af(k)nO(1) algorithm for the following problem:

Directed Feedback Edge Set Compression Input: Directed graphG, integer k,

a setW ofk+1 vertices such thatG\W is acyclic

Find: A set S of k edges such that G \S is acyclic.

Nice, but how do we get a solutionW of size k+1?

We get it for free!

Powerful technique:

it er

ative compression.

(59)

Letv1,. . .,vnbe the edges of G and letGi be the subgraph induced by{v1, . . . ,vi}.

For everyi =1, . . . ,n, we find a setSi of at mostk edges such thatGi\Si is acyclic.

For i =1, we have the trivial solutionSi =∅.

Suppose we have a solutionSi for Gi. LetWi contain the head of each edge in Si. ThenWi∪ {vi+1} is a set of at mostk+1 vertices whose removal makes Gi+1 acyclic.

Use the compression algorithm for Gi+1 with the set Wi∪ {vi+1}.

If there is no solution of sizek forGi+1, then we can stop. Otherwise the compression algorithm gives a solutionSi+1of sizek forGi+1.

We call the compression algorithmn times, everything else is polynomial.

⇒Directed Feedback Edge Set is FPT.

(60)

Letv1,. . .,vnbe the edges of G and letGi be the subgraph induced by{v1, . . . ,vi}.

For everyi =1, . . . ,n, we find a setSi of at mostk edges such thatGi\Si is acyclic.

For i =1, we have the trivial solutionSi =∅.

Suppose we have a solutionSi for Gi. LetWi contain the head of each edge in Si. ThenWi∪ {vi+1} is a set of at mostk+1 vertices whose removal makes Gi+1 acyclic.

Use the compression algorithm for Gi+1 with the set Wi∪ {vi+1}.

If there is no solution of sizek forGi+1, then we can stop.

Otherwise the compression algorithm gives a solutionSi+1of sizek forGi+1.

We call the compression algorithmn times, everything else is polynomial.

⇒ is FPT.

(61)

So far we have seen:

Definition of important cuts.

Combinatorial bound on the number of important cuts.

Pushing argument: we can assume that the solution contains an important cut. SolvesMultiway Cut,Skew

Multicut.

Iterative compression reduces Directed Feedback Vertex Set toSkew Multicut.

Next:

Randomized sampling of important separators.

Hivatkozások

KAPCSOLÓDÓ DOKUMENTUMOK

We always assume that in a drawing (a) no edge passes through a vertex different from its endpoints, (b) no three edges cross at the same point, (c) any two edges have only a

Proof: Find a collection of good clusters covering every vertex and having minimum total

Small separators in graphs have interesting extremal properties that can be exploited in combinatorial and algorithmic results.. Bounding the number of

Proof: Find a collection of good clusters covering every vertex and having minimum total size.. A sufficient and

The undirected approach does not work: the pushing lemma is not true.. Pushing Lemma (for

Hence, combining Lemma 2.1, Theorem A and Theorem 3.1 and the fact that equation (1.1) is homogeneous (from which it follows that if it does not have an eventually positive solution,

Once this difference is shortened, is, (u[i?*]) and become the same. When the condition in the lemma is true, the equation becomes true. The next example shows the importance of

Indeed, consider any (simple) graph with n vertices and roughly e/m &gt; 4n edges such that it can be drawn with at most (e/m) n 2 3 crossings, and replace each edge by m parallel