HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

About metric TSP instances

Submitted by: @import:stackexchange-cs··
0
Viewed 0 times
tspmetricaboutinstances

Problem

Christofides' 1.5-approximation considers complete graphs as inputs, and as I understand this is essential. If the input graph is not complete, how can I add new edges with suitable weights such that the resulting complete graph still satisfies the triangle inequality, and, of course, the TSP solution for the complete graph only uses original edges? Thank you.

Solution

If the edges don't satisfy the triangle inequality then the problem becomes harder. In your case the non-edges have infinite weight (since you want never to use them), so you can't expect Christofides' algorithm to be useful as such.

Context

StackExchange Computer Science Q#13070, answer score: 4

Revisions (0)

No revisions yet.