Given $n$ distinct elements.
Is there a sorting algorithm which ensures that every element is compared atmost $\lg n$ time?
Or is there a higher lower bound?
Theoretical Computer Science Stack Exchange is a question and answer site for theoretical computer scientists and researchers in related fields. It only takes a minute to sign up.
Sign up to join this communityGiven $n$ distinct elements.
Is there a sorting algorithm which ensures that every element is compared atmost $\lg n$ time?
Or is there a higher lower bound?
Note that in a sorting network, the number of times an element is compared is bounded by the depth of the network. There are several simple sorting networks of depth $O((\log n)^2)$. The AKS network has a depth of $O(\log n)$ with a huge constant (according to Wikipedia).