1 Encode
Algorithm 1 Encode algorithm
1: procedure Encode
2: while input data exists do
3: Read byte
4: if there is no matching pattern in the history buffer the extractly
matches the source patern in the holding buffer, that also satisfiles the con-
dition that offset less 2047 then
5: Output token
6: end if
7: end while
8: Flush
9: end procedure
1