sketched representations and orthogonal planarity of
play

Sketched Representations and Orthogonal Planarity of Bounded - PowerPoint PPT Presentation

Sketched Representations and Orthogonal Planarity of Bounded Treewidth Graphs Emilio Di Giacomo, Giuseppe Liotta, Fabrizio Montecchiani University of Perugia, Italy GD 2019, September 17-20, 2019, Pr uhonice/Prague Orthogonal Drawings An


  1. Sketched Representations and Orthogonal Planarity of Bounded Treewidth Graphs Emilio Di Giacomo, Giuseppe Liotta, Fabrizio Montecchiani University of Perugia, Italy GD 2019, September 17-20, 2019, Pr˚ uhonice/Prague

  2. Orthogonal Drawings An orthogonal drawing of a planar graph with max degree 4 is a planar drawing where each edge is drawn as a chain of horizontal and vertical segments.

  3. Orthogonal Drawings An orthogonal drawing of a planar graph with max degree 4 is a planar drawing where each edge is drawn as a chain of horizontal and vertical segments. bend Rectilinear (no bends) Orthogonal drawing Orthogonal drawing drawing with 7 bends with 4 bends

  4. Orthogonal Drawings An orthogonal drawing of a planar graph with max degree 4 is a planar drawing where each edge is drawn as a chain of horizontal and vertical segments. bend Rectilinear (no bends) Orthogonal drawing Orthogonal drawing drawing with 7 bends with 4 bends Every planar graph with max degree 4 (except the octahedron) admits an orthogonal drawing with at most 2 bends per edge and at most 2n + 2 bends in total [Biedl & Kant 1998] .

  5. Orthogonal Planarity OrthogonalPlanarity: Given a planar graph G and an integer b , does G admit an orthogonal drawing with at most b bends? 1 1 2 3 2 3 4 4 � G, b = 4 � Γ

  6. Orthogonal Planarity OrthogonalPlanarity: Given a planar graph G and an integer b , does G admit an orthogonal drawing with at most b bends? • NP-complete for b = 0 [Garg & Tamassia 2001] . • NP-hard to approximate the minimum number of bends with an O ( n 1 − ε ) error ( ε > 0 ) [Garg & Tamassia 2001] . • If G is 2 -connected, FPT algorithm parametrized by the number of degree-4 vertices [Didimo & Liotta 1998] . • O ( n 4 ) -time algorithm for series-parallel graphs [Di Battista, Liotta, Vargiu 1998] . 1 1 2 3 2 3 4 4 � G, b = 4 � Γ

  7. Related Problems HV-Planarity : Given planar graph G whose edges are each labeled H (horizontal) or V (vertical), does G admit a rectilinear drawing in which edge directions are consistent with their labels? H H V 2 1 2 1 V 3 V V 5 H 4 H H H 4 3 5 V 6 V V V V V H H H 6 8 H 7 8 7

  8. Related Problems HV-Planarity : Given planar graph G whose edges are each labeled H (horizontal) or V (vertical), does G admit a rectilinear drawing in which edge directions are consistent with their labels? • NP-complete [Didimo, Liotta, Patrignani 2019] . • O ( n 4 ) -time algorithm for series-parallel graphs [Didimo, Liotta, Patrignani 2019] . H H V 2 1 2 1 V 3 V V 5 H 4 H H H 4 3 5 V 6 V V V V V H H H 6 8 H 7 8 7

  9. Related Problems FlexDraw : Given a planar graph G whose edges have integer weights, does G admit an orthogonal drawing where each edge has a number of bends that is at most its weight? 1 1 2 2 0 0 2 0 3 3 0 3 2 3 0 0 1 4 1 4

  10. Related Problems FlexDraw : Given a planar graph G whose edges have integer weights, does G admit an orthogonal drawing where each edge has a number of bends that is at most its weight? • NP-complete [Garg & Tamassia 2001; Bl¨ asius, Krug, Rutter 2014] . • O ( n 2 ) -time algorithm if weights are positive [Bl¨ asius, Krug, Rutter 2014] . • FPT algorithm parametrized by the number of edges that cannot be bent [Bl¨ asius, Lehmann, Rutter 2016] . 1 1 2 2 0 0 2 0 3 3 0 3 2 3 0 0 1 4 1 4

  11. Contribution

  12. Contribution Main Theorem: OrthogonalPlanarity ( HV-Planarity, FlexDraw ) can be solved in polynomial time for graphs of bounded treewidth. • The problems lie in the XP class parameterized by treewidth (time complexity is n g ( k ) , where k is the treewidth). • Can be used to minimize bends.

  13. Contribution Main Theorem: OrthogonalPlanarity ( HV-Planarity, FlexDraw ) can be solved in polynomial time for graphs of bounded treewidth. • The problems lie in the XP class parameterized by treewidth (time complexity is n g ( k ) , where k is the treewidth). • Can be used to minimize bends. Corollary: OrthogonalPlanarity ( HV-Planarity ) can be solved in O ( n 3 log n ) time for series-parallel graphs. • Improves on previous O ( n 4 ) bounds [Di Battista, Liotta, Vargiu 1998; Didimo, Liotta, Patrignani 2019] .

  14. Proof Ideas & Tools

  15. An FPT Algorithm • Constructive proof based on FPT algorithm with parameters: treewidth k , num. of degree-2 vertices σ and num. of bends b .

  16. An FPT Algorithm • Constructive proof based on FPT algorithm with parameters: treewidth k , num. of degree-2 vertices σ and num. of bends b . Fine-grained Theorem: Let G be an n -vertex planar graph. Given a tree-decomposition of G of width k , there is an algorithm that decides OrthogonalPlanarity in f ( k, σ, b ) · n time, where f ( k, σ, b ) = k O ( k ) ( σ + b ) k log( σ + b ) . The algorithm computes a drawing of G , if one exists.

  17. Tree-decomposition A tree-decomposition of a graph G = ( V, E ) is a pair ( X , T ) s.t.: 2 1 3 5 4 6 7 8

  18. Tree-decomposition A tree-decomposition of a graph G = ( V, E ) is a pair ( X , T ) s.t.: • X = { X 1 , X 2 , . . . , X ℓ } is a set of subsets of V called bags, 4 3 8 5 2 1 3 5 4 3 7 8 1 2 3 5 4 6 3 7 8 7 8 3 6 7 7 8

  19. Tree-decomposition A tree-decomposition of a graph G = ( V, E ) is a pair ( X , T ) s.t.: • X = { X 1 , X 2 , . . . , X ℓ } is a set of subsets of V called bags, • T is a tree, each node is mapped to a bag of X , 4 3 8 5 2 1 3 5 4 3 7 8 1 2 3 5 4 6 3 7 8 7 8 3 6 7 7 8

  20. Tree-decomposition A tree-decomposition of a graph G = ( V, E ) is a pair ( X , T ) s.t.: • X = { X 1 , X 2 , . . . , X ℓ } is a set of subsets of V called bags, • T is a tree, each node is mapped to a bag of X , • ∀ ( u, v ) ∈ E , ∃ X i : u, v ∈ X i , • ∀ v ∈ V the bags containing v induces a non-empty subtree of T 4 3 8 5 2 1 3 5 4 3 7 8 1 2 3 5 4 6 3 7 8 7 8 3 6 7 7 8

  21. Tree-decomposition A tree-decomposition of a graph G = ( V, E ) is a pair ( X , T ) s.t.: • X = { X 1 , X 2 , . . . , X ℓ } is a set of subsets of V called bags, • T is a tree, each node is mapped to a bag of X , • ∀ ( u, v ) ∈ E , ∃ X i : u, v ∈ X i , • ∀ v ∈ V the bags containing v induces a non-empty subtree of T The width of ( X , T ) is max ℓ i =1 | X i | − 1 . The treewidth of G is the minimum width over all its tree-decompositions. 4 3 8 5 2 1 3 5 4 3 7 8 1 2 3 5 4 width ≤ 3 6 3 7 8 7 8 3 6 7 7 8

  22. Nice Tree-decomposition ( X , T ) is nice if T is a binary rooted tree and: 2 1 3 5 4 6 7 8

  23. Nice Tree-decomposition ( X , T ) is nice if T is a binary rooted tree and: • ( JOIN ) if X i has 2 children X j and X j ′ then X i = X j = X j ′ 4 85 3 4 85 3 4 85 3 2 1 3 5 378 4 378 378 6 7 8 367 367 367

  24. Nice Tree-decomposition ( X , T ) is nice if T is a binary rooted tree and: • ( JOIN ) if X i has 2 children X j and X j ′ then X i = X j = X j ′ • if X i of T has only 1 child X j then there is v ∈ V s.t. either – ( INTRODUCE ) X i = X j ∪ { v } , or – ( FORGET ) X i ∪ { v } = X j 4 85 3 4 85 3 4 85 3 4 8 3 4 35 2 1 4 78 3 35 3 5 378 135 4 378 378 1 35 6 2 37 78 1 3 2 7 8 367 12 367 367 36 67

  25. Nice tree decomposition IDEA: design a dynamic programming algorithm based on a nice tree-decomposition of the graph

  26. Nice tree decomposition IDEA: design a dynamic programming algorithm based on a nice tree-decomposition of the graph INTRODUCE vertex in all drawings 3 3 6 7 6 7 367 36

  27. Nice tree decomposition IDEA: design a dynamic programming algorithm based on a nice tree-decomposition of the graph FORGET (DEACTIVATE) vertex in all drawings 1 2 5 1 2 5 135 3 3 1 35 2 1 3 2 12

  28. Nice tree decomposition IDEA: design a dynamic programming algorithm based on a nice tree-decomposition of the graph JOIN all pairs of drawings 5 1 2 5 4 85 3 4 85 3 4 85 3 4 4 3 3 4 8 3 4 35 6 4 78 3 35 378 135 7 8 8 378 378 1 35 2 1 2 5 37 78 1 3 2 4 3 367 12 367 367 6 36 67 7 8

  29. Nice tree decomposition IDEA: design a dynamic programming algorithm based on a nice tree-decomposition of the graph TODO: design abstract (small) records to replace drawings!

  30. Orthogonal Representations An orthogonal representation of a plane graph G represents an equivalence class of orthogonal drawings with the same “shape” [Tamassia, 1987] . π 0 -1 π π 1 0 0 π π 0 π 2 π π 2 π 0 π 2 1 2 0 π -1 O ( n ) time π π 0 0 2 2 1 -1 3 π 0 0 π 2 2 2 π -2 π π 2 2 2 0 3 π π 2 0

  31. Orthogonal Representations An orthogonal representation of a plane graph G represents an equivalence class of orthogonal drawings with the same “shape” [Tamassia, 1987] . π 0 -1 π π 1 0 0 π π 0 π 2 π π 2 π 0 π 2 1 2 0 π -1 O ( n ) time π π 0 0 2 2 1 -1 3 π 0 0 π 2 2 2 π -2 π π 2 2 2 0 3 π π 2 0 It is a feasible assignment of angles to each vertex-face incidence and of integers to each edge-face incidence, where feasible means: 2) The sum of the angles π 1) The sum of the angles 2 inside a face comply with 0 3 π π π around a vertex is 2 π 0 2 2 an orthogonal polygon 2 3 π 0 2 2 π 2 + π 2 + π 2 +2 · π 2 − π 2 = π 2 π (4 − 2) = 2 π

Recommend


More recommend