 More frequently used codes end up shorter (2–3 bits), whilst rare codes can be allocated up to 20 bits.The codes are selected carefully so that no sequence of bits can be confused for a different code.The end-of-stream code is particularly interesting.