Floyd–Rivest algorithm

In computer science, the Floyd–Rivest algorithm is a selection algorithm developed by Robert W. Floyd and Ronald L. Rivest that has an optimal expected number of comparisons within lower-order terms. It is functionally equivalent to quickselect, but runs faster in practice on average.

Source: Wikipedia — Floyd–Rivest algorithm (CC BY-SA 4.0)

Floyd–Rivest algorithm

In computer science, the Floyd–Rivest algorithm is a selection algorithm developed by Robert W. Floyd and Ronald L. Rivest that has an optimal expected number of comparisons within lower-order terms. It is functionally equivalent to quickselect, but runs faster in practice on average.

Source: Wikipedia "Floyd–Rivest algorithm" · CC BY-SA 4.0

Share this article: X · Bluesky
Privacy Policy