Sanjeev Arora and Joseph S. B. Mitchell discovered the Arora-Mitchell approximation algorithm for the Euclidean travelling salesman problem independently in 1998. In d dimensions it approximates the length of an optimal tour within a factor of 1+1/c, and it runs in time
n(logn)O((cd)d−1)
where n is the number of nodes in the tour.
Miroslava works for a computer security company, and the shared cryptographic key of many data centres across Europe is due for renewal. She rents a private jet and delivers the key to employees waiting at every major European airport. She wants to be back as soon as possible.
Her company has a computer that executes p⋅109 operations per second. Europe is approximated by a two-dimensional plane, so on that computer the algorithm runs for exactly
p⋅109n(log2n)c2
seconds and produces the (1+1/c)-approximation of the optimal tour.
The parameter c is Miroslava's to choose, and both extremes hurt her. A small c makes the algorithm finish quickly but leaves a long tour to fly. A large c shortens the tour but keeps her waiting in front of the computer.
From a previous job Miroslava knows that the optimal tour of all major European airports is s meters long, but she was not ranked high enough to learn the tour itself. The jet flies at v meters per second, so flying the tour that the algorithm produces with parameter c takes s(1+1/c)/v seconds. Landing, leaving a copy of the key and taking off again take no time at all.
Compute how long it takes Miroslava to first run the algorithm and then distribute all the keys, assuming she chooses the parameter c that minimizes the total time.
One line with four numbers:
Every real number has at most 10 digits after the decimal point.
Print on one line the shortest possible time t in seconds needed to distribute the keys, then the parameter c that achieves it, separated by one space. Print both numbers rounded to exactly 6 digits after the decimal point.
The total time is strictly convex in c for c>0, so the minimum and the parameter that attains it are unique.