46
Introduction Data reduction Fixed-parameter algorithm Experiments Optimal Edge Deletions for Signed Graph Balancing Falk H¨ uffner Nadja Betzler Rolf Niedermeier Friedrich-Schiller-Universit¨ at Jena Institut f¨ ur Informatik WEA 2007 6th Workshop on Experimental Algorithms 8 June 2007 uffner, Betzler & Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 1/21

Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Optimal Edge Deletions for Signed GraphBalancing

Falk Huffner Nadja Betzler Rolf Niedermeier

Friedrich-Schiller-Universitat JenaInstitut fur Informatik

WEA 20076th Workshop on Experimental Algorithms

8 June 2007

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 1/21

Page 2: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Outline

1 Introduction

2 Data reduction

3 Fixed-parameter algorithm

4 Experiments

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 2/21

Page 3: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Balanced graphs

Definition

A graph with edges labeled by = or 6= (signed graph) is balanced ifthe vertices can be colored with two colors such that the relationon each edge holds.

/=/=

/=

/=

/=

/==

=

=

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 3/21

Page 4: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Balanced graphs

Definition

A graph with edges labeled by = or 6= (signed graph) is balanced ifthe vertices can be colored with two colors such that the relationon each edge holds.

/=/=

/=

/=

/=

/==

=

=

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 3/21

Page 5: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Balanced graphs

Definition

A graph with edges labeled by = or 6= (signed graph) is balanced ifthe vertices can be colored with two colors such that the relationon each edge holds.

/=/=

/=

/=

/=

/==

=

=

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 3/21

Page 6: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Balanced graphs

Definition

A graph with edges labeled by = or 6= (signed graph) is balanced ifthe vertices can be colored with two colors such that the relationon each edge holds.

/=/=

/=

/=

/=

/==

=

=

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 3/21

Page 7: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Balanced graphs

Definition

A graph with edges labeled by = or 6= (signed graph) is balanced ifthe vertices can be colored with two colors such that the relationon each edge holds.

/=/=

/=

/=

/=

/==

=

=

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 3/21

Page 8: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Characterization of balance

Special case

Bipartite graphs are balanced graphs that contain only 6=-edges.

Theorem (Konig 1936)

A signed graph is balanced iff it contains no cycle with an oddnumber of 6=-edges.

Corollary

Bipartite graphs are graphs that contain no cycle of odd length.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 4/21

Page 9: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Characterization of balance

Special case

Bipartite graphs are balanced graphs that contain only 6=-edges.

Theorem (Konig 1936)

A signed graph is balanced iff it contains no cycle with an oddnumber of 6=-edges.

Corollary

Bipartite graphs are graphs that contain no cycle of odd length.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 4/21

Page 10: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Characterization of balance

Special case

Bipartite graphs are balanced graphs that contain only 6=-edges.

Theorem (Konig 1936)

A signed graph is balanced iff it contains no cycle with an oddnumber of 6=-edges.

Corollary

Bipartite graphs are graphs that contain no cycle of odd length.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 4/21

Page 11: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Balanced Subgraph

/=

/=

/=

/=

=

=

=

=

=

Definition (Balanced Subgraph)

Input: A graph with edges labeled by = or 6=.Task: Find a minimum set of edges to delete such that the graphbecomes balanced.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 5/21

Page 12: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Balanced Subgraph

/=

/=

/=

/=

=

=

=

=

=

Definition (Balanced Subgraph)

Input: A graph with edges labeled by = or 6=.Task: Find a minimum set of edges to delete such that the graphbecomes balanced.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 5/21

Page 13: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Balanced Subgraph

/=

/=

/=

/=

=

=

=

=

=

Definition (Balanced Subgraph)

Input: A graph with edges labeled by = or 6=.Task: Find a minimum set of edges to delete such that the graphbecomes balanced.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 5/21

Page 14: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Balanced Subgraph

/=

/=

/=

/=

=

=

=

=

=

Definition (Balanced Subgraph)

Input: A graph with edges labeled by = or 6=.Task: Find a minimum set of edges to delete such that the graphbecomes balanced.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 5/21

Page 15: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Applications of Balanced Subgraph

“Monotone subsystems” in biological networks[DasGupta et al., WEA 2006]

Balance in social networks[Harary, Mich. Math. J. 1953]

Portfolio risk analysis[Harary et al., IMA J. Manag. Math. 2002]

Minimum energy state of magnetic materials (spin glasses)[Kasteleyn, J. Math. Phys. 1963]

Stability of fullerenes[Doslic&Vikicevic, Discr. Appl. Math. 2007]

Integrated circuit design[Chiang et al., IEEE Trans. CAD of IC&Sys. 2007]

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 6/21

Page 16: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Balanced Subgraph: known results

Balanced Subgraph is NP-hard, since it is ageneralization of Max-Cut (Max-Cut is the special casewhere all edges are 6=)

A solution that keeps at least 87.8 % of the edges can befound in polynomial time [DasGupta et al., WEA 2006]

A solution that deletes at most c times the edges that need tobe deleted can probably not be found in polynomial time[Khot, STOC 2002]

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 7/21

Page 17: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Graph structure

Idea

Exploit the structure of the relevant networks

+

+

||

|

|

+

+

|

+

+

+

+

+

+

++

+

+

+

|

||

+

+

+

+

++

+ ++

++

++

++

+

++

+

+

+

|

|

|

+

|

+

|

+

+

+

+

+

|+

+

+

+

++

++

+ ++

+

+

| ++

|

| |

+

+ +

+

|

+

+

|

+

+

|+

+

+

+

|

+

+

++

+

+

++

+

+

+

+ +| |

+

++

+

+

+

+

|+

+|

++

+ |

+

|

++

|+

+

|+

||

+

|

+

+

+

++

+

+

+

+

+

+|+

+

+

+

+

+

+

+

|

++

++

+

+

+

+

+

+ +

+

+

+

+

++

+

+

+

|

|+

++

+++

|+ +

+

+

+

+|

+|

++

+

|

+

++

|

|

+

+

|

++

++ +

+

+

+

|

+

+

++

++

+

+

++

+

++

+

+

+

|

+

+

+

++

+

||

| ||

+

|

|

|+

|

+

+

+

++

+

+ |+

+|

++ |

+ |+

+

+|

+ |+

++

+|

+

+ |

+

+

+

++

+

+

++

|

++

| |+

+|

|

+

+

|

+

+

+ +

||

++

+

+ |+

+ |

+

+

++

||+

+

++

+|

+

+

+

+

+

|

|

+

+

+

+

+

+

+

+

+

+

+

+

+++

++ +

+

|

|

|

|

+

+

|

+

+ ++

+

++

+

+

|

|

++

|

|

+

+

|+

+|

+|

|

+|+ +

+|

|+

+

+

+

+

+++

+|+

+

++

+

+

+ |

+

+

+

+ +

|

+

+

+

+ +

+

+

+

++

+

+

+

+

+

+|

+

++

++

+

+

++

+

|

|

+|

+

|

|

+

+

+

++

+ +

+

+

|

+

++

++

+

+

+

+

+

+

++

+

| ++

++

+ ++

++

|

+

+ +

+

++

+

+

++

+

++

+

+ +

+

+

+++

+

+

+ ++

++

+

++

+

+

++

|

|

+ +

|

+|

+

|

+

+

+

+

||

||

|

|

+|

+

|||

|

|

+++

+

+

+

+

+

++

|

+

+

+

+

|

+ +

+ +

|+ +

|+

|

|

|+

++

|

|

+

+

+

+

|||

+

+

+

+

++

+

+ +

+

++

+

+

+

+

+

+

+

+

+

++

++

+ +

|

+

|

+

+

++

+

++

||

+

|

+

+

+

+

++

+

+

+|

+

+

|

+ +

+

++| +

| ++

+

++

+ + +

++ ++

+

+

+

+

||

+

+

+

||

|+

+

++ +

|

+ ++ +

+

+

+

+

+

|

++

+

+

+

+

+

+

|+

+ +

++

+

++

++ +

+

+

+

|

+

++

+

+ |

+

+

|

+

+

+

+

+ +

+

+

||

+

+

+

+

+

+ +

++ +

+

+

|

+

|

+

+

|

|

+

++

++

++

+

+

++

+

+

+

|

+ ||

+ ||

+ |

++

+

+

+

+

+

|

+

+++

+

++

+

||

+|

||

++

+

+|

+

|+

+

|

| |

+

+

++

+

+

+

| +

+ +

+

+

+

++++

+

+

++

++ ++

+

|

++

+

+

+

|+

|

|

+

+++

++

++

++

+ ++

+

+

+

|

+

+

++

|

+

|

+

|

+

++

+

++

++++

+

+

+ +

+

++ + ++

+

|

+

++

+

|

+

++

+

+

++

|

+

+

++

||

+

+

|

|

+

+

++

+

|

+

|

+

||

|

|

++

+

++

+

++

+

++

++

+

+

+

+

++ +

|

+

++

+

+

+ +

||

+

++ +

+

+

+

++

+

++

++

++

+ +

+

+

+

+

+

+

+ |+

+

|

+

+

+

|

+

+

+

++

++

++

+

+

++

||

+

+

++

++

||

++

||

||

+

+ +

++

++ ++

++ +

++ ++

+

+

+

||

+

++

||

++

|+

++

++

|+

++

+

+

+

+

+

+

++

+

+

+

+

++ ++

|

++

+

+

++

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 8/21

Page 18: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Data reduction

Data reduction

Replace the instance by a simpler, equivalent one.

Example

Delete all degree-1 vertices.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 9/21

Page 19: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Data reduction

Data reduction

Replace the instance by a simpler, equivalent one.

Example

Delete all degree-1 vertices.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 9/21

Page 20: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Separator-based data reduction

=

=

=

= =

=

=

6=

6=

6=

6=

6=

6=

S C

(a)

(b)

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 10/21

Page 21: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Data reduction scheme

Data reduction scheme

Find separator S that cuts off small component C

For each of the (up to symmetry) 2|S |−1 colorings of S ,determine the size of an optimal solution for G [S ∪ C ]

Replace in G the subgraph G [S ∪ C ] by an equivalent smallergadget

Subsumes all 8 data reduction rules given by [Wernicke, 2003] forEdge Bipartization

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 11/21

Page 22: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Data reduction scheme

Data reduction scheme

Find separator S that cuts off small component C

For each of the (up to symmetry) 2|S |−1 colorings of S ,determine the size of an optimal solution for G [S ∪ C ]

Replace in G the subgraph G [S ∪ C ] by an equivalent smallergadget

Subsumes all 8 data reduction rules given by [Wernicke, 2003] forEdge Bipartization

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 11/21

Page 23: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Filling in the data reduction scheme

How to find good S/C -combinations?

Separators of size 0 and 1 can be found in linear time bydepth-first search [Gabow, IPL 2000]

Separators of constant size can be found in polynomial time[Henzinger et al., J. Alg. 2000]; however, we use a heuristic forseparators up to size 4

How to construct gadgets that behave equivalently to S ∪ C?

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 12/21

Page 24: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Filling in the data reduction scheme

How to find good S/C -combinations?

Separators of size 0 and 1 can be found in linear time bydepth-first search [Gabow, IPL 2000]

Separators of constant size can be found in polynomial time[Henzinger et al., J. Alg. 2000]; however, we use a heuristic forseparators up to size 4

How to construct gadgets that behave equivalently to S ∪ C?

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 12/21

Page 25: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Filling in the data reduction scheme

How to find good S/C -combinations?

Separators of size 0 and 1 can be found in linear time bydepth-first search [Gabow, IPL 2000]

Separators of constant size can be found in polynomial time[Henzinger et al., J. Alg. 2000]; however, we use a heuristic forseparators up to size 4

How to construct gadgets that behave equivalently to S ∪ C?

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 12/21

Page 26: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Gadget construction

Idea

Use atomic gadgets and describe their effect by cost vectors.

Example

atomicgadget 00 11

u

v

w

= ====

Theorem

With 10 atomic gadgets, we can emulate the behavior of anycomponent behind a 3-vertex cut.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 13/21

Page 27: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Gadget construction

Idea

Use atomic gadgets and describe their effect by cost vectors.

Example

atomicgadget 00 11

u

v

w

= ====

Theorem

With 10 atomic gadgets, we can emulate the behavior of anycomponent behind a 3-vertex cut.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 13/21

Page 28: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Gadget construction

Idea

Use atomic gadgets and describe their effect by cost vectors.

Example

atomicgadget 00 11

u

v

w

= ====

Theorem

With 10 atomic gadgets, we can emulate the behavior of anycomponent behind a 3-vertex cut.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 13/21

Page 29: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Gadget construction

Example

2 −(1,1,1,1)−(0,0,1,1)

2

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=6=6=

6= 6=

6= 6= 6= 6=

6=

6=

6=

6=

6=

6=

6=

6=

6=

6=

6=

6=

6=

6=

6=

6=

6=

1

11

1

0000

00

C

S

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 14/21

Page 30: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Gadget construction

Problem

How to determine an appropriate set of atomic cost vectors for agiven cost vector?

Vector Sum Problem

Given a set S of n vectors of length l with nonnegative integercomponents and a target vector t of length l , find asub-(multi)-set of vectors from S that sums to t.

“Equality-constrained multidimensional knapsack”

In our implementation: simple branch & bound

Sometimes this is a bottleneck!

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 15/21

Page 31: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Gadget construction

Problem

How to determine an appropriate set of atomic cost vectors for agiven cost vector?

Vector Sum Problem

Given a set S of n vectors of length l with nonnegative integercomponents and a target vector t of length l , find asub-(multi)-set of vectors from S that sums to t.

“Equality-constrained multidimensional knapsack”

In our implementation: simple branch & bound

Sometimes this is a bottleneck!

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 15/21

Page 32: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Gadget construction

Problem

How to determine an appropriate set of atomic cost vectors for agiven cost vector?

Vector Sum Problem

Given a set S of n vectors of length l with nonnegative integercomponents and a target vector t of length l , find asub-(multi)-set of vectors from S that sums to t.

“Equality-constrained multidimensional knapsack”

In our implementation: simple branch & bound

Sometimes this is a bottleneck!

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 15/21

Page 33: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Gadget construction

Problem

How to determine an appropriate set of atomic cost vectors for agiven cost vector?

Vector Sum Problem

Given a set S of n vectors of length l with nonnegative integercomponents and a target vector t of length l , find asub-(multi)-set of vectors from S that sums to t.

“Equality-constrained multidimensional knapsack”

In our implementation: simple branch & bound

Sometimes this is a bottleneck!

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 15/21

Page 34: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Gadget construction

Problem

How to determine an appropriate set of atomic cost vectors for agiven cost vector?

Vector Sum Problem

Given a set S of n vectors of length l with nonnegative integercomponents and a target vector t of length l , find asub-(multi)-set of vectors from S that sums to t.

“Equality-constrained multidimensional knapsack”

In our implementation: simple branch & bound

Sometimes this is a bottleneck!

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 15/21

Page 35: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Gadget construction

Theorem

All separators with |S | = 2 and |C | ≥ 1 and and all separatorswith |S | = 3 and |C | ≥ 2 are subject to data reduction.

4-cuts: 2948 atomic gadgets (heuristically found)

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 16/21

Page 36: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Gadget construction

Theorem

All separators with |S | = 2 and |C | ≥ 1 and and all separatorswith |S | = 3 and |C | ≥ 2 are subject to data reduction.

4-cuts: 2948 atomic gadgets (heuristically found)

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 16/21

Page 37: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Reduction. . . and then?

+

+

||

|

|

+

+

|

+

+

+

+

+

+

++

+

+

+

|

||

+

+

+

+

++

+ ++

++

++

++

+

++

+

+

+

|

|

|

+

|

+

|

+

+

+

+

+

|+

+

+

+

++

++

+ ++

+

+

| ++

|

| |

+

+ +

+

|

+

+

|

+

+

|+

+

+

+

|

+

+

++

+

+

++

+

+

+

+ +| |

+

++

+

+

+

+

|+

+|

++

+ |

+

|

++

|+

+

|+

||

+

|

+

+

+

++

+

+

+

+

+

+|+

+

+

+

+

+

+

+

|

++

++

+

+

+

+

+

+ +

+

+

+

+

++

+

+

+

|

|+

++

+++

|+ +

+

+

+

+|

+|

++

+

|

+

++

|

|

+

+

|

++

++ +

+

+

+

|

+

+

++

++

+

+

++

+

++

+

+

+

|

+

+

+

++

+

||

| ||

+

|

|

|+

|

+

+

+

++

+

+ |+

+|

++ |

+ |+

+

+|

+ |+

++

+|

+

+ |

+

+

+

++

+

+

++

|

++

| |+

+|

|

+

+

|

+

+

+ +

||

++

+

+ |+

+ |

+

+

++

||+

+

++

+|

+

+

+

+

+

|

|

+

+

+

+

+

+

+

+

+

+

+

+

+++

++ +

+

|

|

|

|

+

+

|

+

+ ++

+

++

+

+

|

|

++

|

|

+

+

|+

+|

+|

|

+|+ +

+|

|+

+

+

+

+

+++

+|+

+

++

+

+

+ |

+

+

+

+ +

|

+

+

+

+ +

+

+

+

++

+

+

+

+

+

+|

+

++

++

+

+

++

+

|

|

+|

+

|

|

+

+

+

++

+ +

+

+

|

+

++

++

+

+

+

+

+

+

++

+

| ++

++

+ ++

++

|

+

+ +

+

++

+

+

++

+

++

+

+ +

+

+

+++

+

+

+ ++

++

+

++

+

+

++

|

|

+ +

|

+|

+

|

+

+

+

+

||

||

|

|

+|

+

|||

|

|

+++

+

+

+

+

+

++

|

+

+

+

+

|

+ +

+ +

|+ +

|+

|

|

|+

++

|

|

+

+

+

+

|||

+

+

+

+

++

+

+ +

+

++

+

+

+

+

+

+

+

+

+

++

++

+ +

|

+

|

+

+

++

+

++

||

+

|

+

+

+

+

++

+

+

+|

+

+

|

+ +

+

++| +

| ++

+

++

+ + +

++ ++

+

+

+

+

||

+

+

+

||

|+

+

++ +

|

+ ++ +

+

+

+

+

+

|

++

+

+

+

+

+

+

|+

+ +

++

+

++

++ +

+

+

+

|

+

++

+

+ |

+

+

|

+

+

+

+

+ +

+

+

||

+

+

+

+

+

+ +

++ +

+

+

|

+

|

+

+

|

|

+

++

++

++

+

+

++

+

+

+

|

+ ||

+ ||

+ |

++

+

+

+

+

+

|

+

+++

+

++

+

||

+|

||

++

+

+|

+

|+

+

|

| |

+

+

++

+

+

+

| +

+ +

+

+

+

++++

+

+

++

++ ++

+

|

++

+

+

+

|+

|

|

+

+++

++

++

++

+ ++

+

+

+

|

+

+

++

|

+

|

+

|

+

++

+

++

++++

+

+

+ +

+

++ + ++

+

|

+

++

+

|

+

++

+

+

++

|

+

+

++

||

+

+

|

|

+

+

++

+

|

+

|

+

||

|

|

++

+

++

+

++

+

++

++

+

+

+

+

++ +

|

+

++

+

+

+ +

||

+

++ +

+

+

+

++

+

++

++

++

+ +

+

+

+

+

+

+

+ |+

+

|

+

+

+

|

+

+

+

++

++

++

+

+

++

||

+

+

++

++

||

++

||

||

+

+ +

++

++ ++

++ +

++ ++

+

+

+

||

+

++

||

++

|+

++

++

|+

++

+

+

+

+

+

+

++

+

+

+

+

++ ++

|

++

+

+

++

+

++

++

+

|

|

+|

|++

+ +|

|

|

+

++

+

|+

+

+

|+

++

++

++

+

+

++

+

++

|+

+

+

+

|

++

|

+

+ +

+

+|

++

|

|

++

+

+

|

++

|

+

|

|

+

|

+

++

|

+

|

|

+ +

+

+

|

+

+

+

+

|

+

++

+

+

+++

|

++

+

+

+

|

+

+

+

+

||

+

|

++ |+ +

+|

+

+

+

|

+

+

+

++

+

|

|

|

+

|

+

|

| |

|

+

|+

+|++

++

++

|

+|

+

+

+

+

+

|

++

+

|

+

+|

+

|

+

+

+

|

+

+

|

+ +

+

|

+

+

++

+

++

+|

+

+ +

+++

++

++

++

++

+++

+

++

|

+

++

+

++

+

+

+

|+ +

| +| +

|

+

+

+ |

|

||

|

+

++

|+

||

| | | |

|

+ ++

+

+|

++

|

+

+|

+

+|

+

+ +++

+

+

++

+|

++

++

+

+

+

+

|

+ + |

+

|

|

++

+

+

++

+

++

||

+

+

+

+|

|

+

|+

+

|+

+

+

|+ +

+

++

++

++

|

|

++

+

+

++++

+

++

+

+++

+

+

+

++

|

++

|

|| |

|

+

|

||

||

|

||

++ |

|

|

|

+

|

++

+

|

+

+

+

+

+

+

+

+

+

|+

+ |

|

|

|

++

++

+

+

|

||

+

+

++

++

n = 690, m = 1082 n = 144, m = 405

After data reduction, a hard “core” remains.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 17/21

Page 38: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Reduction. . . and then?

+

+

||

|

|

+

+

|

+

+

+

+

+

+

++

+

+

+

|

||

+

+

+

+

++

+ ++

++

++

++

+

++

+

+

+

|

|

|

+

|

+

|

+

+

+

+

+

|+

+

+

+

++

++

+ ++

+

+

| ++

|

| |

+

+ +

+

|

+

+

|

+

+

|+

+

+

+

|

+

+

++

+

+

++

+

+

+

+ +| |

+

++

+

+

+

+

|+

+|

++

+ |

+

|

++

|+

+

|+

||

+

|

+

+

+

++

+

+

+

+

+

+|+

+

+

+

+

+

+

+

|

++

++

+

+

+

+

+

+ +

+

+

+

+

++

+

+

+

|

|+

++

+++

|+ +

+

+

+

+|

+|

++

+

|

+

++

|

|

+

+

|

++

++ +

+

+

+

|

+

+

++

++

+

+

++

+

++

+

+

+

|

+

+

+

++

+

||

| ||

+

|

|

|+

|

+

+

+

++

+

+ |+

+|

++ |

+ |+

+

+|

+ |+

++

+|

+

+ |

+

+

+

++

+

+

++

|

++

| |+

+|

|

+

+

|

+

+

+ +

||

++

+

+ |+

+ |

+

+

++

||+

+

++

+|

+

+

+

+

+

|

|

+

+

+

+

+

+

+

+

+

+

+

+

+++

++ +

+

|

|

|

|

+

+

|

+

+ ++

+

++

+

+

|

|

++

|

|

+

+

|+

+|

+|

|

+|+ +

+|

|+

+

+

+

+

+++

+|+

+

++

+

+

+ |

+

+

+

+ +

|

+

+

+

+ +

+

+

+

++

+

+

+

+

+

+|

+

++

++

+

+

++

+

|

|

+|

+

|

|

+

+

+

++

+ +

+

+

|

+

++

++

+

+

+

+

+

+

++

+

| ++

++

+ ++

++

|

+

+ +

+

++

+

+

++

+

++

+

+ +

+

+

+++

+

+

+ ++

++

+

++

+

+

++

|

|

+ +

|

+|

+

|

+

+

+

+

||

||

|

|

+|

+

|||

|

|

+++

+

+

+

+

+

++

|

+

+

+

+

|

+ +

+ +

|+ +

|+

|

|

|+

++

|

|

+

+

+

+

|||

+

+

+

+

++

+

+ +

+

++

+

+

+

+

+

+

+

+

+

++

++

+ +

|

+

|

+

+

++

+

++

||

+

|

+

+

+

+

++

+

+

+|

+

+

|

+ +

+

++| +

| ++

+

++

+ + +

++ ++

+

+

+

+

||

+

+

+

||

|+

+

++ +

|

+ ++ +

+

+

+

+

+

|

++

+

+

+

+

+

+

|+

+ +

++

+

++

++ +

+

+

+

|

+

++

+

+ |

+

+

|

+

+

+

+

+ +

+

+

||

+

+

+

+

+

+ +

++ +

+

+

|

+

|

+

+

|

|

+

++

++

++

+

+

++

+

+

+

|

+ ||

+ ||

+ |

++

+

+

+

+

+

|

+

+++

+

++

+

||

+|

||

++

+

+|

+

|+

+

|

| |

+

+

++

+

+

+

| +

+ +

+

+

+

++++

+

+

++

++ ++

+

|

++

+

+

+

|+

|

|

+

+++

++

++

++

+ ++

+

+

+

|

+

+

++

|

+

|

+

|

+

++

+

++

++++

+

+

+ +

+

++ + ++

+

|

+

++

+

|

+

++

+

+

++

|

+

+

++

||

+

+

|

|

+

+

++

+

|

+

|

+

||

|

|

++

+

++

+

++

+

++

++

+

+

+

+

++ +

|

+

++

+

+

+ +

||

+

++ +

+

+

+

++

+

++

++

++

+ +

+

+

+

+

+

+

+ |+

+

|

+

+

+

|

+

+

+

++

++

++

+

+

++

||

+

+

++

++

||

++

||

||

+

+ +

++

++ ++

++ +

++ ++

+

+

+

||

+

++

||

++

|+

++

++

|+

++

+

+

+

+

+

+

++

+

+

+

+

++ ++

|

++

+

+

++

+

++

++

+

|

|

+|

|++

+ +|

|

|

+

++

+

|+

+

+

|+

++

++

++

+

+

++

+

++

|+

+

+

+

|

++

|

+

+ +

+

+|

++

|

|

++

+

+

|

++

|

+

|

|

+

|

+

++

|

+

|

|

+ +

+

+

|

+

+

+

+

|

+

++

+

+

+++

|

++

+

+

+

|

+

+

+

+

||

+

|

++ |+ +

+|

+

+

+

|

+

+

+

++

+

|

|

|

+

|

+

|

| |

|

+

|+

+|++

++

++

|

+|

+

+

+

+

+

|

++

+

|

+

+|

+

|

+

+

+

|

+

+

|

+ +

+

|

+

+

++

+

++

+|

+

+ +

+++

++

++

++

++

+++

+

++

|

+

++

+

++

+

+

+

|+ +

| +| +

|

+

+

+ |

|

||

|

+

++

|+

||

| | | |

|

+ ++

+

+|

++

|

+

+|

+

+|

+

+ +++

+

+

++

+|

++

++

+

+

+

+

|

+ + |

+

|

|

++

+

+

++

+

++

||

+

+

+

+|

|

+

|+

+

|+

+

+

|+ +

+

++

++

++

|

|

++

+

+

++++

+

++

+

+++

+

+

+

++

|

++

|

|| |

|

+

|

||

||

|

||

++ |

|

|

|

+

|

++

+

|

+

+

+

+

+

+

+

+

+

|+

+ |

|

|

|

++

++

+

+

|

||

+

+

++

++

n = 690, m = 1082 n = 144, m = 405

After data reduction, a hard “core” remains.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 17/21

Page 39: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Fixed-parameter tractability

Idea

Exploit the fact that biological networks are close to beingbalanced (i. e., the number k of edges that need to be deleted tomake them balanced is small).

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 18/21

Page 40: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Fixed-parameter tractability

Parameterized complexity is an approach to finding exact solutionsto NP-hard problems by confining the combinatorial explosion to aparameter.

Definition ([Downey&Fellows 1999])

A problem is called fixed-parameter tractable with respect to aparameter k if an instance of size n can be solved in f (k) · nO(1)

time for an arbitrary function f .

Theorem

Balanced Subgraph can be solved in O(2k ·m2) time by areduction to Edge Bipartization and using an algorithm basedon iterative compression [Guo et al., JCSS 2006].

A heuristic speedup trick can give large speedups over thisworst-case running time.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 19/21

Page 41: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Fixed-parameter tractability

Parameterized complexity is an approach to finding exact solutionsto NP-hard problems by confining the combinatorial explosion to aparameter.

Definition ([Downey&Fellows 1999])

A problem is called fixed-parameter tractable with respect to aparameter k if an instance of size n can be solved in f (k) · nO(1)

time for an arbitrary function f .

Theorem

Balanced Subgraph can be solved in O(2k ·m2) time by areduction to Edge Bipartization and using an algorithm basedon iterative compression [Guo et al., JCSS 2006].

A heuristic speedup trick can give large speedups over thisworst-case running time.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 19/21

Page 42: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Fixed-parameter tractability

Parameterized complexity is an approach to finding exact solutionsto NP-hard problems by confining the combinatorial explosion to aparameter.

Definition ([Downey&Fellows 1999])

A problem is called fixed-parameter tractable with respect to aparameter k if an instance of size n can be solved in f (k) · nO(1)

time for an arbitrary function f .

Theorem

Balanced Subgraph can be solved in O(2k ·m2) time by areduction to Edge Bipartization and using an algorithm basedon iterative compression [Guo et al., JCSS 2006].

A heuristic speedup trick can give large speedups over thisworst-case running time.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 19/21

Page 43: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Fixed-parameter tractability

Parameterized complexity is an approach to finding exact solutionsto NP-hard problems by confining the combinatorial explosion to aparameter.

Definition ([Downey&Fellows 1999])

A problem is called fixed-parameter tractable with respect to aparameter k if an instance of size n can be solved in f (k) · nO(1)

time for an arbitrary function f .

Theorem

Balanced Subgraph can be solved in O(2k ·m2) time by areduction to Edge Bipartization and using an algorithm basedon iterative compression [Guo et al., JCSS 2006].

A heuristic speedup trick can give large speedups over thisworst-case running time.

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 19/21

Page 44: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Experimental results

Approximation Exact alg.

Data set n m k ≥ k ≤ t [min] k t [min]

EGFR 330 855 196 219 7 210 108Yeast 690 1082 0 43 77 41 1Macr. 678 1582 218 383 44 374 1

Yeast is not solvable without reducing 4-cuts

A real-world network with 688 vertices and 2208 edges couldnot be solved

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 20/21

Page 45: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Experimental results

Approximation Exact alg.

Data set n m k ≥ k ≤ t [min] k t [min]

EGFR 330 855 196 219 7 210 108Yeast 690 1082 0 43 77 41 1Macr. 678 1582 218 383 44 374 1

Yeast is not solvable without reducing 4-cuts

A real-world network with 688 vertices and 2208 edges couldnot be solved

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 20/21

Page 46: Optimal Edge Deletions for Signed Graph Balancingfpt.akt.tu-berlin.de/homepage-hueffner/slides/wea07.pdfIntroduction Data reduction Fixed-parameter algorithm Experiments Outline 1

Introduction Data reduction Fixed-parameter algorithm Experiments

Outlook

Directed case of Balanced Subgraph

Problem: Characterization by two-coloring holds only forstrongly connected graphs

The data reduction scheme is applicable to all graph problemswhere a coloring or a subset of the vertices is sought. Forexample:

Vertex CoverDominating Set3-ColoringFeedback Vertex Set

Huffner, Betzler&Niedermeier (Uni Jena) Optimal Edge Deletions for Signed Graph Balancing 21/21