Parameterized Algorithms for Book-Embedding Problems Sujoy Bhore , - - PowerPoint PPT Presentation

parameterized algorithms for book embedding problems
SMART_READER_LITE
LIVE PREVIEW

Parameterized Algorithms for Book-Embedding Problems Sujoy Bhore , - - PowerPoint PPT Presentation

Parameterized Algorithms for Book-Embedding Problems Sujoy Bhore , Robert Ganian, Fabrizio Montecchiani, Martin N ollenburg Graph Drawing September 19, 2019 1/33 The Problem v 9 v 8 v 4 v 1 v 2 v 3 v 4 v 5 v 6 v 7 v 8 v 9 v 5 v 3 v 7 v 6 v


slide-1
SLIDE 1

1/33

Parameterized Algorithms for Book-Embedding Problems

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg

Graph Drawing · September 19, 2019

slide-2
SLIDE 2

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

2/33

The Problem

v1 v2 v3 v4 v5 v6 v7 v8 v9

G = (V, E)

v1 v2 v3 v4 v5 v6 v7 v8 v9

v1 v2 v3 v4 v5 v6 v7 v8 v9

slide-3
SLIDE 3

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

3/33

The Problem v1 v2 v3 v4 v5 v6 v7 v8 v9 v1 v2 v3 v4 v5 v6 v7 v8 v9 v1 v2 v3 v4 v5 v6 v7 v8 v9

G has 3-Page Book-Embedding Page 3 Page 2 Page 1

slide-4
SLIDE 4

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

4/33

Book Thickness

Book Thickness (bt(G)): the minimum k such that G admits a k-page book-embedding. Alternatively, known as Stack Number.

Applications:

Bioinformatics VLSI Parallel Computing

slide-5
SLIDE 5

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

5/33

What we know ...

Every planar graph has book thickness at most four. [ Yannakakis – J. Comput. Syst. Sci., 89] Given a graph G and a positive integer k, determining whether bt(G) ≤ k is NP-complete (even for k ≥ 2). [Bernhart et al. – J. Comb. Theory, Ser. B, 79]

slide-6
SLIDE 6

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

6/33

What happens if the linear order ≺ of the vertices is fixed?

v1 v3 v4 v2 v5 v1 v3 v2 v4 v5

slide-7
SLIDE 7

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

7/33

v4 v5 v1 v2 v3 Fixed-order book-thickness (fo-bt(G) = 3): v4 v5 v1 v3 v2 Book-thickness (bt(G) = 2): v1 v3 v4 v2 v5

slide-8
SLIDE 8

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

8/33

Deciding whether fo-bt(G, ≺) ≤ 2 is Polynomial, since equiv- alent to testing the bipartiteness of a suitable conflict graph.

What we know ...

Deciding if fo-bt(G, ≺) ≤ 4 is NP-Complete, since equivalent to finding a 4-coloring of a circle graph which is NP-complete [W. Unger – STACS 1992].

slide-9
SLIDE 9

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

9/33

A problem is fixed-parameter tractable (FPT) with respect to parameter k if there exists a solution run- ning in f(k) · nO(1) time, where f is a computable function of k which is independent of n.

Problem + Parameter

slide-10
SLIDE 10

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

10/33

Results:

Fixed-Order Book Thickness parameterized by the vertex cover number of the graph FPT-algorithms : Fixed-Order Book Thickness parameterized by the pathwidth of the graph w.r.t the vertex order Book Thickness parameterized by the vertex cover num- ber of the graph

slide-11
SLIDE 11

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

11/33

If the answer is ‘YES’ we shall return a corresponding k-page book embedding as a witness. Input: Graph G = (V, E), a linear order ≺ of V , and a positive integer k. Task: Decide if there is a page assignment σ: E → [k] such that ≺, σ is a k-page book embedding of G, that is whether fo-bt(G, ≺) ≤ k.

Algorithms for Fixed-Order Book-Thickness ...

slide-12
SLIDE 12

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

12/33

Parameterization by the Vertex Cover number (τ)... Vertex Cover C of a graph G can be computed in time O(2τ + τ · n) [TCS, 10 - Chen et al.]

Vertex Cover

slide-13
SLIDE 13

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

13/33

Observation 1 Every graph G with a vertex cover C of size τ admits a τ-page book embedding with any vertex order ≺. 4-page book embedding ...

slide-14
SLIDE 14

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

14/33

Set-up for the Algorithm v∞ If τ ≤ k - Yes! Else ... v∞ Compute set of all valid page assignments S of G[C] |S| < τ τ 2

slide-15
SLIDE 15

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

15/33

Towards the dynamic program ... v∞ c1 c2 c3 cτ Consider an assignment s ∈ S v∞ c1 c2 c3 c4 c5 cτ 2-page assignment

slide-16
SLIDE 16

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

16/33

Notion of Visibility ... v∞ c1 c2 c3 c4 c5 cτ u1 valid page assignment... v∞ c1 c2 c3 c4 c5 cτ u1 s ∈ S

slide-17
SLIDE 17

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

17/33

Building visibility matrix ... v∞ c1 c2 c3 c4 c5 cτ u1

for an index a ∈ [n − τ], a k × τ visibility matrix Mi(a, α, s)...

c2 c3 c4 c5 c6 c7 u1 c1 u2 u3 . . .

s ∈ S

1 1 1 1 1 1 1 1 M2(2, α, s) =

slide-18
SLIDE 18

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

18/33

High-level Idea ...

Dynamically process the vertices in U(non vertex cover ver- tices) from left to right ... For each vertex, a bounded size snapshot of its visibility vertices ... Store one (arbitarily) chosen valid partial edge assignment ... All valid partial page assignments lead to the same visibility matrices are interchangeable ...

slide-19
SLIDE 19

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

19/33

Record set ... Some Observations ...

For a vertex ui ∈ U, Ri(s) = {

  • Mi(i, α, s), Mi(x1, α, s), . . . , Mi(xz, α, s)
  • | ∃ valid partial page assignment α: Ei → [k]}

|Ri(s)| ≤ 2τ 3+τ 2 If Rn−τ(s) = ∅ for some s

(un−τ is a dummy vertex) then there is a valid partial page assignment α: En−τ → [k] s.t. s ∪ α is a non-crossing page assignment of all edges in G.

slide-20
SLIDE 20

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

20/33

It suffices to compute Rn−τ(s) for each s ∈ S.

u∞

Observation 2 If for all s ∈ S it holds that Rn−τ(s) = ∅, then (G, ≺, k) is a NO-instance of Fixed-Order Book Thickness.

slide-21
SLIDE 21

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

21/33

Dynamic Step ...

If it is NOT a valid partial page assignment - discard! Branch over each page assignment β of the edges(≤ τ) incident to ui−1, and each tuple ρ ∈ Ri−1(s) ... Assume we have computed Ri−1(s) ... Compute R1(s) ... Else, compute the visibility matrices add the corresponding tuple into Ri(s).

slide-22
SLIDE 22

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

22/33

Runtime is upper-bounded by - Theorem 1 There is an algorithm which takes as input an n-vertex graph G with a vertex order ≺, runs in time 2O(τ 3)· n where τ is the vertex cover number of G, and computes a page assignment σ such that (≺, σ) is a (fo-bt(G, ≺))-page book embedding of G.

Lemma 1 The procedure correctly computes Ri(s) from Ri−1(s).

(τ τ 2) · n · (2τ 3+τ 2τ τ)

slide-23
SLIDE 23

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

23/33

Fixed-Order Book Thickness parameterized by the vertex cover number of the graph FPT-algorithms : Fixed-Order Book Thickness parameterized by the pathwidth of the graph w.r.t a vertex order Book Thickness parameterized by the vertex cover num- ber of the graph.

slide-24
SLIDE 24

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

24/33

Parameterization by the pathwidth ...

v1 v3 v2 v4 v5

v1 v3 v4 v2 v5

i/p : G = (V, E), ≺

slide-25
SLIDE 25

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

25/33

Lemma 2 Every graph G = (V, E) with a linear order ≺ of V such that (G, ≺) has pathwidth k admits a k-page book embedding ≺, σ, which can be computed in O(n + k · n) time. red page is free ...

slide-26
SLIDE 26

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

26/33

Dynamic guard sets ...

slide-27
SLIDE 27

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

27/33

Set-up for the algorithm ... v0 v0 concept of guards, BUT, in reverse order ... gi

1

gi

k

slide-28
SLIDE 28

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

28/33

Concept of (α, i, p) important edge ...

Observation 3 If va has no (α, i, p)-important edge, then every vertex vx with x < a is α-visible to va. If the (α, i, p)-important guard of va is vc, then vx (x < a) is α-visible to va if and only if x ≥ c.

va vc vi vd

slide-29
SLIDE 29

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

29/33

Theorem 2 There is an algorithm which takes as input an n-vertex graph G = (V, E) with a vertex ordering ≺ and computes a page assignment σ of E such that (≺, σ) is a (fo-bt(G, ≺))-page book em- bedding of G. The algorithm runs in n · κO(κ2) time where κ is the pathwidth of (G, ≺).

Runtime is upper bounded by O(n · (κ + 2)κ2 · κκ)

Lemma 3 The procedure correctly computes Qi−1 from Qi.

slide-30
SLIDE 30

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

30/33

Fixed-Order Book Thickness parameterized by the vertex cover number of the graph FPT-algorithms : Fixed-Order Book Thickness parameterized by the pathwidth of the graph w.r.t a vertex order Book Thickness parameterized by the vertex cover number of the graph

slide-31
SLIDE 31

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

31/33

Algorithm for Book-Thickness

v1 v3 v4 v2 v5 Book-thickness (bt(G)):

Theorem 3 Given a graph graph G = (V, E) with vertex cover number τ and a positive integer k, there is an algorithm that runs in time O(τ τ O(τ) + 2τ · n) (τ = τ(G) is the vertex cover number of G), and decides whether bt(G) ≤ k.

v4 v5 v1 v2 v3

slide-32
SLIDE 32

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

32/33

Conclusion ...

for fixed-order book-thickness

FPT algorithms

(parameter: vertex cover, pathwidth) for book-thickness (parameter: vertex cover) what if we allow constant number of crossings ??? ...

Issues with Treewidth ...

t1 t2 t1 tx t2 t1 t2

slide-33
SLIDE 33

Sujoy Bhore, Robert Ganian, Fabrizio Montecchiani, Martin N¨

  • llenburg · Parameterized Algorithms for Book-Embedding Problems

33/33

Thank You