Get the latest tech news

American flag sort


Definition of American flag sort, possibly with links to more information and implementations.

Definition: An efficient, in-place variant of radix sort that distributes items into hundreds of buckets. The name comes by analogy with the Dutch national flag problem in the last step: efficiently partition the array into many "stripes". Using some efficiency techniques, it is twice as fast as quicksort for large sets of strings.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of American

American

Photo of American Flag Sort

American Flag Sort

Related news:

News photo

In Ukraine, New American Technology Won the Day. Until It Was Overwhelmed.

News photo

A TikTok Ban Would Deal a Blow to Creators, Businesses and the American Economy

News photo

American politics has infected investing