We investigate the relations between different variants of the LZ77 parsing existing in the literature. All of them are defined as greedily constructed parsings encoding each phrase by reference to a string occurring earlier in the input. They differ by the phrase encodings: encoded by pairs (length + position of an earlier occurrence) or by triples (length + position of an earlier occurrence + the letter following the earlier occurring part); and they differ by allowing or not allowing overlaps between the phrase and its earlier occurrence. For a given string of length over an alphabet of size , denote the numbers of phrases in the parsings allowing (resp., not allowing) overlaps by (resp., ) for “pairs”, and by (resp., ) for “triples”. We prove the following bounds and provide series of examples showing that these bounds are tight: and ; and $\frac{1}2 z < z_3 \le z$.

生成讲解博客的中文版本

生成AI智能校验的中文版本