Consider an array $ X $ of $ m $ numbers, where each number $ X_i $ is drawn independently and uniform at random from the interval (0, 1). Let $ X_{max} = -\infty $. When we scan the array, if $ X_i > X_{max} $ then $ X_{max} \leftarrow X_i $. Assume that $ \forall i,j: X_i \neq X_j $.
I read a claim that the update step is executed in expectation at most $ log(m) $ times, or using the big-oh notation $ O(log(m)) $ times. I considered permutations of $ X $ but that seems to lead nowhere near a $ log(m) $ result. What approach should I use to validate the claim?