4
To represent a single EBCDIC character, typically 8 bits are required. However, to ensure error detection and correction, additional parity bits known as Hamming bits are added. In the case of a single EBCDIC character, typically 4 Hamming bits are added, resulting in a total of 12 bits to represent the character. These Hamming bits help detect and correct errors that may occur during transmission or storage of the data.
you need thee extra bit for 4 bit data in hamming code.
Hamming code is a linear error-correcting code named after its inventor, Richard Hamming. Hamming codes can detect and correct single-bit errors, and can detect (but not correct) double-bit errors. In other words, the Hamming distance between the transmitted and received code-words must be zero or one for reliable communication.
It depends on what you are doing. The cyclic redundancy check will only detect an error, while the hamming code can also correct many types of errors. However to perform this correction the extra error detection parity bits required in hamming code are many more than the bits needed for cyclic redundancy check, per data byte being checked. Normally cyclic redundancy check is done on large block of data that can be resent or retried to get the correct block of data (e.g. telecommunication channels, disk sectors). Normally hamming code is done on individual bytes or words of computer memory.
3 bits
21 bits.
40 bits or 5 byrtes
5 bits
4
4
103
for two n bits multiplication results produce 2n bits