AlgorithmsSortingEdit on GitHubEdit history
Dutch National Flag Partitioning
Dutch national flag problem, Three-way partitioning1976
The problem of splitting an array holding three kinds of values into three regions in a single pass, and the partitioning algorithm that solves it. It is used for three-way partitioning in quicksort when many keys are equal.
Origin
Lineage
Derived algorithms
Author statementBy analogy with the three-way Dutch national flag problem, the paper calls the general many-way problem the American flag problem. — static.usenix.org/publications/compsystems/1993/win_mcilroy.pdf
Structural analysisIt solves the same three-way partitioning problem by gathering equal keys at both ends and moving them afterwards.
Notable implementations
No implementations registered yet. Try a repo scan to find some. Repo scan
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…