Odlyzko [Random Structures Algorithms 6 (1995) 275-295] exhibited an asymptotically optimal algorithm, with respect to the average cost, among algorithms that find the maximum of a random walk by using only probes and comparisons. We extend Odlyzko's techniques to prove that his algorithm is indeed asymptotically optimal in distribution (with respect to the stochastic order). We also characterize the limit law of its cost. Computing its moments in two ways allows us to recover a surprising identity concerning Euler sums.
"A stochastically quasi-optimal search algorithm for the maximum of the simple random walk." Ann. Appl. Probab. 13 (4) 1264 - 1295, November 2003. https://doi.org/10.1214/aoap/1069786499