English

Deciding Graph non-Hamiltonicity via a Closure Algorithm

Data Structures and Algorithms 2016-11-09 v1 Computational Complexity

Abstract

We present a matching and LP based heuristic algorithm that decides graph non-Hamiltonicity. Each of the n!n! Hamilton cycles in a complete directed graph on n+1n+1 vertices corresponds with each of the n!n! nn-permutation matrices PP, such that pu,i=1p_{u,i}=1 if and only if the ithi^{th} arc in a cycle enters vertex uu, starting and ending at vertex n+1n+1. A graph instance (GG) is initially coded as exclusion set EE, whose members are pairs of components of PP, {pu,i,pv,i+1},i=1,n1\{p_{u,i} ,p_{v,i+1}\}, i=1,n-1, for each arc (u,v)(u,v) not in GG. For each {pu,i,pv,i+1}E\{p_{u,i} ,p_{v,i+1}\}\in E, the set of PP satisfying pu,i=pv,i+1=1p_{u,i}=p_{v,i+1}=1 correspond with a set of cycles not in GG. Accounting for all arcs not in GG, EE codes precisely the set of cycles not in GG. A doubly stochastic-like O\mathcal{O}(n4n^4) formulation of the Hamilton cycle decision problem is then constructed. Each {pu,i,pv,j}\{p_{u,i} ,p_{v,j}\} is coded as variable qu,i,v,jq_{u,i,v,j} such that the set of integer extrema is the set of all permutations. We model GG by setting each qu,i,v,j=0q_{u,i,v,j}=0 in correspondence with each {pu,i,pv,j}E\{p_{u,i} ,p_{v,j}\}\in E such that for non-Hamiltonian GG, integer solutions cannot exist. We recognize non-Hamiltonicity by iteratively deducing additional qu,i,v,jq_{u,i,v,j} that can be set zero and expanding EE until the formulation becomes infeasible, in which case we recognize that no integer solutions exists i.e. GG is decided non-Hamiltonian. Over 100 non-Hamiltonian graphs (10 through 104 vertices) and 2000 randomized 31 vertex non-Hamiltonian graphs are tested and correctly decided non-Hamiltonian. For Hamiltonian GG, the complement of EE provides information about covers of matchings, perhaps useful in searching for cycles. We also present an example where the algorithm fails to deduce any integral value for any qu,i,v,jq_{u,i,v,j} i.e. GG is undecided.

Keywords

Cite

@article{arxiv.1611.01710,
  title  = {Deciding Graph non-Hamiltonicity via a Closure Algorithm},
  author = {E. R. Swart and S. J. Gismondi and N. R. Swart and C. E. Bell and A. Lee},
  journal= {arXiv preprint arXiv:1611.01710},
  year   = {2016}
}
R2 v1 2026-06-22T16:43:14.748Z