Abstract
- The use of an additional bit to check whether the number of 1s in a binary number is even or odd
- Used to detect errors in data transmission or storage
- 2 types - Odd & Even, the bit value is the opposite, if odd number, then
0for Odd, if even number, then0for Even - Commonly used with ASCII
Odd Parity Bit (奇校验码)
The parity bit is set to
0if the number of 1s isodd1if the number of 1s iseven- Can’t produce a string that is all
0
Even Parity Bit (偶校验码)
The parity bit is set to
0if the number of 1s iseven1if the number of 1s isodd
