a.
Explanation of Solution
Number of parity bits:
The length of memory word is 10
The number of parity bits for memory word can be calculated using the following formula
Substitute, “10” for “m” in the above formula
Hence, r must be greater than or equal to 4.
Therefore, the number of parity bits required for 12 length memory word is “4”.
b.
Explanation of Solution
Code word representation using hamming
To create the code for memory word with 10-bit length, 4 parity bits are added compulsorily.
The number of bits present in the code word can be calculated using the following formula,
Substitute, “10” for “m” and “4” for “r” in the above formula,
Thus, the number of bits present in the code word is 14.
The number bits starts from right to left with 1.
The number equal to the power of 2 is known as parity bit.
For example,
The positions of the parity bits are 1, 2, 4 and 8.
Now, write the sum of the numbers with powers of 2.
The data bits are filled with the given code word by leaving the positions related to the parity bits.
Parity bit 1 checks parity over 3, 5, 7, 9 and 11.
Now perform the modulo 2 sum on these bits.
Thus, the parity bit of 1 is 0.
Parity bit 2 checks parity over 3, 6, 7, 10, 11 and 14.
Now perform the modulo 2 sum on these bits.
Thus, the parity bit of 2 is 0.
Parity bit 3 checks parity over 5, 6, 7, 12, 13 and 14.
Now perform the modulo 2 sum on these bits
Thus, the parity bit of 4 is 1.
Parity bit 4 checks parity over 9, 10, 11, 12, 13 and 14.
Now perform the modulo 2 sum on these bits.
Thus, the parity bit of 8 is 1.
The data bits are filled as follows
Therefore, the code word for 100100011010 is “10011010111000”.
Want to see more full solutions like this?
Chapter 2 Solutions
Essentials of Computer Organization and Architecture
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education