rectangular representation of weighted outerplanar graphs
play

Rectangular Representation of Weighted Outerplanar Graphs Lorenz - PowerPoint PPT Presentation

Bachelor Colloquium Rectangular Representation of Weighted Outerplanar Graphs Lorenz Reinhart October 01, 2014 Supervisors Philipp Kindermann & Alexander Wolff Chair of Computer Science I Universit at W urzburg Motivation


  1. Proof of correctness u 1 G 2 u 2 u 0 r ( u 4 ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 The invariant is fulfilled because we have one corner where r ( u 4 ) can be placed adjacent to its predecessors r ( u 0 ) and r ( u 1 )

  2. Proof of correctness u 1 G 3 u 2 u 0 r ( u 4 ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 The invariant is fulfilled because we have one corner where r ( u 4 ) can be placed adjacent to its predecessors r ( u 0 ) and r ( u 1 )

  3. Proof of correctness u 1 G 3 u 2 u 0 r ( u 4 ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 The invariant is fulfilled because we have one corner where r ( u 4 ) can be placed adjacent to its predecessors r ( u 0 ) and r ( u 1 ) There is a corner for r ( u 5 ) and r ( u 3 ) where they can be placed adjacent to their predecessors.

  4. Outerplanar Graphs u 1 u 2 u 0 u 3 u 5 u 4 Outerplanar graph : all vertices belong to the unbounded face

  5. Outerplanar Graphs r ( u 2 ) u 1 r ( u 5 ) r ( u 3 ) u 2 u 0 r ( u 4 ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Outerplanar graph : all vertices belong to the unbounded face

  6. Outerplanar Graphs r ( u 2 ) u 1 r ( u 5 ) r ( u 3 ) u 2 u 0 r ( u 4 ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Outerplanar graph : all vertices belong to the unbounded face but not all faces are triangles!

  7. Outerplanar Graphs r ( u 4 ) r ( u 5 ) u 1 u 2 r ( u 3 ) u 0 r ( u 2 ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Outerplanar graph : all vertices belong to the unbounded face but not all faces are triangles! r ( u 1 ) and r ( u 4 ) are not adjacent anymore

  8. Outerplanar Graphs r ( u 4 ) r ( u 5 ) u 1 u 2 r ( u 3 ) u 0 r ( u 2 ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Outerplanar graph : all vertices belong to the unbounded face but not all faces are triangles! r ( u 1 ) and r ( u 4 ) are not adjacent anymore There are vertices that are connected with only one edge

  9. Outerplanar Graphs r ( u 4 ) r ( u 2 ) r ( u 5 ) u 1 u 2 r ( u 3 ) u 0 r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Outerplanar graph : all vertices belong to the unbounded face but not all faces are triangles! r ( u 1 ) and r ( u 4 ) are not adjacent anymore There are vertices that are connected with only one edge

  10. Dummy-nodes u 1 u 2 u 0 u 3 u 5 u 4

  11. Dummy-nodes u 1 u 2 u 0 v u 3 u 5 u 4 Insert an inner dummy-node v ∈ V i for every not triangular inner face and connect it to the surrounding vertices with vu ∈ E i .

  12. Dummy-nodes u 1 u 2 u 0 w v u 3 u 5 u 4 Insert an inner dummy-node v ∈ V i for every not triangular inner face and connect it to the surrounding vertices with vu ∈ E i . Insert an outer dummy-node w ∈ V a for every separating vertex in the graph and add the edges wu ∈ E a .

  13. Dummy-nodes G ′ = ( V ′ , E ′ ) = ( V ∪ V i ∪ V a , E ∪ E i ∪ E a ) u 1 u 2 u 0 w v u 3 u 5 u 4 Insert an inner dummy-node v ∈ V i for every not triangular inner face and connect it to the surrounding vertices with vu ∈ E i . Insert an outer dummy-node w ∈ V a for every separating vertex in the graph and add the edges wu ∈ E a .

  14. Placing the first two rectangles u 1 u 2 u 0 w v u 3 u 5 u 4 Start with an edge in E = E ′ \ { E a ∪ E i }

  15. Placing the first two rectangles u 1 u 2 u 0 w v r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Start with an edge in E = E ′ \ { E a ∪ E i }

  16. Placing the first two rectangles u 1 u 2 u 0 w v r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Start with an edge in E = E ′ \ { E a ∪ E i } Differentiate between three cases: Inner dummy-node v ∈ V i Outer dummy-node v ∈ V a Normal vertex v ∈ V = V ′ \ { V i ∪ V a }

  17. An inner dummy-node u 1 u 2 u 0 w v r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Place the free space corresponding to the node v

  18. An inner dummy-node u 1 u 2 u 0 w v r ( v ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Place the free space corresponding to the node v Place r ( v ) on top of the rectangle with the lower top edge

  19. An inner dummy-node u 1 u 2 u 0 w v r ( v ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Place the free space corresponding to the node v Place r ( v ) on top of the rectangle with the lower top edge The top edge of r ( v ) must be below the top edge of r ( u 1 ) with t v = 1 / 2 · ( t u 0 + t u 1 )

  20. An inner dummy-node u 1 u 2 u 0 w v r ( v ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Place the free space corresponding to the node v Place r ( v ) on top of the rectangle with the lower top edge The top edge of r ( v ) must be below the top edge of r ( u 1 ) with t v = 1 / 2 · ( t u 0 + t u 1 ) Walk clockwise around the inner dummy-node

  21. An inner dummy-node r ( u 3 ) u 1 u 2 u 0 w v r ( v ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Place all following vertices on top of r ( v ) except the last one

  22. An inner dummy-node u 1 u 2 r ( u 3 ) u 0 w v r ( v ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Place all following vertices on top of r ( v ) except the last one The last but one rectangle, in this case r ( u 3 ), must fill the remaining free space on top of r ( v )

  23. An inner dummy-node r ( u 4 ) u 1 u 2 r ( u 3 ) u 0 w v r ( v ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Place all following vertices on top of r ( v ) except the last one The last but one rectangle, in this case r ( u 3 ), must fill the remaining free space on top of r ( v ) The last rectangle must connect its predecessor with the first rectangle

  24. An inner dummy-node u 1 u 2 r ( u 3 ) u 0 r ( u 4 ) w v r ( v ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 If r ( u 4 ) is too small to connect both rectangles reduce the width to increase its height

  25. An inner dummy-node r ( u 4 ) u 1 u 2 r ( u 3 ) u 0 w v r ( v ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 If r ( u 4 ) is too small to connect both rectangles reduce the width to increase its height All rectangles adjacent to r ( v ) have been placed correctly → Finally visit all adjacent faces in G ′

  26. An outer dummy-node r ( u 4 ) u 1 u 2 r ( u 3 ) u 0 w v r ( v ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Insert the outer dummy-node into the rectangular representation with size a ( w ) = 1

  27. An outer dummy-node r ( u 4 ) u 1 u 2 r ( u 3 ) r ( w ) u 0 w v r ( v ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Insert the outer dummy-node into the rectangular representation with size a ( w ) = 1

  28. An outer dummy-node r ( u 4 ) r ( u 2 ) u 1 u 2 r ( u 3 ) r ( w ) u 0 w v r ( v ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Insert the outer dummy-node into the rectangular representation with size a ( w ) = 1 Add the rectangle r ( u 2 ) adjacent to the dummy-node and the separating vertex

  29. An outer dummy-node r ( u 4 ) r ( u 2 ) r ( u 5 ) u 1 u 2 r ( u 3 ) r ( w ) u 0 w v r ( v ) r ( u 1 ) u 3 r ( u 0 ) u 5 u 4 Insert the outer dummy-node into the rectangular representation with size a ( w ) = 1 Add the rectangle r ( u 2 ) adjacent to the dummy-node and the separating vertex

  30. Proof of correctness for outerplanar graphs The correctness is proved similarly to the maximal outerplanar graphs by induction on the number of placed rectangles

  31. Proof of correctness for outerplanar graphs The correctness is proved similarly to the maximal outerplanar graphs by induction on the number of placed rectangles Distinguish between normal node, inner and outer dummy-node: → Process all faces adjacent to a dummy-node in one step!

  32. Proof of correctness for outerplanar graphs The correctness is proved similarly to the maximal outerplanar graphs by induction on the number of placed rectangles Distinguish between normal node, inner and outer dummy-node: → Process all faces adjacent to a dummy-node in one step! r ( u 23 ) u 12 u 1 u 01 r ( u 12 ) r ( u 34 ) u 2 r ( u 3 ) r ( u 2 ) u 0 u 23 r ( u 40 ) w r ( u 4 ) u 3 r ( u 1 ) r ( w ) u 40 u 4 u 34 r ( u 0 )

  33. Proof of correctness for outerplanar graphs Invariant: There is a free corner for the next rectangle r ( w ) to be placed with w ∈ V \ V k , in such a way that it is adjacent to its predecessors r ( u ) and r ( v ) with u , v ∈ V k . r ( u 23 ) u 12 u 1 u 01 r ( u 12 ) r ( u 34 ) u 2 r ( u 3 ) r ( u 2 ) u 0 u 23 r ( u 40 ) w r ( u 4 ) u 3 r ( u 1 ) r ( w ) u 40 u 4 u 34 r ( u 0 )

  34. K -outerplanar graphs A graph is k -outerplanar if removing all vertices on the outer face in its embedding results in a ( k − 1)-outerplanar graph

  35. K -outerplanar graphs A graph is k -outerplanar if removing all vertices on the outer face in its embedding results in a ( k − 1)-outerplanar graph G u 2 u 1 u 0 u 5 u 4 u 3

  36. K -outerplanar graphs A graph is k -outerplanar if removing all vertices on the outer face in its embedding results in a ( k − 1)-outerplanar graph G u 1 u 5 u 4 G is a 2-outerplanar graph: removing all vertices on the unbounded face results in a 1-outerplanar graph

  37. K -outerplanar graphs A graph is k -outerplanar if removing all vertices on the outer face in its embedding results in a ( k − 1)-outerplanar graph G u 2 u 1 u 0 u 5 u 4 u 3 G is a 2-outerplanar graph: removing all vertices on the unbounded face results in a 1-outerplanar graph

  38. K -outerplanar graphs A graph is k -outerplanar if removing all vertices on the outer face in its embedding results in a ( k − 1)-outerplanar graph G u 2 u 1 r ( u 2 ) r ( u 1 ) u 0 u 5 r ( u 5 ) r ( u 3 ) r ( u 4 ) u 4 u 3 G is a 2-outerplanar graph: removing all vertices on the unbounded face results in a 1-outerplanar graph

  39. K -outerplanar graphs A graph is k -outerplanar if removing all vertices on the outer face in its embedding results in a ( k − 1)-outerplanar graph G u 2 u 1 r ( u 2 ) r ( u 1 ) u 0 u 5 r ( u 5 ) r ( u 3 ) r ( u 4 ) u 4 u 3 G is a 2-outerplanar graph: removing all vertices on the unbounded face results in a 1-outerplanar graph It is not possible to draw r ( u 0 ) adjacent to all rectangles surrounding r ( u 5 )!

  40. K -outerplanar graphs A graph is k -outerplanar if removing all vertices on the outer face in its embedding results in a ( k − 1)-outerplanar graph G u 2 u 1 r ( u 2 ) r ( u 1 ) u 0 There are 2-outerplanar graphs, which can not be drawn! u 5 r ( u 5 ) r ( u 3 ) r ( u 4 ) u 4 u 3 G is a 2-outerplanar graph: removing all vertices on the unbounded face results in a 1-outerplanar graph It is not possible to draw r ( u 0 ) adjacent to all rectangles surrounding r ( u 5 )!

  41. Recapitulation Draw the rectangles with the desired size

  42. Recapitulation Draw the rectangles with the desired size � No need for a surrounding rectangle

  43. Recapitulation Draw the rectangles with the desired size � No need for a surrounding rectangle � Extension to general graph classes

  44. Recapitulation Draw the rectangles with the desired size � No need for a surrounding rectangle � Extension to general graph classes � Every rectangular representation is possible to draw

  45. Recapitulation Draw the rectangles with the desired size � No need for a surrounding rectangle � Extension to general graph classes � Every rectangular representation is possible to draw �

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend