Skip to main content
. Author manuscript; available in PMC: 2015 Jul 1.
Published in final edited form as: J Discrete Algorithms (Amst). 2014 Jul 1;27:21–28. doi: 10.1016/j.jda.2014.03.001

Algorithm SA1.

Sort P1, P2,, Pn using radix sort;
The above sorting partitions the Pi’s into buckets where equal ℓ-mers are in the same bucket;
Let these buckets be B1, B2,, Bm where mn;
for i := 1 to m do
if |Bi| > 1 then sort the suffixes corresponding to the ℓ-mers in Bi using any relevant algorithm;