public void getMinTourTest1() { var bitonicTour = new BitonicTour(); int n = 7; var r = new int[n, n]; var res = bitonicTour.GetMinTour(new double[] { 1, 2, 3, 4, 7 }, new double[] { 0, 8, 4, 2, 7 }, out r); Assert.Equal(25.70, res); }
public void getMinTourTest0() { var bitonicTour = new BitonicTour(); int n = 7; var r = new int[n, n]; var res = bitonicTour.GetMinTour(new double[] { 0, 1, 2, 5, 6, 7, 8 }, new double[] { 6, 0, 3, 4, 1, 5, 2 }, out r); Assert.Equal(25.58, res); }