Please consider offering answers and suggestions to help other students!
And if you fix a problem by following a suggestion here,
it would be great if other interested students could see a short
"Great, fixed it!" followup message.
Are you ending your tours with the city you started with (so that you tour is a closed loop)? I managed to get the results you mentioned by not returning to the first city (see image attached)
Yeah, I see why you're confused about the Input on Moodle being coordinates when our Nearest Neighbour function has an adjacency matrix as its parameter. I think the reason this is the case is because that's the input to the tester (testCase). Inside...
Hi,
The recording was cutoff while filling up the table for the coin change problem. Could I check whether anything else was covered afterwards? Thank you.
3 1.0 1.0 1.0 2.0 2.0 1.0
is saying that there are 3 cities with located at the following x-y coordinates (1.0,1.0), (1.0,2.0), (2.0,1.0). The adjacency matrix of the distances between the cities can be calculated from these coordinates (part underlin...
Hello,
The lecture on 9 Aug was cut off at the end while discussing slide 46 (Improving TSP tours). Could I check what else was covered after that? Thank you