Lempel-Ziv 77 source algorithm decoding implementation. Where
message decoded (1xN).
encoded message (Mx3).
size of alphabet.
lookahead buffer size.
sliding window buffer size.
See also: lz77enco.
The following code
lz77deco ([8 2 1 ; 7 3 2 ; 6 7 2 ; 2 8 0], 3, 9, 18)
Produces the following output
ans = Columns 1 through 20: 0 0 1 0 1 0 2 1 0 2 1 0 2 1 2 0 2 1 0 2 Columns 21 through 24: 1 2 0 0
Package: communications