Construction

All rotations of S$. Sort them. BWT = last column of sorted rotations. Encodes original + enables inverse.

Advertisement

Inversion via LF-mapping

Rank of char c in last column = position of same char in first column. Follow to reconstruct.

Advertisement

Compression

BWT clusters same chars. Run-length encode + move-to-front + entropy code = bzip2.