Papers
Topics
Authors
Recent
Search
2000 character limit reached

Quasi-Hamiltonian Path Problem Overview

Updated 6 July 2026
  • 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 D=(V,A)D=(V,A) with unique partition C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\} into maximal independent sets and independence number α(D)=max{V1,,Vc}\alpha(D)=\max\{|V_1|,\dots,|V_c|\}, a directed path PP is quasi-Hamiltonian if, for every color-class ViC(D)V_i\in C(D), 1V(P)ViVi1\le |V(P)\cap V_i|\le |V_i|. When α(D)=1\alpha(D)=1, 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

C(D)={V1,,Vc},C(D)=\{V_1,\dots,V_c\},

with

α(D)=max{V1,,Vc}.\alpha(D)=\max\{|V_1|,\dots,|V_c|\}.

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 C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}0,

C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}1

This distinction is central: in a multipartite digraph, quasi-Hamiltonicity is a coverage condition over parts rather than a vertex-exhaustion condition over C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}2 (Brinkmann, 21 Jul 2025).

The principal decision version is the C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}3-QHP problem. Given an SMD C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}4 and specified vertices C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}5, the question is whether there exists an C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}6-path C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}7 such that for every color-class C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}8,

C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}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 α(D)=max{V1,,Vc}\alpha(D)=\max\{|V_1|,\dots,|V_c|\}0-color-constrained framework

A broader formulation introduced for semicomplete multipartite digraphs is the α(D)=max{V1,,Vc}\alpha(D)=\max\{|V_1|,\dots,|V_c|\}1-color-constrained path problem, abbreviated α(D)=max{V1,,Vc}\alpha(D)=\max\{|V_1|,\dots,|V_c|\}2-CCP. An instance consists of an SMD α(D)=max{V1,,Vc}\alpha(D)=\max\{|V_1|,\dots,|V_c|\}3 in which all color-classes have the same size α(D)=max{V1,,Vc}\alpha(D)=\max\{|V_1|,\dots,|V_c|\}4, two vertices α(D)=max{V1,,Vc}\alpha(D)=\max\{|V_1|,\dots,|V_c|\}5, and the question whether there exists an α(D)=max{V1,,Vc}\alpha(D)=\max\{|V_1|,\dots,|V_c|\}6-path α(D)=max{V1,,Vc}\alpha(D)=\max\{|V_1|,\dots,|V_c|\}7 satisfying

α(D)=max{V1,,Vc}\alpha(D)=\max\{|V_1|,\dots,|V_c|\}8

for every color-class α(D)=max{V1,,Vc}\alpha(D)=\max\{|V_1|,\dots,|V_c|\}9 (Brinkmann, 21 Jul 2025).

This framework subsumes several standard and nonstandard path problems. Choosing PP0 recovers the Hamiltonian-path problem in tournaments. Choosing PP1 yields the quasi-Hamiltonian path problem for general SMDs. Choosing PP2 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 PP3-CCP is nearly complete. If either PP4 or PP5, then PP6-CCP is solvable in polynomial time. Otherwise, if PP7 and PP8, then PP9-CCP is NP-complete. For every fixed ViC(D)V_i\in C(D)0, all pairs ViC(D)V_i\in C(D)1 with ViC(D)V_i\in C(D)2, except the trivial reachability case ViC(D)V_i\in C(D)3 and the pure Hamiltonian case ViC(D)V_i\in C(D)4, yield NP-complete ViC(D)V_i\in C(D)5-CCP (Brinkmann, 21 Jul 2025).

Setting Complexity status Remarks
ViC(D)V_i\in C(D)6-CCP Polynomial time Reachability
ViC(D)V_i\in C(D)7 Polynomial time Tournaments; ViC(D)V_i\in C(D)8 solved in ViC(D)V_i\in C(D)9
Fixed 1V(P)ViVi1\le |V(P)\cap V_i|\le |V_i|0, 1V(P)ViVi1\le |V(P)\cap V_i|\le |V_i|1 NP-complete Nearly complete dichotomy

Specializing to quasi-Hamiltonian paths gives a standalone hardness result: deciding whether an SMD 1V(P)ViVi1\le |V(P)\cap V_i|\le |V_i|2 with 1V(P)ViVi1\le |V(P)\cap V_i|\le |V_i|3 admits an 1V(P)ViVi1\le |V(P)\cap V_i|\le |V_i|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 1V(P)ViVi1\le |V(P)\cap V_i|\le |V_i|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 1V(P)ViVi1\le |V(P)\cap V_i|\le |V_i|6.

4. Reduction mechanisms for NP-completeness

For 1V(P)ViVi1\le |V(P)\cap V_i|\le |V_i|7, hardness is obtained by reductions from 1V(P)ViVi1\le |V(P)\cap V_i|\le |V_i|8-in-1V(P)ViVi1\le |V(P)\cap V_i|\le |V_i|9-SAT or more general α(D)=1\alpha(D)=10-α(D)=1\alpha(D)=11-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 α(D)=1\alpha(D)=12, the reduction uses a α(D)=1\alpha(D)=13-gadget α(D)=1\alpha(D)=14. This gadget has exactly two internally vertex-disjoint paths from α(D)=1\alpha(D)=15 to α(D)=1\alpha(D)=16, one visiting a α(D)=1\alpha(D)=17-chain of length α(D)=1\alpha(D)=18 and one visiting a α(D)=1\alpha(D)=19-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 C(D)={V1,,Vc},C(D)=\{V_1,\dots,V_c\},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 C(D)={V1,,Vc},C(D)=\{V_1,\dots,V_c\},1 and C(D)={V1,,Vc},C(D)=\{V_1,\dots,V_c\},2 hits. Chaining is achieved by identifying C(D)={V1,,Vc},C(D)=\{V_1,\dots,V_c\},3 with C(D)={V1,,Vc},C(D)=\{V_1,\dots,V_c\},4, or by adding an explicit arc, so that any global C(D)={V1,,Vc},C(D)=\{V_1,\dots,V_c\},5-path must traverse the variable gadgets in sequence. The analysis shows that any valid C(D)={V1,,Vc},C(D)=\{V_1,\dots,V_c\},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 C(D)={V1,,Vc},C(D)=\{V_1,\dots,V_c\},7 to C(D)={V1,,Vc},C(D)=\{V_1,\dots,V_c\},8 is obtained by padding with new dummy vertices and a small inductive gadget that increases every color-class by one while incrementing both C(D)={V1,,Vc},C(D)=\{V_1,\dots,V_c\},9 and α(D)=max{V1,,Vc}.\alpha(D)=\max\{|V_1|,\dots,|V_c|\}.0 by α(D)=max{V1,,Vc}.\alpha(D)=\max\{|V_1|,\dots,|V_c|\}.1. This gives the lifting step required for the full dichotomy.

5. Structural results for independence number at most α(D)=max{V1,,Vc}.\alpha(D)=\max\{|V_1|,\dots,|V_c|\}.2

For α(D)=max{V1,,Vc}.\alpha(D)=\max\{|V_1|,\dots,|V_c|\}.3, the known NP-hardness reductions do not apply; the constructions inherently need parts of size α(D)=max{V1,,Vc}.\alpha(D)=\max\{|V_1|,\dots,|V_c|\}.4. In this regime, the literature develops sufficient conditions for the existence of quasi-Hamiltonian α(D)=max{V1,,Vc}.\alpha(D)=\max\{|V_1|,\dots,|V_c|\}.5-paths in α(D)=max{V1,,Vc}.\alpha(D)=\max\{|V_1|,\dots,|V_c|\}.6-strong SMDs, closely paralleling classical tournament arguments (Brinkmann, 21 Jul 2025).

One theorem states that if α(D)=max{V1,,Vc}.\alpha(D)=\max\{|V_1|,\dots,|V_c|\}.7 is a α(D)=max{V1,,Vc}.\alpha(D)=\max\{|V_1|,\dots,|V_c|\}.8-strong SMD, α(D)=max{V1,,Vc}.\alpha(D)=\max\{|V_1|,\dots,|V_c|\}.9 are distinct vertices, neither C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}00 nor C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}01 lies in any C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}02-cycle, both C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}03 and C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}04 remain C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}05-strong, C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}06 is not C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}07-strong, and C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}08, then C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}09 contains an C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}10-quasi-Hamiltonian path. Another theorem states that if C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}11 is a C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}12-strong SMD with C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}13 and C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}14, C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}15 are distinct vertices, neither lies in a C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}16-cycle, C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}17, C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}18 and C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}19 remain C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}20-strong, and every C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}21-separator of C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}22 and C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}23 is trivial, then C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}24 has an C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}25-quasi-Hamiltonian path.

The associated proof sketches use longest quasi-Hamiltonian paths, linear-decomposition, arc-shortcut arguments, merging lemmas, and the “C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}26-internally-disjoint-paths C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}27 QHP” condition. Although no full polynomial-time algorithm is given for QHP when C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}28, the structural theorems mirror the key steps in the C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}29 algorithm of Bang-Jensen–Manoussakis–Thomassen for tournaments. The stated algorithmic consequence is therefore suggestive rather than definitive: QHP in SMDs with C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}30 may be decidable in polynomial time by recursively reducing to smaller digraphs, checking C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}31-strong connectivity, enumerating C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}32-separators, and applying merging and linear-decomposition in C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}33 or C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}34 time.

6. Relations to Hamiltonian path and adjacent formulations

For independence number at most C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}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 C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}36 is unilaterally connected if and only if it has a Hamiltonian path. Applied to SMDs with C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}37, this yields the corollary that a semicomplete multipartite digraph C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}38 with C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}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 C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}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 C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}41. For the path problem, a permutation C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}42 is a C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}43-extension of C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}44 if C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}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 C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}46, polynomial-time solvable on graphs of pathwidth C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}47 and treewidth C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}48, and NP-complete on rectangular grid graphs of height at least C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}49 (Beisegel et al., 30 Jun 2025).

7. Open questions

The boundary cases left unresolved are structurally narrow but conceptually important. The C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}50-Hamiltonian-path problem in semicomplete multipartite digraphs of unbounded C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}51, corresponding to the case C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}52, is not known to be in C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}53 nor shown NP-complete. The pure quasi-Hamiltonian path problem on SMDs with C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}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 C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}55 and C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}56 remain unclassified beyond the Hamiltonian-path case. Closing these gaps would complete the complexity map of C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}57-CCP. The present structural evidence for C(D)={V1,,Vc}C(D)=\{V_1,\dots,V_c\}58 suggests a possible polynomial-time theory, but that implication remains provisional rather than established.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Quasi-Hamiltonian Path Problem.