Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Travelling salesman problem
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===As a graph problem=== [[File:Weighted K4.svg|thumb|Symmetric TSP with four cities]] TSP can be modeled as an [[Graph (discrete mathematics)|undirected weighted graph]], such that cities are the graph's [[vertex (graph theory)|vertices]], paths are the graph's [[Glossary of graph theory terms|edges]], and a path's distance is the edge's weight. It is a minimization problem starting and finishing at a specified [[vertex (graph theory)|vertex]] after having visited each other [[vertex (graph theory)|vertex]] exactly once. Often, the model is a [[complete graph]] (i.e., each pair of vertices is connected by an edge). If no path exists between two cities, then adding a sufficiently long edge will complete the graph without affecting the optimal tour.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)