title: How does huffman compression work
body: <p>I got some problems when I tried to encode the following streams by Huffman code.
  If the coded system is  </p>
  
  <p>A:0 B:10 C:110 D:111</p>
  
  <p>then the sequence ABBADC would be 010100111110.
  How do I decode this bit stream when I receive it?
  Is the coded system necessary?
  If so, how do I send this table?
  If not, how should I decode them?</p>