Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,7 @@ void QuickSort3(RBFinger<T> low, RBFinger<T> high)
// the goal of 3-way pivoting is to swap items so as to divide the list
// into three pieces:
// "red" (item < pivot), "green" (item == pivot), "blue" (item > pivot)
// This is the famous "Dutch National Flag" problem, named by Dijkstra
// in honor of his country's flag, which has three vertical stripes
// of different colors (I don't remember the Dutch colors, so I'm using
// red, greeen, and blue, like the bits in a pixel color.)
// This is the famous "Dutch National Flag" problem, coined by Dijkstra.
//
// The following algorithm seems to be the best in practice. It's not
// widely known - I reinvented it based on memories of a conversation
Expand Down