// File: TSPGreedyLocalSearchAlt.java // // Alternate neighborhood for TSP. // A class used to represent a point: simple x and y value. class Pointd { public double x, y; } public class TSPGreedyLocalSearchAlt { // The method that is responsible for the overall tour computation. public int[] computeTour (Pointd[] points) { int numPoints = points.length; // Create space for current and next tour. int[] tour = new int [numPoints]; // Initial tour in given sequence. for (int i=0; i