Table of contents
Stand alone packages |
IntroductionThis is the master page for source code that I have created and released for public use. All code is under a under a modified BSD style license. All C code is Ansi C89 unless otherwise noted. Currently there are no zip or tar files for the packages; there may be in the future. The list is divided into three categories. The first category lists stand alone packages, typically containing one or more C files, an include file, and documentation and support files. These files will be in a single directory and should be complete and self contained. The second categories lists articles that contain illustrative code for algorithms. The code may be C code or it may be pseudocode. The third category is a group of utilities. The source files are in one directory and the include files are in another. Utility programs may include other utility programs and may include any of the include files in the include directory. There is a makefile for the utilities package that compiles object files in an obj directory. |
Stand alone packages
DOMSORT
An implementation of the dominance tree sort
contains the C source code for a dominance tree sort. The theory of dominance tree
sorts is in the article Dominance Tree Sorts. This
sorting algorithm is near optimal in the number of comparisons required.
HISTSORT
Histogram sort for integers (fast)
contains the C source code for a histogram based math sort. It is quite efficient for small
n (e.g. n<100000) but less so for large n because of caching issues.
HTREE
The htree package is one of two implementations of unordered radix trees, a fast
and efficient method for storing and retrieving data. The theory of unordered
radix trees is given in https://richardhartersworld.com/test/~cri/2007/urtree.html.
The readme.txt file describes the interface and usage.
WINMEDIAN
An implementation of the two heap moving window median algorithm
contains the C source code for the two heap algorithm for determining the median of a moving
window traversing a one dimensional stream.
Articles containing source code
This section lists articles that contain source code.
GETFLINE
Getfline is a utility for reading files
one line at a time. It has many features that the author
believes that such a utility should have. The usage and
specification are documented at
https://richardhartersworld.com/test/~cri/2007/gflspec.html.