Skip to main content
. Author manuscript; available in PMC: 2024 May 13.
Published in final edited form as: Int Symp String Process Inf Retr. 2021 Sep 27;12944:129–142. doi: 10.1007/978-3-030-86692-1_11

Algorithm SAIS-for-eBWT

Step 1 remove strings of length 1 from M (these will be added back at the end)
Step 2 assign cyclic types to all positions of strings from M
Step 3 use procedure Induced Sorting to sort cyclic LMS-substrings
Step 4 assign names to cyclic LMS-substrings; if all distinct, go to Step 6
Step 5 recurse on new string multiset M, returning array A′, map A′ back to A
Step 6 use procedure Induced Sorting to sort all positions in M, add length-1 strings in their respective positions, return (A, I)