Database
aa118.txt
Associated article: Sorting Strings with Three-Way Radix Quicksort
Tags: Database Design
Published source code accompanying the column by Jon Bentley and Robert Sedgewick in which they describe a new algorithm for sorting strings that combines the best of quicksort and radix sort. Also see AA118.ZIP.
Algorithm Alley
by Jon Bentley and Robert Sedgewick
Example 1:
void iqs(int a[], int n)
{ int le, lt, gt, ge, r, v;
if (n <= 1)
return;
swap(a, 0, rand() % n);
v = a[0];
le = lt = 1;
gt = ge = n-1;
for (;;) {
for ( ; lt &...


