方法
任何一个字符的编码都不是同一字符集中另一个字符的编码的前缀。
例子
- { 01, 0000, 0001, 001, 1 } 是前缀码。
- { 0, 100, 110, 1110, 1100} 不是前缀码,原因是同时包含了 110 以及 1100,其中 110 是 1100 的前缀。
判断前缀码
最新推荐文章于 2024-07-06 22:17:01 发布
方法
任何一个字符的编码都不是同一字符集中另一个字符的编码的前缀。
例子
- { 01, 0000, 0001, 001, 1 } 是前缀码。
- { 0, 100, 110, 1110, 1100} 不是前缀码,原因是同时包含了 110 以及 1100,其中 110 是 1100 的前缀。