Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
1 answer
71 views

Finding maximum takes at least $\lceil n/2 \rceil$ comparisons

We are given an array $A$ with $n$ elements, $n \in \mathbb{N}$ and all elements are in the set $\{1,2,3, \cdots, n \}$. I want to prove that finding the maximum in $A$ (that is, outputting the index ...
QWE's user avatar
  • 33