Planar Graphs: Coloring and Drawing

Slides:



Advertisements
Similar presentations
The Primal-Dual Method: Steiner Forest TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A AA A A A AA A A.
Advertisements

Graph Algorithms - 3 Algorithm Design and Analysis Victor AdamchikCS Spring 2014 Lecture 13Feb 12, 2014Carnegie Mellon University.
Weighted Matching-Algorithms, Hamiltonian Cycles and TSP
Great Theoretical Ideas in Computer Science for Some.
Certifying algorithms Algorithms and Networks. Certifying algorithms What is it? Examples: –Euler tour –Bipartite graphs –Flow –Planarity Certifying algorithms2.
Complexity ©D.Moshkovits 1 Where Can We Draw The Line? On the Hardness of Satisfiability Problems.
Min-Max Relations, Hall’s Theorem, and Matching-Algorithms Graphs & Algorithms Lecture 5 TexPoint fonts used in EMF. Read the TexPoint manual before you.
Planar graphs Algorithms and Networks. Planar graphs2 Can be drawn on the plane without crossings Plane graph: planar graph, given together with an embedding.
Bart Jansen 1.  Problem definition  Instance: Connected graph G, positive integer k  Question: Is there a spanning tree for G with at least k leaves?
Covers, Dominations, Independent Sets and Matchings AmirHossein Bayegan Amirkabir University of Technology.
Interval Graph Test.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
Divide and Conquer. Subject Series-Parallel Digraphs Planarity testing.
Map Overlay Algorithm. Birch forest Wolves Map 1: Vegetation Map 2: Animals.
Backtrack Algorithm for Listing Spanning Trees R. C. Read and R. E. Tarjan (1975) Presented by Levit Vadim.
Convex drawing chapter 5 Ingeborg Groeneweg. Summery What is convex drawing What is convex drawing Some definitions Some definitions Testing convexity.
The Four Color Theorem (4CT)
Planarity and Higher Order Embeddings Shawn Cox CS 594: Graph Theory
CS774. Markov Random Field : Theory and Application Lecture 17 Kyomin Jung KAIST Nov
Convex Grid Drawings of 3-Connected Plane Graphs Erik van de Pol.
What is the next line of the proof? a). Let G be a graph with k vertices. b). Assume the theorem holds for all graphs with k+1 vertices. c). Let G be a.
Computational Geometry Seminar Lecture 1
Graph Colouring Lecture 20: Nov 25.
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
Definition Dual Graph G* of a Plane Graph:
Theorem Every planar graph is 5-colorable.
Straight line drawings of planar graphs – part I Roeland Luitwieler.
Chapter 4: Straight Line Drawing Ronald Kieft. Contents Introduction Algorithm 1: Shift Method Algorithm 2: Realizer Method Other parts of chapter 4 Questions?
1 Separator Theorems for Planar Graphs Presented by Shira Zucker.
Rectangular Drawing Imo Lieberwerth. Content Introduction Rectangular Drawing and Matching Thomassen’s Theorem Rectangular drawing algorithm Advanced.
The Art Gallery Problem
Graph Theory Ch6 Planar Graphs. Basic Definitions  curve, polygon curve, drawing  crossing, planar, planar embedding, and plane graph  open set  region,
Graph Theory Chapter 6 Planar Graphs Ch. 6. Planar Graphs.
Subdivision of Edge In a graph G, subdivision of an edge uv is the operation of replacing uv with a path u,w,v through a new vertex w.
Planar Graphs: Euler's Formula and Coloring Graphs & Algorithms Lecture 7 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.:
Straight line drawings of planar graphs – part II Roeland Luitwieler.
1 Orthogonal Drawing (continued)  Sections 8.3 – 8.5 from the book  Bert Spaan.
Canonical Decomposition, Realizer, Schnyder Labeling and Orderly Spanning Trees of Plane Graphs Kazuyuki Miura, Machiko Azuma and Takao Nishizeki title.
Edge-disjoint induced subgraphs with given minimum degree Raphael Yuster 2012.
How many faces do you get from walking the faces of this rotation system of K 4 ? Is this an embedding of K 4 in the plane? 0 : : : 0 3.
Graph Theory in Networks Lecture 4, 9/9/04 EE 228A, Fall 2004 Rajarshi Gupta University of California, Berkeley.
V Spanning Trees Spanning Trees v Minimum Spanning Trees Minimum Spanning Trees v Kruskal’s Algorithm v Example Example v Planar Graphs Planar Graphs v.
Planar Graphs Graph Coloring
VLSI Layout Algorithms CSE 6404 A 46 B 65 C 11 D 56 E 23 F 8 H 37 G 19 I 12J 14 K 27 X=(AB*CD)+ (A+D)+(A(B+C)) Y = (A(B+C)+AC+ D+A(BC+D)) Dr. Md. Saidur.
Stefan Felsner planar graph G planar embedding of G A graph G is planar if it can be drawn on the plane with no crossing edges.
Graph Colouring Lecture 20: Nov 25. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including.
The four colour theorem
Vertex orderings Vertex ordering.
NPC.
Great Theoretical Ideas in Computer Science for Some.
Various Orders and Drawings of Plane Graphs Takao Nishizeki Tohoku University.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Planarity Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering, IIT.
FOUR COLOR THEOREM BY: JUSTIN GILMORE. FOUR COLOR THEOREM The four-color theorem states that any map in a plane can be colored using four-colors in such.
Algorithms and Networks
Great Theoretical Ideas In Computer Science
Discrete Mathematics Graph: Planar Graph Yuan Luo
Graph Coloring CS 594 Stephen Grady.
Planarity Testing.
The Art Gallery Problem
The Art Gallery Problem
Planarity Cox, Sherman, Tong.
Graph.
Analysis of Algorithms
Discrete Math II Howon Kim
Three-coloring triangle-free planar graphs in linear time (SODA 09’)
Vertex orderings.
Planarity.
Richard Anderson Lecture 5 Graph Theory
Minimum Spanning Trees
Drawing a graph
Presentation transcript:

Planar Graphs: Coloring and Drawing Graphs & Algorithms Lecture 8 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAAAAAAA

Coloring maps with 4 colors Four Color Theorem (Appel, Haken 1976) If G is planar, then (G) · 4 . Idea of the proof W.l.o.g. we can assume G is a planar triangulation. A configuration is a separating cycle C µ G (the ring) together with the portion of G inside C. For the Four Color Problem, a set of configurations is an unavoidable set if a minimum counterexample must contain some member of it. A configuration is reducible if a planar graph containing cannot be a minimal counterexample. Find an unavoidable set in which each configuration is reducible.

A problem with a long history Kempe's original attempt (1879) with a set of 3 unavoidable configurations was wrong. Appel and Haken, working with Koch, (1976) came up with a set of 1936 unavoidable configurations, each of which is reducible (1000 hours of computer time). Robertson, Sanders, Seymour, and Thomas (1996) used a set of 633 unavoidable configurations (3 hours of computer time).

Algorithms for coloring planar graphs Coloring a planar graph with k · 2 (if possible) or k ¸ 6 colors is trivial. Heawood's proof of the 5-Coloring Theorem can be turned into a O(n2) algorithm for k = 5. There exist O(n) algorithms for 5-coloring. The proof of Appel and Haken of the 4-Coloring Theorem can be turned into a O(n4) algorithm. Robertson, Sanders, Seymour, and Thomas [1996] provide a O(n2) algorithm for k = 4. Deciding whether a planar graph G permits a coloring for k = 3 is NP-complete even if (G) · 4.

Characterization of planar graphs Subdivision of K5 and K3, 3: Theorem (Kuratowski [1930]) A graph is planar if and only if it does not contain a subdivision of K5 or K3, 3. Can we use this for planarity testing? Testing all subsets of the vertex set requires exponential time.

H-fragments and the conflict graph Let G and H be a graphs such that H µ G. An H-fragment is either an edge not H whose endpoints are in H, or a component of G – V(H) together with the edges (and vertices of attachment) that connect it to H. Let C be a cycle in G. Two C-fragments A, B conflict if they have three common vertices of attachment to C or if there are four vertices v1, v2, v3, v4 in cyclic order on C such that v1, v3 are vertices of attachment of A and v2, v4 are vertices of attachment of B. The conflict graph of C is a graph whose vertices are the C-fragments of G with edges between conflicting C-fragments. Show the example!

Another characterization Theorem (Tutte [1958]) A graph is planar if and only if it the conflict graph of each cycle in G is bipartite. Examples conflict graph of a spanning cycle of K5 is C5 conflict graph of a spanning cycle of K3, 3 is C3 Can we use this for planarity testing? Yields a quadratic algorithm.

A quadratic planarity testing algorithm Due to Demoucron, Malgrange, and Pertuiset [1964] Ideas Suppose a planar embedding of H can be extended to a planar embedding of G (invariant). Build increasingly large plane subgraphs H µ G that can be extended to an embedding of G if G is planar. Make small decisions that do not lead into trouble. Enlarge H by choosing a face F that can accept some H-fragment B (boundary of F contains attachment of B). Add any path in B between any two vertices of attachment to H (there is just one way to embed the path into F).

Planarity testing algorithm G is planar iff every block of G is planar. check e(G) · 3n - 6 maintain appropriate lists for face boundaries each search takes linear time

The switching argument Unless there is a conflict like this Impossible! (© D. West 2001)

Other planarity testing algorithms Hopcroft and Tarjan [1974] and Booth and Luecker [1976] present complicated linear time algorithms. Boyer and Myrvold [1999] present a simpler algorithm. The proof of Kuratowski's Theorem by Klotz [1989] can be turned into a quadratic algorithm. It finds a subdivision of K5 or K3, 3 when G is not planar.

Drawing planar graphs What is an aesthetically appealing drawing? Theorem (Fáry [1948]) Each planar graph has an embedding in which all edges are straight line segments. We call an embedding of a planar graph in which all edges are straight line segments a Fáry embedding.

Constructing Fáry embeddings Theorem (Fraysseix, Pach, and Pollack [1990]) Any plane graph with n vertices has a Fáry embedding on the 2n – 4 by n – 2 grid. The proof is constructive and yields a quadratic algorithm, which can be improved to O(n log n). Before this work, it was not even known whether there always exists a Fáry embedding into a grid of polynomial size. The grid size is asymptotically optimal. W.l.o.g. assume that G is a triangulation, or add dummy edges otherwise.

Canonical ordering Lemma (Canonical representation for plane graphs) Let G be a maximal planar graph embedded in the plane with exterior face u, v, w. Then there exists a labeling of the vertices v1 = u, v2 = v, v3, …,vn = w such that, for every 4 · k · n, we have: The subgraph Gk – 1 µ G induced by v1, v2, …, vk – 1 is 2-connected, and the boundary of its exterior face is a cycle Ck – 1 containing the edge {u, v}. vk is in the exterior face of Gk – 1, and its neighbors in Gk - 1 form an (at least 2-element) subinterval of the path Ck – 1 – {u, v}. Proof Construct the labeling recursively (easy in O(n2)).

Finding Fáry embeddings iteratively Suppose we are given a Fáry embedding of Gk – 1 = G[v1, …, vk – 1]. Let u = w1, w2, …, wm = v be the vertices on the outer border of Gk – 1. Let wl and wr denote the leftmost and rightmost neighbors on the outer border of Gk – 1, respectively. Idea: move every vertex to the right of wl by one unit, every vertex to the right of wr (including wr) by another unit. vk wr wl v u

The Fáry embedding algorithm

Correctness of the algorithm The FáryEmbedding algorithm maintains the following invariants for all 3 · k · n: x[u] = y[u] = 0 x[v] = 2k – 4 and y[v] = 0 For the vertices u = w1, w2, …, wm = v on the outer. border of Gk – 1, we have w1 < w2 < … < wm . Each edge {wi, wi + 1}, 1 · i < m, has slope +1 or -1. It is possible to compute a canonical ordering in linear time. Using a clever updating strategy and appropriate data structures yields running time is O(n log n).