Hostname: page-component-74656f9884-g96k6 Total loading time: 0 Render date: 2026-11-09T18:14:34.452Z Has data issue: false hasContentIssue false

Parity codes

Published online by Cambridge University Press:  15 March 2005

Paulo E. D. Pinto
Affiliation:
Universidade Estadual do Rio de Janeiro, Instituto de Matemática e Estatística, RJ, Brasil; pauloedp@ime.uerj.br
Fábio Protti
Affiliation:
Universidade Federal do Rio de Janeiro, Instituto de Matemática and NCE, Caixa Postal 2324, 20001-970, Rio de Janeiro, RJ, Brasil; fabiop@nce.ufrj.br
Jayme L. Szwarcfiter
Affiliation:
Universidade Federal do Rio de Janeiro, Instituto de Matemática, NCE and COPPE, Caixa Postal 2324, 20001-970, Rio de Janeiro, RJ, Brasil; jayme@nce.ufrj.br
Get access

Abstract

Motivated by a problem posed by Hamming in 1980, we define even codes.They are Huffman type prefix codes with the additional property of beingable 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 forconstructing the optimal codes. Further, we compare optimal even codeswith Huffman codes for equal frequencies. We show that the maximum encodingin an optimal even code is at most two bits larger than the maximum encodingin a Huffman tree. Moreover, it is always possible to choose an optimal evencode such that this difference drops to 1 bit. We compare averagesizes and show that the average size of an encoding in a optimal even treeis at least 1/3 and at most 1/2 of a bit larger thanthat of a Huffman tree. These values represent the overhead in the encodingsizes for having the ability to detect an odd number of errors in themessage. Finally, we discuss the case of arbitrary frequencies and describe some results for this situation.

Keywords

Information

Type
Research Article
Copyright
© EDP Sciences, 2005

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Article purchase

Temporarily unavailable