LZ77 is a lossless data compression algorithm published in 1977. It works by keeping a history of recently seen data (the sliding window) and replacing repeated occurrences with a reference to a previous copy.
LZ77 Compression Visualizer
Interactive sliding-window LZ77 compression