7273747576777879
cities = new City[CITIES]; for (int i = 0; i < cities.length; i++) { int xPos = (int) (Math.random() * MAP_SIZE); int yPos = (int) (Math.random() * MAP_SIZE); cities[i] = new City(xPos, yPos); } }
145146147148149150151152153
solve.solve(); } @Override public double cost(final int sourceNode, final int targetNode) { City city1 = cities[sourceNode]; City city2 = cities[targetNode]; return city1.proximity(city2); }