Design
aa1001.txt
Associated article: Replacing a Dictionary with a Square Root
Tags: Design
Published source code accompanying the article by Tom Cargill in which he shows that data that compresses well under a run-length encoding mechanism can be encoded in a way that is compatible with LZW's output, but independent of its patented algorithm. 4
Algorithm Alley
by Tom Cargill
Listing One
String compress(String input) {
Properties dictionary = new Properties();
for( char letter = 'a'; letter<='z'; ++letter )
dictionary.put(""+letter, ""+letter);
int generatedCode = 0;
String output = "";
String last = "&...


