Function File: m = lz77deco (c, alph, la, n)

Lempel-Ziv 77 source algorithm decoding implementation. Where

m

message decoded (1xN).

c

encoded message (Mx3).

alph

size of alphabet.

la

lookahead buffer size.

n

sliding window buffer size.

See also: lz77enco.

Demonstration 1

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