Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 507 Bytes

File metadata and controls

13 lines (8 loc) · 507 Bytes

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.