It's UWAweek 49


This forum is provided to promote discussion amongst students enrolled in CITS3001 Algorithms, Agents and Artificial Intelligence.

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.

How do I ask a good question?
Displaying selected article
Showing 1 of 292 articles.
Currently no other people reading this forum.

 UWA week 32 (2nd semester, week 3) ↓
SVG not supported

Login to reply

1:28pm Tue 8th Aug, ANONYMOUS

Can you provide an example test case? I heard from the lab facilitators that the test case in the lab is wrong? Specifically the example output. As many others have mentioned on the help page, it doesnt explain at all why the king is visiting city 1 twice. He starts there but it doesnt make sense why he visites twice. ***Test *** N = 4 distance_matrix = [ [0, 10, 15, 20], [10, 0, 35, 25], [15, 35, 0, 30], [20, 25, 30, 0] ] print(optimize_tour_with_2opt(N, distance_matrix)) *** Result *** ([1, 1, 2, 4, 3, 1], 80) Please explain why

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy