AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Choose the Right Pivot for Your Partition
The ideal pivot would be the median of three random elements. If a ray were currently partitioning is large enough, it recursively selects three pivots and then it selects the median of those three pivots. What Glide sort does is essentially a recursive version of that.