Re:Analytic Combinatorics – A Worked Example
by pfdietz on Wednesday April 09, 2025 @12:27AM
(#43628868)
Natural log of n, actually. That's because the expected number of times a new max is found is H_n, the nth harmonic number, where n is the size of the array. And H_n = ln n + gamma + o(1).
[ Parent
| on HN ]
There are no comments on this comment yet.