Motivated by a problem posed by Hamming in 1980, we define even codes. They are Huffman type prefix codes with the additional property of being able to detect the occurrence of an odd number of 1-bit errors in the message. We characterize optimal even codes and describe a simple method for constructing the optimal codes. Further, we compare optimal even codes with Huffman codes for equal frequencies. We show that the maximum encoding in an optimal even code is at most two bits larger than the maximum encoding in a Huffman tree. Moreover, it is always possible to choose an optimal even code such that this difference drops to 1 bit. We compare average sizes and show that the average size of an encoding in a optimal even tree is at least and at most of a bit larger than that of a Huffman tree. These values represent the overhead in the encoding sizes for having the ability to detect an odd number of errors in the message. Finally, we discuss the case of arbitrary frequencies and describe some results for this situation.
@article{ITA_2005__39_1_263_0, author = {Pinto, Paulo E. D. and Protti, F\'abio and Szwarcfiter, Jayme L.}, title = {Parity codes}, journal = {RAIRO - Theoretical Informatics and Applications - Informatique Th\'eorique et Applications}, pages = {263--278}, publisher = {EDP-Sciences}, volume = {39}, number = {1}, year = {2005}, doi = {10.1051/ita:2005015}, mrnumber = {2132591}, zbl = {1086.94036}, language = {en}, url = {http://archive.numdam.org/articles/10.1051/ita:2005015/} }
TY - JOUR AU - Pinto, Paulo E. D. AU - Protti, Fábio AU - Szwarcfiter, Jayme L. TI - Parity codes JO - RAIRO - Theoretical Informatics and Applications - Informatique Théorique et Applications PY - 2005 SP - 263 EP - 278 VL - 39 IS - 1 PB - EDP-Sciences UR - http://archive.numdam.org/articles/10.1051/ita:2005015/ DO - 10.1051/ita:2005015 LA - en ID - ITA_2005__39_1_263_0 ER -
%0 Journal Article %A Pinto, Paulo E. D. %A Protti, Fábio %A Szwarcfiter, Jayme L. %T Parity codes %J RAIRO - Theoretical Informatics and Applications - Informatique Théorique et Applications %D 2005 %P 263-278 %V 39 %N 1 %I EDP-Sciences %U http://archive.numdam.org/articles/10.1051/ita:2005015/ %R 10.1051/ita:2005015 %G en %F ITA_2005__39_1_263_0
Pinto, Paulo E. D.; Protti, Fábio; Szwarcfiter, Jayme L. Parity codes. RAIRO - Theoretical Informatics and Applications - Informatique Théorique et Applications, Tome 39 (2005) no. 1, pp. 263-278. doi : 10.1051/ita:2005015. http://archive.numdam.org/articles/10.1051/ita:2005015/
[1] An adaptive Method for Data Compression, in Record of the 7th Asilomar Conference on Circuits, Systems and Computers, Naval Postgraduate School, Monterrey, Ca. (1973) 593-597. | Zbl
,[2] Variations on a Theme by Huffman. IEEE Trans. Inform. Theory 24 (1978) 668-674. | Zbl
,[3] Coding And Information Theory. Prentice Hall (1980). | MR | Zbl
,[4] A Method for the Construction of Minimum Redundancy Codes, in Proc. of the IRE 40 (1951) 1098-1101.
,[5] The Art of Computer Programming. Addison Wesley (1973). | MR | Zbl
,[6] Dynamic Huffman Coding. J. Algorithms 6 (1985) 163-180. | Zbl
,[7] Um algoritmo eficiente para construção de códigos de prefixo com restrição de comprimento. Master Thesis, PUC-RJ, Rio de Janeiro (1997).
,[8] A fast algorithm for optimal length-limited Huffman codes. JACM 37 (1990) 464-473. | Zbl
and ,[9] Improved Analysis of the FGK Algorithm. J. Algorithms 28 (1999) 195-211. | Zbl
, and ,[10] The Warm-up Algorithm: A Lagrangean Construction of Length Restricted Huffman Codes. SIAM J. Comput. 30 (2000) 1405-1426. | Zbl
and ,[11] Improved Bounds on the Inefficiency of Length Restricted Codes. Algorithmica 31 (2001) 513-529. | Zbl
and ,[12] Practical length-limited coding for large alphabets. Comput. J. 38 (1995) 339-347.
and ,[13] A Huffman-Based Error Detection Code, in Proc. of the Third International Workshop on Experimental and Efficient Algorithms (WEA 2004), Angra dos Reis, Brazil, 2004. Lect. Notes Comput. Sci. 3059 (2004) 446-457.
, and ,[14] An Optimum Encoding with Minimal Longest Code and Total Number of Digits. Inform. Control 7 (1964) 37-44. | Zbl
,Cité par Sources :