Computer Science – Methods of error detection | e-Consult
Methods of error detection (1 questions)
Login to see all questions.
Click on a question to view the answer
The parity check method uses either even or odd parity. We'll assume even parity for this example. With even parity, the parity bit is set so that the total number of 1s in the data word (including the parity bit) is even.
Calculation of the Parity Bit:
- Count the number of 1s in the data word.
- If the number of 1s is even, the parity bit is 0.
- If the number of 1s is odd, the parity bit is 1.
Data Word 1: 1011
- Number of 1s in 1011: 3
- Since 3 is odd, the parity bit is 1.
- Therefore, the transmitted data word with parity is 10111.
Data Word 2: 0101
- Number of 1s in 0101: 2
- Since 2 is even, the parity bit is 0.
- Therefore, the transmitted data word with parity is 01010.