The same example in reverse.

                                                      t a  l  l  _
initialize Code Table with entries 0 to 26  Input is 20 01 12 12 00
set Code to the first input value;   (20)
look up in Code Table and output     t

repeat
OldCode=Code;                         20
Code=next input value;                01  
if in Code Table
then {
  look up in Code Table and output                       a
  Prefix=OldCode entry;                                  t
  Suffix=First Value from the Code Table entry;          a
  }
else {
  Prefix=OldCode entry;
  Suffix=First Value from the Prefix;
  Output Prefix and Suffix;
  }
add Prefix+Suffix as an entry in the Code Table;         ta  
until complete;
Tall Sally, all balls fall all Fall LZ Decoder LZ Decoder 00 _ 01 a 02 b 03 c 04 d 05 e 06 f 07 g 08 h 09 i 10 j 11 k 12 l 13 m 14 n 15 o 16 p 17 q 18 r 19 s 20 t 21 u 22 v 23 w 24 x 25 y 26 z 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 Prefix Suffix + Code 1 Prefix set to Code 2 Code is Next Input 3 Decode Code and Output 4 Suffix = First Char of Code 5 Prefix + Suffix to Code Table t 20 Input 20 01 12 12 00 19 28 12 25 00 33 00 02 33 19 00 06 37 37 43 29 Next