Source code

Maps and map projections. Makes outline maps (in PostScript) for any part of the world in any of 40-odd projections.. C/Unix source code plus map data derived from US government sources. 500KB gzipped tar file. Licensed for noncommercial use only.

More detailed map data from government sources, for use with the mapping software. 6MB gzipped tar file.

Suffix sort . Sorts the n suffixes of an n-item string in time n log n. (Not as easy as it might seem, since n log n string comparisons take O(n^2 log n) time. ANSI C.

Antiquicksort. Forces quadratic behavior from most any standard C qsort implemented by quicksort--even if randomized. ANSI C.

Quicksort. Efficient code from J. L. Bentley and M. D. McIlroy, "Engineering a sort function", Software--Practice and Experience 23 (1993) 1249-1265. ANSI C.


Doug McIlroy's home page
Last modified April 26,1999.

Copyright © 1997 Lucent Technologies. All rights reserved.