.. _hamiltonianCycle_to_TSP:
.. raw:: html
.. |--| unicode:: U+2013 .. en dash
.. |---| unicode:: U+2014 .. em dash, trimming surrounding whitespace
:trim:
.. odsalink:: AV/NP/HCtoTSPCON.css
.. This file is part of the OpenDSA eTextbook project. See
.. http://opendsa.org for more details.
.. Copyright (c) 2012-2020 by the OpenDSA Project Contributors, and
.. distributed under an MIT open source license.
.. avmetadata::
:author: Nabanita Maji
:topic: NP-completeness
Reduction of Hamiltonian Cycle to Traveling Salesman
====================================================
Hamiltonian Cycle to Traveling Salesman
---------------------------------------
The following slideshow shows that an instance of Hamiltonian Cycle
problem can be reduced to an instance of Traveling Salesman problem in
polynomial time.
.. inlineav:: HCtoTSPCON ss
:points: 0.0
:required: False
:threshold: 1.0
:id: 199304
:long_name: HC to TSP Reduction
:output: show
This reduction can help in providing an NP Completeness proof for
the Traveling Salesman problem.
.. odsascript:: AV/NP/HCtoTSPCON.js