AlgorithmsSortingEdit on GitHubEdit history
Bentley–McIlroy Three-Way Partitioning
1993
A three-way partitioning scheme for quicksort that gathers keys equal to the pivot at both ends of the array during partitioning and swaps them into the middle afterwards. The qsort built on it is used in BSD-derived C libraries.
Origin
Lineage
Parent algorithms
Author statementThe paper introduces this three-way partition while engineering a quicksort-based qsort. — doi:10.1002/spe.4380231105
Structural analysisIt solves the same three-way partitioning problem by gathering equal keys at both ends and moving them afterwards.
Derived algorithms
CitationThe paper cites and uses the ternary partition of Bentley and McIlroy and notes that its complete code is similar to theirs. — collaborate.princeton.edu/en/publications/fast-algorithms-for-sorting-and-searching-strings
Notable implementations
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…