Average optimal cost for the Euclidean TSP in one dimension