English

The Gallai Vertex Problem is $\Theta_2^p$-Complete

Discrete Mathematics 2026-05-18 v1 Computational Complexity

Abstract

When a graph GG admits a vertex vv that is contained in all its longest paths, we call vv a Gallai vertex. These are named after Gallai, who in 1966 asked the question if it is true that every connected graph contains such a vertex. This was soon answered in the negative by Walther and Zamfirescu, who presented a graph in which every vertex is omitted by some longest path of the graph. In spite of its long history, the Gallai Vertex Problem, i.e. determining whether a graph has a Gallai vertex, was until now neither known to be NP- nor co-NP-hard. In this work, we show something much stronger, as we completely settle the computational complexity of determining whether a graph has a Gallai vertex: we show that it is complete for the complexity class Θ2p=PNP[logn]\Theta_2^p = \text{P}^{\text{NP}[\log n]}. This class, also known as parallel access to NP, is a complexity class larger than NP situated just below the class Σ2p\Sigma^p_2 in Stockmeyer's polynomial hierarchy. In more generality, the longest path transversal number of a connected graph is the minimum size of a set of vertices that intersects all its longest paths. I.e. if the graph has a Gallai vertex, its longest path transversal number is 11. Thus, as a consequence of our theorem, the longest path transversal number of a graph cannot be approximated in polynomial time by a factor better than 2, unless P=NP\text{P} = \text{NP}. In fact, using related techniques, we show a strengthening of this result: For any constant CC, if there is a graph with longest path transversal number CC, then there is no polynomial time algorithm for approximating the longest path transversal number by a factor better than CC, unless P=NP\text{P} = \text{NP}. In particular, this excludes approximation by a factor below 33. Similar results hold for the longest cycle transversal.

Keywords

Cite

@article{arxiv.2605.13488,
  title  = {The Gallai Vertex Problem is $\Theta_2^p$-Complete},
  author = {Amir Nikabadi and Eva Rotenberg and Lasse Wulf},
  journal= {arXiv preprint arXiv:2605.13488},
  year   = {2026}
}
R2 v1 2026-07-22T07:10:05.559Z