 The pseudocode is a reproduction of the LZ77 compression algorithm sliding window.Even though all LZ77 algorithms work by definition on the same basic principle, they can vary widely in how they encode their compressed data to vary the numerical ranges of a length–distance pair, alter the number of bits consumed for a length–distance pair, and distinguish their length–distance pairs from "literals" (raw data encoded as itself, rather than as part of a length–distance pair).A few examples