See http://en.wikipedia.org/wiki/LZW and http://marknelson.us/1989/10/01/lzw-data-compression/
A dictionary look-up compressor that performs well with both highly repetitive data and repeating patterns e.g. [0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3]
.
Expects an array of 8bit integers. Returns an array of integers.
Array of integers. Returns an array of 8bit integers.