Deciding Graph non-Hamiltonicity via a Closure Algorithm

Abstract

We present a matching and LP based heuristic algorithm that decides graph non-Hamiltonicity. Each of the n! Hamilton cycles in a complete directed graph on n+1 vertices corresponds with each of the n! n-permutation matrices P, such that pu,i=1 if and only if the ith arc in a cycle enters vertex u, starting and ending at vertex n+1. A graph instance (G) is initially coded as exclusion set E, whose members are pairs of components of P, \pu,i ,pv,i+1\, i=1,n-1, for each arc (u,v) not in G. For each \pu,i ,pv,i+1\∈ E, the set of P satisfying pu,i=pv,i+1=1 correspond with a set of cycles not in G. Accounting for all arcs not in G, E codes precisely the set of cycles not in G. A doubly stochastic-like O(n4) formulation of the Hamilton cycle decision problem is then constructed. Each \pu,i ,pv,j\ is coded as variable qu,i,v,j such that the set of integer extrema is the set of all permutations. We model G by setting each qu,i,v,j=0 in correspondence with each \pu,i ,pv,j\∈ E such that for non-Hamiltonian G, integer solutions cannot exist. We recognize non-Hamiltonicity by iteratively deducing additional qu,i,v,j that can be set zero and expanding E until the formulation becomes infeasible, in which case we recognize that no integer solutions exists i.e. G 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 G, the complement of E 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,j i.e. G is undecided.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…