Sorry, this is not my example. It comes from another person, that why I am confuse also. I just dont get how can we can split a random string into part like compression and decompression EX:'ABCD' into 'A', 'AB', 'ABC', 'ABCD'
The example suspiciously resembles the LZ compression (at least the prefixes and the encode list make certain sense). Please make sure that that another person supplied you with correct figures. Also it would be helpful to know what alphabet is used in the example (the example is almost correct for an alphabet of just X, Y an Z).