Exact and approximation algorithms for error-detecting even codes
详细信息查看全文 | 推荐本文 |
摘要
Even codes are prefix-free codes where every encoding contains an even number of 1鈥檚, thus having ability of detecting the occurrence of an odd number of 1-bit errors in a message. The motivation for defining such codes comes from a problem posed by Hamming in 1980. Even codes have been studied for the case in which symbols have uniform probabilities. In this work, we consider the general case of arbitrary probabilities. An exact algorithm for constructing an optimal even code is described with complexity , where is the number of symbols. Further, two approximation algorithms for constructing nearly optimal even codes are presented, both requiring time; in addition, the running time is if the symbols are given ordered by their probabilities. The cost of the even code constructed by the second approximation algorithm is at most 16.7%higher than the cost of a Huffman code, for the same probabilities. However, computational experiments suggest that, in practice, this difference is about 5%, for large enough.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700