To invert the Burrows-Wheeler transform, begin with six empty rows. At every iteration prepend the supplied last-column characters in their fixed row order, then sort the resulting rows in lexicographic order. After iterations the rows contain the length- prefixes of the sorted cyclic rotations. For example, the first two iterations give
Each iteration works because sorting the preceding character together with the already reconstructed prefix restores the ordering of the next-longer prefixes. Six iterations give the completed matrix
The original linear string is the unique row ending in the terminator, hence
As a check, the reconstructed matrix's final column is precisely the supplied Burrows-Wheeler transform.

Articles by others on the same topic (0)

There are currently no matching articles.