- Chen–Ho encoding
-
Chen-Ho encoding is an alternate system of binary encoding for decimal digits.
The traditional system of binary encoding for decimal digits, known as Binary-coded decimal (BCD), uses four bits to encode each digit, resulting in significant wastage of binary data bandwidth (since four bits can store 16 states and are being used to store only 10).
The concepts behind Chen-Ho encoding were first introduced in a memo from Tien Chi Chen to Dr. Irving T. Ho in 1971. Both men were working for IBM at the time, although in different locations. Tien Chi Chen also consulted with Dr. Frank Tung to verify the results of his theories independently.
Tien Chi Chen noted that the digits zero through seven were simply encoded using three binary digits. He also postulated that one could use a flag to identify a different encoding for the digits eight and nine, which would be encoded using a single bit.
Contents
Application
In practice, a series of boolean transformations are applied to the stream of input bits, compressing BCD encoded digits from 12 bits per three digits to 10 bits per three digits. Reversed transformations are used to decode the resulting coded stream to BCD. Equivalent results can also be achieved by the use of a look-up table.
The final version of Chen-Ho encoding was published in 1975 in the journal Communications of the Association for Computing Machinery (CACM). This version included several refinements, primarily related to the application of the encoding system.
Chen-Ho encoding is limited to encoding of sets of three decimal digits. One prominent application uses a 128-bit register to store 33 decimal digits with a three digit exponent.
Related Systems of Encoding
In 2002, Mike Cowlishaw published a further refinement of Chen-Ho encoding known as densely packed decimal encoding in IEE Proceedings – Computers and Digital Techniques, which is summarized here.
See also
- Binary coded decimal
- Densely packed decimal
References
- IBM: Chen-Ho encoding
- Tien Chi Chen (March 29, 1971). Decimal Number Compression. Internal IBM memo to Dr. Irving T. Ho, 4pp, IBM.
- Tien Chi Chen & Irving T. Ho (January 1975). Storage-Efficient Representation of Decimal Data. CACM (18)1, pp.49-52.
Categories:- Computer arithmetic
Wikimedia Foundation. 2010.