On the Complexity of HV-Rectilinear Planarity Testing - PowerPoint PPT Presentation

1 / 40
About This Presentation
Title:

On the Complexity of HV-Rectilinear Planarity Testing

Description:

On the Complexity of HV-Rectilinear Planarity Testing Walter Didimo, Giuseppe Liotta, Maurizio Patrignani Perugia University Roma Tre University – PowerPoint PPT presentation

Number of Views:86
Avg rating:3.0/5.0
Slides: 41
Provided by: gdb95
Category:

less

Transcript and Presenter's Notes

Title: On the Complexity of HV-Rectilinear Planarity Testing


1
On the Complexity of HV-Rectilinear Planarity
Testing
Walter Didimo, Giuseppe Liotta, Maurizio
Patrignani
  • Perugia University
  • Roma Tre University

2
HV-graphs and HV-drawings
  • An HV-graph

7
7
H
6
8
V
V
V
V
5
V
H
H
H
8
3
4
5
V
1
2
H
V
V
H
3
V
H
6
1
2
H
V
  • An HV-drawing of it

4
3
HV-rectilinear planarity testing
  • A positive instance

9
V
H
14
13
9
8
V
V
V
V
H
H
H
H
H
V
15
12
11
8
10
7
13
6
H
V
11
V
V
H
H
H
V
14
10
6
7
H
V
5
12
V
V
H
H
H
H
2
4
5
15
H
V
V
4
V
2
H
3
1
V
V
H
3
1
An HV-drawing of it
An HV-graph
4
HV-rectilinear planarity testing
  • A negative instance

V
V
H
1
3
13
9
9
H
V
V
3
H
H
13
V
1
H
12
H
H
14
10
6
V
V
V
15
V
V
V
14
V
11
H
V
4
V
H
H
H
10
15
11
7
4
H
H
V
H
V
V
V
6
2
V
H
H
7
5
2
8
12
H
5
H
8
V
No HV-drawing can be found
An HV-graph
5
Rectilinear drawings
  • The HV-rectilinear planarity testing is a
    constrained case of rectilinear planarity testing
  • In a rectilinear orthogonal drawing each edge is
    a horizontal or vertical segment and edges do not
    cross

6
8
7
9
3
4
5
12
1
2
10
11
6
Rectilinear planarity testing
  • Fixed embedding setting
  • Polynomial O(n2 log n)
  • Tamassia, 87
  • Improved to O(n3/2)
  • Cornelsen, Karrenbauer, 12
  • Linear for maximum degree three
  • Rahman, Nishizeki, Naznin, 03
  • Variable embedding setting
  • NP-complete
  • Garg, Tamassia, 01
  • Polynomial for biconnected series-parallel graphs
    and 3-planar graphs
  • Di Battista, Liotta, Vargiu, 98
  • Polynomial for series-parallel graphs of maximum
    degree three
  • Zhou, Nishizeki, 08

7
Constrained rectilinear planarity
  • Left, Right, Up, Down labeling
  • Polynomial O(n2)
  • Vijayan, Wigderson, 85
  • Improved to linear
  • Hoffmann, Kriegel, 88
  • Polynomial when crossings admitted
  • Manuch, Patterson, Poon, Thachuk, 10
  • 3D version (Up, Down, Left, Right,
    Front, Back labels)
  • Di Battista, Liotta, Lubiw, Whitesides, 02
  • Di Giacomo, Liotta, Patrignani, 04
  • Di Battista, Kim, Liotta, Lubiw, Whitesides, 12

8
HV-rectilinear planarity testing
  • Fixed embedding setting
  • Polynomial
  • Durocher, Felsner, Mehrabi, Mondal, 14
  • Variable embedding setting
  • Polynomial for biconnected outerplanar graphs
    with vertex-degree at most three
  • Durocher, Felsner, Mehrabi, Mondal, 14
  • NP-hard when crossings admitted
  • Manuch, Patterson, Poon, Thachuk, 10

9
HV-rectilinear planarity testing
  • Questions
  • What is the complexity of HV-rectilinear
    planarity testing in the variable embedding
    setting?
  • Manuch, Patterson, Poon, Thachuk, 10
  • Durocher, Felsner, Mehrabi, Mondal, 14
  • What is the class of HV-outerplanar graphs that
    admit HV-drawings?
  • Durocher, Felsner, Mehrabi, Mondal, 14

10
Our results
  • HV-rectilinear planarity testing is NP-complete
    in the variable embedding setting
  • even for HV-graphs with vertex-degree at most
    three
  • There exists a polynomial-time algorithm to
    recognize whether a series-parallel HV-graph
    admits an HV-drawing
  • extended to partial 2-trees

11
Our results
  • HV-rectilinear planarity testing is NP-complete
    in the variable embedding setting
  • even for HV-graphs with vertex-degree at most
    three
  • There exists a polynomial-time algorithm to
    recognize whether a series-parallel HV-graph
    admits an HV-drawing
  • extended to partial 2-trees

12
Spirality
  • Spirality is a measure of how much a path is
    rolled up
  • you need spirality 4to close a cycleclockwise

1
2
-1
-2
-3
-2
1
2
1
2
2
1
0
-1
1
2
0
1
3
4
3
4
3
4
13
Switch-flow networks
  • A switch-flow network is a graph where each edge
    is labeled with a capacity range c'...c'' of
    nonnegative integers
  • For simplicity, the capacity range c...c is
    denoted with c

14
Switch-flow networks and flows
  • A flow is an orientation of the edges and an
    assignment of integer values to them so that
  • Each value is within the capacity range of the
    edge
  • The incoming and outgoing flows are balanced at
    each vertex

0
0
1
1
0
1
1
1
1
0..2
0
1
15
Switch-flow network problem
  • Instance
  • A switch-flow network N
  • Question
  • Does N admit a flow?
  • NP-complete (Garg, Tamassia, 01) even in the
    special case when
  • the network is planar
  • the lower bounds of the capacity ranges are
    either
  • zero (as in 0...c), or
  • equal to the upper bounds (as in c)

16
1) Start from a switch-flow network
17
2) Make it maximal planar
  • Dummy edges have all capacity range 0

0
0
0
1
1
0
0
1
1
1
0
1
0..2
0
1
18
3) Compute the dual graph
  • The dual graph is 3 regular

0
0
0
1
1
0
0
1
1
1
0
1
0..2
0
1
19
3) Compute the dual graph
  • The dual graph is 3 regular
  • Capacity ranges are transferred to the edges of
    the dual

0
0
0
1
1
0
0
1
1
1
0
1
0..2
0
1
20
4) Draw the dual orthogonally
  • We use Tamassia, Tollis, 89

21
5) Transform it into a rigid frame
  • Observe that each vertex has maximum degree 3

22
Tendrils represents flows
  • Let one unit of flow correspond to 4 right angles

1
1
1
F
G
F
G
F
G
G
F
G
F
G
F
G
F
G
F
Tendril T1
Tendril T1
23
Tendrils
  • Tendril Th represents h units of flow between two
    faces

1
2
h
F
G
F
G
F
G
Tendril T1
Tendril T2
Tendril Th
24
Wiggles
  • A wiggle Wc represents the flow between two faces
    with capacity range 0c

Wiggle W2
Wiggle Wh
Wiggle W1
25
6) Produce the final instance
26
Equivalence theorem
  • A flow in the original network N corresponds to
    an HV-drawing of the constructed instance and
    vice-versa

27
Our results
  • HV-rectilinear planarity testing is NP-complete
    in the variable embedding setting
  • even for HV-graphs with vertex-degree at most
    three
  • There exists a polynomial-time algorithm to
    recognize whether a series-parallel HV-graph
    admits an HV-drawing
  • extended to partial 2-trees

28
What are series-parallel graphs
  • A series-parallel graph is either
  • A single edge
  • The series composition of two series-parallel
    graphs
  • The parallel composition of two series-parallel
    graphs
  • We consider biconnected series-parallel graphs
  • One edge, called reference edge, is in parallel
    with the rest of the graph

s
t
29
Series-parallel graphs and SPQ-trees
  • The decomposition tree describes the series and
    parallel composition needed to build the graph

30
Alias vertices and handles
  • Detach a component from the graph
  • Provide it with suitable handles

31
Complex handles
32
Replacement theorem
  • Given a component, two HV-drawings of it with the
    same spirality are equivalent
  • You can replace one with the other and obtain an
    HV-drawing of the graph

33
Tuples
  • Each component can be decorated with a set of
    O(n) tuples
  • each tuple has a value of spirality admitted by
    the component and one realization of such
    spirality

34
Algorithm for series-parallel graphs
  • Traverse bottom-up the SPQ-tree with reference
    edge e
  • For each component compute its set of tuples
    starting from the tuples of its children
  • Observe that O(n2) time is sometimes needed
  • If one component has zero tuples the instance
    does not admit an HV-drawing with e as the
    reference edge
  • Repeat with all possible reference edges

35
Main theorem
  • There exists an O(n4)-time algorithm that tests
    whether a biconnected series-parallel HV-graph
    with n vertices admits an HV-drawing
  • if G has vertex-degree at most 3, the
    time-complexity can be reduced to O(n3 log n).

36
Extension to partial 2-trees
  • A partial 2-tree is a simply connected graph such
    that each biconnected component is either a
    series-parallel graph or a single edge

37
Observation
  • Consider two blocks B1 and B2 of the tree that
    have two cut vertices c1 and c2 that can be
    joined by a path not traversing B1 and B2
  • In any HV-drawing either c1 is on the external
    face of B1 (B1 is HV-extrovert) or c2 is on the
    external face of B2 (B2 is HV-extrovert)

B1
c1
B2
c2
38
Algorithm for partial 2-trees
  • Recursively remove HV-extrovert leaf blocks until
    one of the following occurs
  • T becomes empty the test is positive
  • two blocks that are not HV-extrovert are found
    in this case the test is negative
  • T consists of just one block-node B marked as not
    HV-extrovert
  • in this case we check whether B admits an
    HV-drawing trying all its edges as reference
    edges

39
Open problems
  • Can the O(n4) polynomial bound for
    series-parallel graphs be improved?
  • for comparison, (unrestricted) rectilinear
    planarity testing of series-parallel graphs with
    vertex-degree at most three is linear
  • Zhou, Nishizeki, 08
  • Find a combinatorial characterization for the
    HV-graphs that admit an HV-drawing
  • e.g. in terms of forbidden substructures

40
Thanks!
Write a Comment
User Comments (0)
About PowerShow.com