Optimized annealing of traveling salesman problem from the nth-nearest-neighbor distribution