Three-in-a-tree in near linear time
Kai-Yuan Lai, Hsueh-I Lu, Mikkel Thorup
Abstract
The three-in-a-tree problem is to determine if a simple undirected graph contains an induced subgraph which is a tree connecting three given vertices. Based on a beautiful characterization that is proved in more than twenty pages, Chudnovsky and Seymour [Combinatorica 2010] gave the previously only known polynomial-time algorithm, running in O(mn 2 ) time, to solve the three-in-a-tree problem on an n-vertex m-edge graph. Their three-in-a-tree algorithm has become a critical subroutine in several state-of-the-art graph recognition and detection algorithms. In this paper we solve the three-in-a-tree problem in Õ(m) time, leading to improved algorithms for recognizing perfect graphs and detecting thetas, pyramids, beetles, and odd and even holes. Our result is based on a new and more constructive characterization than that of Chudnovsky and Seymour. Our new characterization is stronger than the original, and our proof implies a new simpler proof for the original characterization. The improved characterization gains the first factor n in speed. The remaining improvement is based on dynamic graph algorithms.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
1 top-tier paper has cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
Cited by top-tier papers1
Related papers
- Tree Containment Above Minimum Degree is FPTFedor V. Fomin, Petr A. Golovach, Danil Sagunov, Kirill SimonovSODA 2024
- A Truly Subcubic Combinatorial Algorithm for Induced 4-Cycle DetectionAmir Abboud, Shyan Akmal, Nick FischerSODA 2026
- Computing the 3-Edge-Connected Components of Directed Graphs in Linear TimeLoukas Georgiadis, Giuseppe F. Italiano, Evangelos KosinasFOCS 2024 · 1 citation
- Induced-Minor-Free Graphs: Separator Theorem, Subexponential Algorithms, and Improved Hardness of RecognitionTuukka Korhonen, Daniel LokshtanovSODA 2024 · 7 citations
- Finding Perfect Matchings in Dense HypergraphsJie Han, Peter KeevashSODA 2020 · 5 citations
