Question

In: Computer Science

state the input and output of the traveling salesman problem. give the best lower bound on...

state the input and output of the traveling salesman problem. give the best lower bound on length of optimal tour and prove

Solutions

Expert Solution

Input − mask value for masking some cities, position.

Output minus; Find the shortest route to visit all the cities.

Input:

Cost matrix of the matrix.

0 20 42 25 30

20 0 30 34 15

42 30 0 10 10

25 34 10 0 25

30 15 10 25 0

Output:

Distance of Travelling Salesman: 80

A 1-tree problem on n cities is the problem of finding a tree that connects n cities with the first
city connecting to two cities.
When we try to find a lower bound for the 1-tree problem we try to find a minimum 1-tree. We
apply the 1-tree problem to the traveling salesman problem by considering that a tour is a tree
whose each vertex has a degree of two. Then a minimum 1-tree is also a minimal path.
Figure 10.7 shows a simple 1-tree.
1
Figure 10.7 A simple 1-tree.
Let us consider the geometric traveling salesman problem. We denote to eij the length of the path
from the i city to the j city. We assume that each city has a weight of πi. So we can say that each
edge has a cost of
cij = eij + πi πj 10.56
We now compute a new minimum 1-tree taking into account the edge costs. It is clear that the
new 1-tree we will construct id different from the original 1-tree. Let us consider a set of different
tours V. Let U be the set of 1-trees constructed by each tour from V. Recall that a tour is a 1-tree
with each vertex having a degree of 2. This means that the set of tours is included in the set of 1-
trees. Let us express a tour with T and the cost of a tour as L(cij , T) if we take in account the cost
of the edges. Therefore, it is true that
min LT∈U(cij, T) ≤ min LT∈V(cij, T) 10.57
From equation 3.17 we can write that:
L(cij , T) = L(eij , T) + ∑ π
=
n
i 1
idT
i 10.58
With dT
i we symbol the degree of i vertex in the 1-tree.
Consider T to be a tour. This means that dT
i = 2. So we can now write that:
L(cij , T) = L(eij , T) + ∑ π
=
n
i 1
i 2 10.59
We assume a minimal tour T’. Equation 3.18 is then transformed as:
min LT∈U(cij, T) ≤ min L(cij, T’) - ∑ π
=
n
i 1
i 2 10.60
Let us express the length of the optimal tour as c’ = L(eij , T’).Then from equation 10.59 and
10.60 we can get:
minT∈U{c + ∑ π
=
n
i 1
idT
i } ≤ c’ + ∑ π
=
n
i 1
i 2 10.61
This is transformed into:
minT∈U{c + ∑ π
=
n
i 1
i (dT
i -2)} ≤ c’ 10.62
We can finally write that:
w(π) = minT∈U{c + ∑ π
=
n
i 1
i (dT
i -2)} 10.63
Hence the lower bound for Held-Karp is
Held-Karplower-bound = max (w(π)).


Related Solutions

The Traveling Salesman Problem was named after the job of a traveling salesman but finds many...
The Traveling Salesman Problem was named after the job of a traveling salesman but finds many applications elsewhere. Research the traveling salesman and provide two examples of real-world applications. Make sure to explain how these applications are applied.
solve following travelling salesman problem using branch and bound and show matrix and graph at each...
solve following travelling salesman problem using branch and bound and show matrix and graph at each step 5 locations : a, b, c, d, e from a to remaining places = [infinity, 4, 7, 3, 4] from b to remaining places = [4, infinity, 6, 3, 4] from c to remaining = [7, 6, infinity, 7, 5] from d to remaining = [3, 3, 7, infinty, 7] from e to remaining = [4, 4, 5, 7, infinity] PLEASE show ALL...
Define the Hamiltonian Cycle Problem and the Travelling Salesman Problem. Give a polynomial-time transformation from the...
Define the Hamiltonian Cycle Problem and the Travelling Salesman Problem. Give a polynomial-time transformation from the Hamiltonian Cycle Problem to the Travelling Salesman Problem to claim that if the Hamiltonian Cycle is ”Hard” (i.e., NP-Complete) then Travelling Salesman Problem must also be hard.
Design a Moore state machine that has an input w and an output z that should...
Design a Moore state machine that has an input w and an output z that should output a ‘1’ when the previous 4 values of w were 1001 or 1111. Overlapping patterns are allowed. Show the state diagram and state table. Use a simple binary counting order for the state assignment. Derive all of the next-state and output equations. You do not need to draw the resulting circuit, instead write a Verilog module for it.
Define a problem with user input, user output, -> operator and destructors. C ++ please
Define a problem with user input, user output, -> operator and destructors. C ++ please
5. Take user input and give corresponding output. User will enter a sentence. The program will...
5. Take user input and give corresponding output. User will enter a sentence. The program will output the word that appears most frequently in this sentence. If there are multiple words with same frequency, output the first of these words. Please enter a sentence: I like batman because batman saved the city many times. The most frequent word is: batman The frequency is: 2 PYTHON
Derive a state diagram and table for a single-input and single-output Moore-type FSM that produces an...
Derive a state diagram and table for a single-input and single-output Moore-type FSM that produces an output of 1 if an input sequence of 101 is detected
java.. please dont change the format and give me an output sample! user need to input...
java.. please dont change the format and give me an output sample! user need to input k. public class Josephus {    /**    * All persons sit in a circle. When we go around the circle, initially starting    * from the first person, then the second person, then the third...    * we count 1,2,3,.., k-1. The next person, that is the k-th person is out.    * Then we restart the counting from the next person, go...
Assignment Overview IN C++ This assignment will give you practice with numerical calculations, simple input/output, and...
Assignment Overview IN C++ This assignment will give you practice with numerical calculations, simple input/output, and if-else statements. Candy Calculator [50 points] The Harris-Benedict equation estimates the number of calories your body needs to maintain your weight if you do no exercise. This is called your basal metabolic rate or BMR. The calories needed for a woman to maintain her weight is: BMR = 655 + (4.3 * weight in pounds) + (4.7 * height in inches) - (4.7 *...
12. The reciprocal search problem is: input: a list L of n floating point numbers output:...
12. The reciprocal search problem is: input: a list L of n floating point numbers output: two elements a, b L such that a*b=1, or None if no such a, b exist Design an algorithm for this problem using the greedy pattern. Write pseudocode for your algorithm below. If you write multiple drafts, circle your final draft. Hint: I expect your algorithm to be relatively simple and to have time complexity O(n2). 13. Perform a chronological step count to derive...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT