LZ77 (kompresi sliding-window) Playground

Sri writes the shipping note as LZ77 triples: you set the window and look-ahead, every reference drawn as the same as N letters back, the note opened back…

Why it matters

LZ77 is the first stage of DEFLATE, inside ZIP, gzip, PNG and HTTP compression; its descendants (LZ4, Zstandard, Brotli) are everywhere. The window, the longest match and how the triples are coded decide how much it saves.

The key idea

The same as N letters back

Common mistakes

Try it in this playground