Difficult to understand the solution provided in the video (travelling salesman problem)

  • Context: Graduate 
  • Thread starter Thread starter WMDhamnekar
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around understanding the solution to the travelling salesman problem (TSP) as presented in a video, specifically focusing on Hamiltonian circuits with an added length constraint. Participants express confusion regarding the lower bounds computed for various paths and the terminology used to classify these paths.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants find it difficult to comprehend the solution provided in the video, particularly the lower bounds for specific paths.
  • There is confusion about the classification of paths as 'first tour', 'better tour', 'inferior tour', and 'optimal tour', with participants seeking clarification on the meanings of the lengths associated with these paths.
  • One participant explains the initial lower bound (ILB) calculation and how it is derived from the two lowest paths for each node, emphasizing that this is a rough estimate.
  • Another participant suggests that the problem could be approached using methods that do not adhere to the traditional conditions of the TSP, mentioning integer programming as a broader topic.
  • A participant questions the viability of computing paths that violate the condition of visiting nodes in a specific order, prompting a response about the efficiency of adhering to the 'b before c' condition.
  • There is a discussion about the implications of comparing lower bounds and actual lengths in the context of trimming branches in the solution tree.

Areas of Agreement / Disagreement

Participants express varying levels of understanding and confusion regarding the solution and the concepts involved. There is no consensus on the clarity of the video explanation or the validity of alternative methods for solving the TSP.

Contextual Notes

Participants note that the paths and lower bounds are subject to specific assumptions and conditions, which may not be universally applicable. The discussion highlights the complexity of the TSP and the nuances involved in calculating lower bounds and path classifications.

WMDhamnekar
MHB
Messages
381
Reaction score
30
It is difficult to understand the solution provided in the video to the travelling salesman problem having Hamiltonian circuits with added length constraint.
The travelling salesman problem has been solved in the below given video, but I didn't understand lower bound computed for the following paths.

I also didn't understand the why Path 8,9 10 and 11 have been called 'first tour', 'better tour', 'inferior tour' and 'optimal tour' respectively.

What are the meanings of l=24 for Path 8, l=19 for Path 9, l= 24 for Path 10 and l=16 for Path 11?

Path 4: a,e lb=19,

Path 5:a,b,c lb=16,

Path 6:a,b,d lb=16,

Path 7: a,b,e lb=19,

Path 8:a,b,c,d (e,a) l=24 first tour ,

Path 9: a,b,c,e(d,a) l= 19 (better tour),

Path 10: a,b,d,c (e,a) l=24 (inferior tour),

Path 11: a,b,d,e(c,a) l=16 optimal tour.

Watch the vide here →

Would any member explain me the travelling salesman problem solved in this video?

Can we solve this problem by another method where conditions of the travelling salesman problem is not satisfied?

The condition is the salesman has to visit each city in the tour only once and return to the start city.
 
Mathematics news on Phys.org
WMDhamnekar said:
It is difficult to understand the solution provided in the video to the travelling salesman problem having Hamiltonian circuits with added length constraint.
The travelling salesman problem has been solved in the below given video, but I didn't understand lower bound computed for the following paths.
All of them or any in particular or all of the ones below? I'll do a few.
WMDhamnekar said:
I also didn't understand the why Path 8,9 10 and 11 have been called 'first tour', 'better tour', 'inferior tour' and 'optimal tour' respectively.
Traversing that branch of the tree from left to right and calculating the total lengths: The first path is 8. The second path is 9, which is better than path 8. The third path is 10, which is longer than path 9. The final path on that branch is 11, which is optimal for that branch.
WMDhamnekar said:
What are the meanings of l=24 for Path 8, l=19 for Path 9, l= 24 for Path 10 and l=16 for Path 11?
Those are the actual lengths if you add up those path steps.

Lower bounds:
Before any path steps are assumed, the initial lower bound (ILB) is where we get to use the two lowest for every node, a,b,c,d,e. That is ILB=((ac+ab)+(ba+bc)+(ca+ce)+(de+dc)+(ec+ed))/2 = ((1+3)+(3+6)+(1+2)+(3+4)+(2+3))/2 = 14,
ADDED NOTE: This is a rough estimate guaranteed not to be higher than the true lower bound. It assumes that each node can be entered and left on its two shortest paths. The sum is divided by two because the paths are counted twice (for instance, from a to b and also from b to a).
WMDhamnekar said:
Path 4: a,e lb=19,
The path (ae) is given, so the ILB values of nodes a and e must be changed. Where possible, replace the larger ILB entries for nodes a and b with ae=8. That gives:
lb=((1+8)+(3+6)+(1+2)+(3+4)+(2+8))/2=19
WMDhamnekar said:
Path 5:a,b,c lb=16,
Now, ab and bc are given. ab was already in the ILB of nodes a and b, so that changes nothing. bc was already in the ILB for node b but not for node c. Change the larger entry of node c to bc=6.
((1+3)+(3+6)+(1+6)+(3+4)+(2+3))/2 = 16

Continue in that way and see if it makes sense for the others.
WMDhamnekar said:
Can we solve this problem by another method where conditions of the travelling salesman problem is not satisfied?
Yes. This is an example of the general subject of integer programming. There has been a large amount of work done on this subject. Entire books have been written on how to solve them.
 
Last edited:
  • Like
Likes   Reactions: WMDhamnekar
Is it possible to compute the answer using the node 2 (a,c),node 5(a,c,b) node 6(a,c d), node 7 (a,c,e), node 8(a,c,b,d), node 9 (a,c,d,e), node 10(a,c,d,b),node 11(a,c,d e)? Is that answer viable? Note that in this case, we are violating the condition that 'c' should not be before 'b'
 
Sure, you can calculate that but it would be wasting time. The best solution that way would only follow the same path as the "b before c" solution in the opposite direction. By insisting that b precede c, the number of possibilities examined is immediately cut in half. That is a great improvement in efficiency.

EDIT: I should have said it would go around in the opposite direction of one of the optimal "b before c" solutions. There might be ties for the optimal solution. Because the costs (path length) are the same in both directions, the "b before c" solutions are the only ones you need to compute. If the cost depended on direction, the "c before b" paths would also need to be included.

EDIT2: Notice that no branch of the tree is trimmed by comparing two lbs. An lb is an optimistic lower bound. Two of them can not be reliably compared. It is only after an actual length. l. to a terminal "leaf" of the tree is determined that a branch can be trimmed by comparing its optimistic lb to an actual length, l. That is why it is important to go down to some terminal leaves early.

I am including this diagram just to preserve what we are discussing:
1725671059214.png
 
Last edited:
  • Like
Likes   Reactions: jim mcnamara and WMDhamnekar

Similar threads

  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
740
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K