title: Trying to generate a uniquely decodable code and decode it
body: <p>I'm trying to encode arbitrary symbols into a bit string, and I don't really understand how I can either generate them or even decode a bit string containing those.</p>
  
  <p>I want to work on arbitrary symbol to compress, I don't really know if an uniqulely decodable code is what I am looking for, maybe an arithmetic code or canonical huffman code ?</p>
  
  <p>I just need a list of bit strings, describing the most frequent to least frequent, for any size of symbol table.</p>