Compression usually works by spotting repetition — runs of the same character, or phrases that appear again and again. But real text rarely lines up its repeats neatly. The letters you'd love to group together are scattered all over the file.
In 1994, Michael Burrows and David Wheeler published a startling idea: don't compress the text directly — first reorder it. Their transform shuffles the characters so that identical ones tend to clump into long runs, which off-the-shelf compressors then crush easily.
The magical part is that the shuffle is perfectly reversible. From the scrambled output alone — no extra bookkeeping beyond a single position — you can reconstruct the original exactly. It looks like you've thrown the text into a blender, yet nothing is lost.
Comments
Loading comments...