Pattern detection in ordered graphs

A popular way to define or characterize graph classes is via forbidden subgraphs or forbidden minors. These characterizations play a key role in graph theory, but they rarely lead to efficient algorithms to recognize these classes. In contrast, many essential graph classes can be recognized efficiently thanks to characterizations of the following form: there must exist an ordering of the vertices such that some ordered pattern does not appear, where a pattern is basically an ordered subgraph. These pattern characterizations have been studied for decades, but there have been recent efforts to better understand them systematically. In this paper, we focus on a simple problem at the core of this topic: given an ordered graph of size $n$, how fast can we detect whether a fixed pattern of size $k$ is present? Following the literature on graph classes recognition, we first look for patterns that can be detected in linear time. We prove, among other results, that almost all patterns on three vertices (which capture many interesting classes, such as interval, chordal, split, bipartite, and comparability graphs) fall in this category. Then, in a finer-grained complexity perspective, we prove conditional lower bounds for this problem. In particular we show that for a large family of patterns on four vertices it is unlikely that subquadratic algorithm exist. Finally, we define a parameter for patterns, the merge-width, and prove that for patterns of merge-width $t$, one can solve the problem in $O(n^{ct})$ for some constant~$c$. As a corollary, we get that detecting outerplanar patterns and other classes of patterns can be done in time independent of the size of the pattern.

[1]  V. V. Williams,et al.  Induced Cycles and Paths Are Harder Than You Think , 2022, 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS).

[2]  Michel Habib,et al.  Classifying grounded intersection graphs via ordered forbidden patterns , 2021, ArXiv.

[3]  V. V. Williams ON SOME FINE-GRAINED QUESTIONS IN ALGORITHMS AND COMPLEXITY , 2019, Proceedings of the International Congress of Mathematicians (ICM 2018).

[4]  Virginia Vassilevska Williams,et al.  Graph pattern detection: hardness for all induced patterns and faster non-induced cycles , 2019, STOC.

[5]  Michel Habib,et al.  Graph classes and forbidden patterns on three vertices , 2018, SIAM J. Discret. Math..

[6]  J. Wishart Statistical tables , 2018, Global Education Monitoring Report.

[7]  Richard Ryan Williams,et al.  Tight Hardness for Shortest Cycles and Paths in Sparse Graphs , 2017, SODA.

[8]  Ekkehard Köhler,et al.  On the Power of Graph Searching for Cocomparability Graphs , 2016, SIAM J. Discret. Math..

[9]  M. Schaefer The Graph Crossing Number and its Variants: A Survey , 2013 .

[10]  Virginia Vassilevska Williams,et al.  Multiplying matrices faster than coppersmith-winograd , 2012, STOC '12.

[11]  Kurt Mehlhorn,et al.  Certifying algorithms , 2011, Comput. Sci. Rev..

[12]  Richard Ryan Williams,et al.  Subcubic Equivalences between Path, Matrix and Triangle Problems , 2010, 2010 IEEE 51st Annual Symposium on Foundations of Computer Science.

[13]  Derek G. Corneil,et al.  A Unified View of Graph Searching , 2008, SIAM J. Discret. Math..

[14]  Michel Habib,et al.  Simpler Linear-Time Modular Decomposition Via Recursive Factorizing Permutations , 2008, ICALP.

[15]  Frank Pok Man Chu,et al.  A simple linear time certifying LBFS-based algorithm for recognizing trivially perfect graphs and their complements , 2008, Inf. Process. Lett..

[16]  Laurent Viennot,et al.  Lex-BFS and partition refinement, with applications to transitive orientation, interval graph recognition and consecutive ones testing , 2000, Theor. Comput. Sci..

[17]  Jeremy P. Spinrad,et al.  Modular decomposition and transitive orientation , 1999, Discret. Math..

[18]  Victor Y. Pan,et al.  Fast Rectangular Matrix Multiplication and Applications , 1998, J. Complex..

[19]  G. Chang,et al.  Quasi-threshold Graphs , 1996, Discret. Appl. Math..

[20]  Michel Habib,et al.  Chordal Graphs and Their Clique Graphs , 1995, WG.

[21]  Robert E. Tarjan,et al.  Simple Linear-Time Algorithms to Test Chordality of Graphs, Test Acyclicity of Hypergraphs, and Selectively Reduce Acyclic Hypergraphs , 1984, SIAM J. Comput..

[22]  Robert E. Tarjan,et al.  Algorithmic Aspects of Vertex Elimination on Graphs , 1976, SIAM J. Comput..

[23]  T. Gallai Transitiv orientierbare Graphen , 1967 .

[24]  J. M. S. Simões-Pereira,et al.  Algorithm 235: Random permutation , 1964, Commun. ACM.

[25]  Lorna Stewart,et al.  A Linear Recognition Algorithm for Cographs , 1985, SIAM J. Comput..

[26]  Robert E. Tarjan,et al.  Addendum: Simple Linear-Time Algorithms to Test Chordality of Graphs, Test Acyclicity of Hypergraphs, and Selectively Reduce Acyclic Hypergraphs , 1985, SIAM J. Comput..

[27]  C. Lekkeikerker,et al.  Representation of a finite graph by a set of intervals on the real line , 1962 .