Quasi-Hamiltonian Path Problem Overview
- Quasi-Hamiltonian path problem is defined on semicomplete multipartite digraphs, ensuring each color-class (maximal independent set) is visited at least once.
- It extends the Hamiltonian path concept by enforcing coverage rules on vertex partitions rather than requiring every vertex to be included.
- Although every such digraph admits a quasi-Hamiltonian path, the endpoint-prescribed variant becomes NP-complete for independence number ≥3.
Searching arXiv for papers on the quasi-Hamiltonian path problem and closely related formulations. The quasi-Hamiltonian path problem concerns directed paths that cover every color-class of a semicomplete multipartite digraph at least once. For a semicomplete multipartite digraph with unique partition into maximal independent sets and independence number , a directed path is quasi-Hamiltonian if, for every color-class , . When , this notion coincides with the usual Hamiltonian-path notion. Every semicomplete multipartite digraph contains a quasi-Hamiltonian path, but deciding whether there exists such a path with prescribed start and end vertices is NP-complete even for semicomplete multipartite digraphs with independence number exactly $3$ (Brinkmann, 21 Jul 2025).
1. Formal setting and basic notions
In the semicomplete multipartite setting, the vertex set is partitioned into maximal independent sets, also called color-classes or parts. The partition is unique and is denoted
with
A quasi-Hamiltonian path is therefore not required to visit every vertex; it is required to meet every color-class at least once. Equivalently, for each 0,
1
This distinction is central: in a multipartite digraph, quasi-Hamiltonicity is a coverage condition over parts rather than a vertex-exhaustion condition over 2 (Brinkmann, 21 Jul 2025).
The principal decision version is the 3-QHP problem. Given an SMD 4 and specified vertices 5, the question is whether there exists an 6-path 7 such that for every color-class 8,
9
Because every semicomplete multipartite digraph contains a quasi-Hamiltonian path, the endpoint-constrained formulation is the nontrivial algorithmic variant. A common misconception is to treat QHP as merely a relaxed Hamiltonian-path problem; the definition shows that the object being covered is the set of color-classes, not necessarily the whole vertex set.
2. The 0-color-constrained framework
A broader formulation introduced for semicomplete multipartite digraphs is the 1-color-constrained path problem, abbreviated 2-CCP. An instance consists of an SMD 3 in which all color-classes have the same size 4, two vertices 5, and the question whether there exists an 6-path 7 satisfying
8
for every color-class 9 (Brinkmann, 21 Jul 2025).
This framework subsumes several standard and nonstandard path problems. Choosing 0 recovers the Hamiltonian-path problem in tournaments. Choosing 1 yields the quasi-Hamiltonian path problem for general SMDs. Choosing 2 enforces that each part loses at least one vertex in the path. The framework also captures the path-version of cycle problems discussed in the same line of work. A plausible implication is that the main combinatorial source of difficulty is not multipartiteness alone, but the interaction between path routing and lower/upper coverage bounds imposed on each color-class.
3. Complexity landscape
The main dichotomy for 3-CCP is nearly complete. If either 4 or 5, then 6-CCP is solvable in polynomial time. Otherwise, if 7 and 8, then 9-CCP is NP-complete. For every fixed 0, all pairs 1 with 2, except the trivial reachability case 3 and the pure Hamiltonian case 4, yield NP-complete 5-CCP (Brinkmann, 21 Jul 2025).
| Setting | Complexity status | Remarks |
|---|---|---|
| 6-CCP | Polynomial time | Reachability |
| 7 | Polynomial time | Tournaments; 8 solved in 9 |
| Fixed 0, 1 | NP-complete | Nearly complete dichotomy |
Specializing to quasi-Hamiltonian paths gives a standalone hardness result: deciding whether an SMD 2 with 3 admits an 4-quasi-Hamiltonian path is NP-complete. This clarifies an otherwise potentially misleading point: the unrestricted existence of a quasi-Hamiltonian path in an SMD is guaranteed, but the endpoint-prescribed version remains computationally difficult already at independence number 5. Notable open problems are the Hamiltonian path problem on semicomplete multipartite digraphs and the quasi-Hamiltonian path problem restricted to semicomplete multipartite digraphs with independence number 6.
4. Reduction mechanisms for NP-completeness
For 7, hardness is obtained by reductions from 8-in-9-SAT or more general 0-1-SAT variants. The core construction uses variable gadgets that force a binary routing choice and clause color-classes whose bounded-coverage constraints enforce the corresponding satisfiability condition (Brinkmann, 21 Jul 2025).
When 2, the reduction uses a 3-gadget 4. This gadget has exactly two internally vertex-disjoint paths from 5 to 6, one visiting a 7-chain of length 8 and one visiting a 9-chain of length $3$0, arranged so that no $3$1-path can mix $3$2- and $3$3-vertices. By coloring these vertex-sets together with an extra dummy vertex, the construction keeps color-classes of size at most $3$4. For the case $3$5, the reduction uses the classical $3$6-gadget of Bang-Jensen, Maddaloni and Simonsen, which again has exactly two natural $3$7-subpaths, through the $3$8-clique or the $3$9-clique.
Clause enforcement is handled by turning each clause 0 into a color-class whose three vertices correspond to three literal appearances in appropriate gadget positions. The covering bounds then force that each clause-class contributes between 1 and 2 hits. Chaining is achieved by identifying 3 with 4, or by adding an explicit arc, so that any global 5-path must traverse the variable gadgets in sequence. The analysis shows that any valid 6-path induces a truth assignment by selecting exactly one route through each gadget, and conversely any assignment with the desired clause-counts yields a path.
The extension from 7 to 8 is obtained by padding with new dummy vertices and a small inductive gadget that increases every color-class by one while incrementing both 9 and 0 by 1. This gives the lifting step required for the full dichotomy.
5. Structural results for independence number at most 2
For 3, the known NP-hardness reductions do not apply; the constructions inherently need parts of size 4. In this regime, the literature develops sufficient conditions for the existence of quasi-Hamiltonian 5-paths in 6-strong SMDs, closely paralleling classical tournament arguments (Brinkmann, 21 Jul 2025).
One theorem states that if 7 is a 8-strong SMD, 9 are distinct vertices, neither 00 nor 01 lies in any 02-cycle, both 03 and 04 remain 05-strong, 06 is not 07-strong, and 08, then 09 contains an 10-quasi-Hamiltonian path. Another theorem states that if 11 is a 12-strong SMD with 13 and 14, 15 are distinct vertices, neither lies in a 16-cycle, 17, 18 and 19 remain 20-strong, and every 21-separator of 22 and 23 is trivial, then 24 has an 25-quasi-Hamiltonian path.
The associated proof sketches use longest quasi-Hamiltonian paths, linear-decomposition, arc-shortcut arguments, merging lemmas, and the “26-internally-disjoint-paths 27 QHP” condition. Although no full polynomial-time algorithm is given for QHP when 28, the structural theorems mirror the key steps in the 29 algorithm of Bang-Jensen–Manoussakis–Thomassen for tournaments. The stated algorithmic consequence is therefore suggestive rather than definitive: QHP in SMDs with 30 may be decidable in polynomial time by recursively reducing to smaller digraphs, checking 31-strong connectivity, enumerating 32-separators, and applying merging and linear-decomposition in 33 or 34 time.
6. Relations to Hamiltonian path and adjacent formulations
For independence number at most 35, Hamiltonian-path structure is substantially sharper than the current quasi-Hamiltonian picture. A biorientation of the complete graph minus a disjoint union of paths of length at most 36 is unilaterally connected if and only if it has a Hamiltonian path. Applied to SMDs with 37, this yields the corollary that a semicomplete multipartite digraph 38 with 39 is unilaterally connected if and only if it has a Hamiltonian path. Hence the Hamiltonian-path problem in this regime can be solved in 40 time by checking unilateral connectivity via linear-decomposition (Brinkmann, 21 Jul 2025).
An adjacent but distinct line of work studies Hamiltonian paths and cycles with precedence constraints given by a partial order on the vertex set. In that model, one asks for a Hamiltonian path or cycle whose vertex order extends a partial order 41. For the path problem, a permutation 42 is a 43-extension of 44 if 45, and the path must visit each vertex exactly once along graph edges while respecting this extension. This is not the same as quasi-Hamiltonian color-class coverage. The width-theoretic results are correspondingly different: POHPP is NP-complete for graphs of pathwidth 46, polynomial-time solvable on graphs of pathwidth 47 and treewidth 48, and NP-complete on rectangular grid graphs of height at least 49 (Beisegel et al., 30 Jun 2025).
7. Open questions
The boundary cases left unresolved are structurally narrow but conceptually important. The 50-Hamiltonian-path problem in semicomplete multipartite digraphs of unbounded 51, corresponding to the case 52, is not known to be in 53 nor shown NP-complete. The pure quasi-Hamiltonian path problem on SMDs with 54 also remains open: neither hardness nor a complete polynomial-time algorithm is currently available (Brinkmann, 21 Jul 2025).
Within the Schaefer-style classification, the small cases 55 and 56 remain unclassified beyond the Hamiltonian-path case. Closing these gaps would complete the complexity map of 57-CCP. The present structural evidence for 58 suggests a possible polynomial-time theory, but that implication remains provisional rather than established.