Burrows-Wheeler Transform

Sort every rotation of a string, take the last column as the encoded form and the sentinel row as the primary index, then walk it back to recover the original text.

Data & codeBwtInvertibleCompression
Burrows-Wheeler Transform screenshot

Sort every rotation of a string, take the last column as the encoded form and the row of the sentinel as the primary index, then walk that back to recover the original text and prove the round trip. BWTINVERTIBLECOMPRESSION

banana bandana mississippi abracadabra aaaa
Sorted rotations — the last column is the encoded form
-
Inverse
-

More tools