sentences:  Truncated binary encoding is a straightforward generalization of fixed-length codes to deal with cases where the number of symbols "n" is not a power of two.Source symbols are assigned codewords of length "k" and "k"+1, where "k" is chosen so that "2k < n ≤ 2k+1".Huffman coding is a more sophisticated technique for constructing variable-length prefix codes.