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 m ≤ n; |
for i := 1 to m do |
if |Bi| > 1 then sort the suffixes corresponding to the ℓ-mers in Bi using any relevant algorithm; |