/bsort

Integer sorting algorithm using binary radix sort.

Primary LanguageC++MIT LicenseMIT

bsort

Fast positive integer sorting algorithm using radix sort written in C++. The algorithm was based on @rcgldr original code as discussed in this thread.

Compilation:

g++ bsort.cc -o bsort.x -Wall -O2

Usage:

./bsort.x [-r record length in bytes] [-k key length in bytes] [-s key initial byte] [-o output filename] filename

The input file should be a binary file. Code can be easily modified to handle ascii files.