Hamiltonian cycle


A Hamiltonian cycle on the edge graph of a dodecahedron.
A Hamiltonian cycle on the edge graph of a dodecahedron.

A Hamiltonian cycle is a walk that uses each vertex in a connected graph exactly once and loops back to the starting vertex. Graphs that have Hamiltonian cycles are Hamiltonian.

The only vertex that can be repeated in a Hamiltonian cycle is the one at the beginning and end. Of course, no edges can be repeated at all in a cycle.

Some graphs are known to be Hamiltonian, like every complete graph with more than \(2\) vertices, as well as every cycle graph. Apart from that, there is no efficient algorithm for determining if a graph has a Hamiltonian cycle. Right now, the only way to figure that out is to brute-force it. Certain problems are just really hard to solve, which is why there's no good factoring algorithm out there either.

Unlike Eulerian graphs, there don't seem to be any clear requirements that a graph must meet in order to be Hamiltonian. However, if a graph has a vertex with a degree of \(1\), it's definitely not Hamiltonian as the edge incident to that vertex would get repeated in any attempt to build a Hamiltonian cycle.

Logic & Proofs
IntegerRational numberInequalityReal numberTheoremProofStatementProof by exhaustionUniversal generalizationCounterexampleExistence proofExistential instantiationAxiomLogicTruthPropositionCompound propositionLogical operationLogical equivalenceTautologyContradictionLogic lawPredicateDomainQuantifierArgumentRule of inferenceLogical proofDirect proofProof by contrapositiveIrrational numberProof by contradictionProof by casesSummationDisjunctive normal form
Set Theory
SetElementEmpty setUniversal setSubsetPower setCartesian productStringBinary stringEmpty stringSet operationSet identitySet proof
Functions
FunctionFloor functionCeiling functionInverse function
Algorithms
AlgorithmPseudocodeCommandAsymptotic notationTime complexityAtomic operationBrute-force algorithm
Relations
RelationReflexive relationSymmetric relationTransitive relationRelation compositionEquivalence relationEquivalence class
Number Theory
Integer divisionLinear combinationDivision algorithmModular arithmeticPrime factorizationGreatest common divisorLeast common multiplePrimality testFactoring algorithmEuclid's theoremPrime number theoremEuclidean algorithm
Induction
Proof by inductionFibonacci sequenceProof by strong inductionWell-ordering principleSequenceFactorialRecursive definition
Combinatorics
Rule of productRule of sumBijection rulePermutationCombinationComplement ruleExperimentOutcomeSample spaceEventProbabilityProbability distributionUniform distributionMultisetSixfold wayInclusion-exclusion principlePigeonhole principle
Graph Theory
GraphWalkSubgraphRegular graphComplete graphEmpty graphCycle graphHypercube graphBipartite graphComponentEulerian circuitEulerian trailHamiltonian cycleHamiltonian pathTreeHuffman treeSubstringForestPath graphStarSpanning treeWeighted graphMinimum spanning treeGreedy algorithmPrim's algorithm
Recursion
RecursionRecursive algorithmCorrectness proofDivide-and-conquer algorithmSorting algorithmMerge sort