opt adaptive encode: you're passed characters. if the character is in
the tree, output the code using writeCode (i think) and update the tree
accordingly. if it's not in the tree, output the code pointing to the
zero node. then output the character (using the 8 bits it would normally
take to represent it. so when you're decoding, if the 0-node is
indicated, you know that the next 8 bits are the new character.
rev adaptive encode: the tree is already formed. so all you have to do
is output the code to the indicated character then update the tree. for
decode, do the opposite.
Post by schooliewhat exactly should this do? I have most of the other code written but
I just don't get what to do for this or encode. A little help?