on-internet
← Community

Getting Combination Permutations of Several Lists, With Segments of Length N

Stack Overflow ·

My professor is having us do something similar to traveling salesman problem for hamiltonian paths using a genetic algorithm. It's likened to like two trucks doing deliveries from a depot: truck 1 starts at depot, visits half the cities, and returns to the depot. truck 2 then starts at the depot, leaves the depot, visits the other half of the cities, and returns to the depot. so my final path should have the starting point at the beginning, middle, and end of the path, and each city should only be visited once across the two equally-sized subpaths for trucks 1 and 2. (note, im not using this p

Comments

Sign in or sign up to comment and upvote.

No comments yet.