Itc 11
Itc 11
The encoder then examines the symbols following the symbol at the
pointer location to see if they match consecutive symbols in the
look-ahead buffer.
The number of consecutive symbols in the search buffer that match
consecutive symbols in the look-ahead buffer, starting with the first
symbol, is called the length of the match.
The encoder searches the search buffer for the longest match. Once
the longest match has been found, the encoder encodes it with a
triple < o, l, c >, where o is the offset, l is the length of the match,
and c is the codeword corresponding to the symbol in the look-ahead
buffer that follows the match.
Suppose the length of the window is 13, the size of the look-ahead
buffer is six encode the following
cabracadabrarrarrad
In LZ78, the inputs are coded as a double < i, c > with i being an
index corresponding to the dictionary entry that was the longest
match to the input.
c being the code for the character in the input following the matched
portion of the input.