Content deleted Content added
Line 19:
To get the code for every node, in case of binary tree we could just traverse all the path from the root to the node, writing down (for example) "1" if we go to the right and "0" if we go to the left.
We need some general and straightforward method to transmit symbols which are '''not yet transmitted''' (NYT), we could use, for example,
Encoder and decoder start with the only the root node which has the maximum number, in the beginning it is our initial NYT node.
|