AlgoViz

Burrows–Wheeler transform

hard 12 min

Sort every rotation of a marked string and keep the last column.

Where it shows up

The same pattern appears across everyday software.

  • Block compression

    A compressor can transform a block before applying move-to-front and entropy coding. Grouped symbols can make short codes or runs more frequent.

  • Searching compressed text

    An FM-index pairs this transformed column with rank queries. It can narrow the interval of rows matching a pattern one character at a time, starting at the right end of the pattern.