Kryca
Kryca
CC#
Created by Kryca on 2/11/2023 in #help
Traveling salesman problem
since n is 5 isnt there 120 different paths it can take ?
22 replies
CC#
Created by Kryca on 2/11/2023 in #help
Traveling salesman problem
forgot i left that there, was testing things and forgot to remove it
22 replies
CC#
Created by Kryca on 2/11/2023 in #help
Traveling salesman problem
the minimum cost matches up with the problems solution minCost, however the path doesnt, so im confused to say the least, the problem requires me to use a recursive function which im not too familiar with
22 replies
CC#
Created by Kryca on 2/11/2023 in #help
Traveling salesman problem
if i fix the first and last point to be 1 this is the outputted result: Path: 1 -> 5 -> 4 -> 3 -> 2 -> 1; when it should be 1, 5, 3, 2, 4, 1
22 replies
CC#
Created by Kryca on 2/11/2023 in #help
Traveling salesman problem
yes, my bad, changed the post
22 replies
CC#
Created by Kryca on 2/11/2023 in #help
Traveling salesman problem
if 4 is swapped places with 2 its the result im looking for but its still wrong
22 replies
CC#
Created by Kryca on 2/11/2023 in #help
Traveling salesman problem
Path: 1 -> 5 -> 3 -> 4 -> 2 -> 1
22 replies
CC#
Created by Kryca on 2/11/2023 in #help
Traveling salesman problem
after altering the code a bit i got to these results
22 replies
CC#
Created by Kryca on 2/11/2023 in #help
Traveling salesman problem
the numbers are all there but ye its wrong
22 replies