Planar Graphs Have Bounded Queue-Number∗
Total Page:16
File Type:pdf, Size:1020Kb
Planar Graphs have Bounded Queue-Number∗ § Vida Dujmović y Gwenaël Joret z Piotr Micek Pat Morin { Torsten Ueckerdt k David R. Wood zz April 9, 2019 revised: May 1, 2020 Abstract We show that planar graphs have bounded queue-number, thus proving a conjecture of Heath, Leighton and Rosenberg from 1992. The key to the proof is a new structural tool called layered partitions, and the result that every planar graph has a vertex-partition and a layering, such that each part has a bounded number of vertices in each layer, and the quotient graph has bounded treewidth. This result generalises for graphs of bounded Euler genus. Moreover, we prove that every graph in a minor-closed class has such a layered partition if and only if the class excludes some apex graph. Building on this work and using the graph minor structure theorem, we prove that every proper minor-closed class of graphs has bounded queue-number. Layered partitions have strong connections to other topics, including the following two examples. First, they can be interpreted in terms of strong products. We show that every planar graph is a subgraph of the strong product of a path with some graph of bounded treewidth. Similar statements hold for all proper minor-closed classes. Second, we give a simple proof of the result by DeVos et al. (2004) that graphs in a proper minor-closed class have low treewidth colourings. ySchool of Computer Science and Electrical Engineering, University of Ottawa, Ottawa, Canada arXiv:1904.04791v5 [cs.DM] 30 Apr 2020 ([email protected]). Research supported by NSERC and the Ontario Ministry of Research and In- novation. zDépartement d’Informatique, Université Libre de Bruxelles, Brussels, Belgium ([email protected]). Research supported by an ARC grant from the Wallonia-Brussels Federation of Belgium. §Theoretical Computer Science Department, Faculty of Mathematics and Computer Science, Jagiellonian University, Kraków, Poland ([email protected]). Research partially supported by the Polish National Science Center grant (SONATA BIS 5; UMO-2015/18/E/ST6/00299). {School of Computer Science, Carleton University, Ottawa, Canada ([email protected]). Research supported by NSERC. kInstitute of Theoretical Informatics, Karlsruhe Institute of Technology, Germany ([email protected]). zzSchool of Mathematics, Monash University, Melbourne, Australia ([email protected]). Research sup- ported by the Australian Research Council. ∗An extended abstract of this paper appeared in Proceedings 60th Annual Symposium on Foundations of Computer Science (FOCS ’19), pp. 862–875, IEEE. https://doi.org/10.1109/FOCS.2019.00056. 1 Contents 1 Introduction 3 1.1 Main Results . .5 1.2 Outline . .6 2 Tools 6 2.1 Layerings . .7 2.2 Treewidth and Layered Treewidth . .7 2.3 Partitions and Layered Partitions . .8 3 Queue Layouts via Layered Partitions 10 4 Proof of Theorem1: Planar Graphs 12 4.1 Reducing the Bound . 15 5 Proof of Theorem2: Bounded-Genus Graphs 19 6 Proof of Theorem3: Excluded Minors 23 6.1 Characterisation . 25 7 Strong Products 28 8 Non-Minor-Closed Classes 31 8.1 Allowing Crossings . 32 8.2 Map Graphs . 32 8.3 String Graphs . 33 9 Applications and Connections 33 9.1 Low Treewidth Colourings . 33 9.2 Track Layouts . 35 9.3 Three-Dimensional Graph Drawing . 36 10 Open Problems 37 2 1 Introduction Stacks and queues are fundamental data structures in computer science. But what is more powerful, a stack or a queue? In 1992, Heath, Leighton, and Rosenberg [67] developed a graph- theoretic formulation of this question, where they defined the graph parameters stack-number and queue-number which respectively measure the power of stacks and queues to represent a given graph. Intuitively speaking, if some class of graphs has bounded stack-number and unbounded queue-number, then we would consider stacks to be more powerful than queues for that class (and vice versa). It is known that the stack-number of a graph may be much larger than the queue-number. For example, Heath et al. [67] proved that the n-vertex ternary Hamming graph 1=9 has queue-number at most O(log n) and stack-number at least Ω(n − ). Nevertheless, it is open whether every graph has stack-number bounded by a function of its queue-number, or whether every graph has queue-number bounded by a function of its stack-number [55, 67]. Planar graphs are the simplest class of graphs where it is unknown whether both stack and queue-number are bounded. In particular, Buss and Shor [20] first proved that planar graphs have bounded stack-number; the best known upper bound is 4 due to Yannakakis [116]. However, for the last 27 years of research on this topic, the most important open question in this field has been whether planar graphs have bounded queue-number. This question was first proposed by Heath et al. [67] who conjectured that planar graphs have bounded queue-number.1 This paper proves this conjecture. Moreover, we generalise this result for graphs of bounded Euler genus, and for every proper minor-closed class of graphs.2 First we define the stack-number and queue-number of a graph G. Let V (G) and E(G) respectively denote the vertex and edge set of G. Consider disjoint edges vw; xy 2 E(G) and a linear ordering 4 of V (G). Without loss of generality, v ≺ w and x ≺ y and v ≺ x. Then vw and xy are said to cross if v ≺ x ≺ w ≺ y and are said to nest if v ≺ x ≺ y ≺ w.A stack (with respect to 4) is a set of pairwise non-crossing edges, and a queue (with respect to 4) is a set of pairwise non-nested edges. Stacks resemble the stack data structure in the following sense. In a stack, traverse the vertex ordering left-to-right. When visiting vertex v, because of the non-crossing property, if x1; : : : ; xd are the neighbours of v to the left of v in left-to-right order, then the edges xdv; xd 1v; : : : ; x1v − will be on top of the stack in this order. Pop these edges off the stack. Then if y1; : : : ; yd0 are the neighbours of v to the right of v in left-to-right order, then push vyd0 ; vyd0 1; : : : ; vy1 onto the stack in this order. In this way, a stack of edges with respect to a linear ordering− resembles a stack data structure. Analogously, the non-nesting condition in the definition of a queue implies that a queue of edges with respect to a linear ordering resembles a queue data structure. For an integer k > 0, a k-stack layout of a graph G consists of a linear ordering 4 of V (G) and a partition E1;E2;:::;Ek of E(G) into stacks with respect to 4. Similarly, a k-queue layout of G 1Curiously, in a later paper, Heath and Rosenberg [70] conjectured that planar graphs have unbounded queue- number. 2The Euler genus of the orientable surface with h handles is 2h. The Euler genus of the non-orientable surface with c cross-caps is c. The Euler genus of a graph G is the minimum integer k such that G embeds in a surface of Euler genus k. Of course, a graph is planar if and only if it has Euler genus 0; see [87] for more about graph embeddings in surfaces. A graph H is a minor of a graph G if a graph isomorphic to H can be obtained from a subgraph of G by contracting edges. A class G of graphs is minor-closed if for every graph G 2 G, every minor of G is in G. A minor-closed class is proper if it is not the class of all graphs. For example, for fixed g > 0, the class of graphs with Euler genus at most g is a proper minor-closed class. 3 consists of a linear ordering 4 of V (G) and a partition E1;E2;:::;Ek of E(G) into queues with respect to 4. The stack-number of G, denoted by sn(G), is the minimum integer k such that G has a k-stack layout. The queue-number of a graph G, denoted by qn(G), is the minimum integer k such that G has a k-queue layout. Note that k-stack layouts are equivalent to k-page book embeddings, first introduced by Ollmann [90], and stack-number is also called page-number, book thickness, or fixed outer-thickness. Stack and queue layouts are inherently related to depth-first search and breadth-first search respectively. For example, a DFS ordering of the vertices of a tree has no two crossing edges, and thus defines a 1-stack layout. Similarly, a BFS ordering of the vertices of a tree has no two nested edges, and thus defines a 1-queue layout. So every tree has stack-number 1 and queue-number 1. For another example, consider the n × n grid graph with vertex set f(x; y): x; y 2 [n]g and edges of the form (x; y)(x + 1; y) and (x; y)(x; y + 1). Order the vertices first by x-coordinate and then by y-coordinate. Edges of the first type do not nest and edges of the second type do not nest. Thus the n × n grid graph has a 2-queue layout. In fact, as illustrated in Figure1, if we order the vertices by x + y and then by x-coordinate, then no two edges nest. So the n × n grid graph has queue-number 1.