Question: You are given an ordered sequence of n cities, as well as the distances between each pair of cities. Your goal is partition the cities
You are given an ordered sequence of n cities, as well as the distances between each pair of cities. Your goal is partition the cities into two subsequences (not necessarily contiguous) such that person A visits all cities in the first subsequence (in order), person B visits all cities in the second subsequence (in order), and such that the sum of the total distances travelled by A and B is minimized. Assume that person A and person B start initially at the first city in their respective subsequences.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
