Math
Math
CORRECTING
CODE: PARITY
AND HAMMING
CODES
Introduction
This method can only detect single bit errors and only detects
when an odd number of bits have changed. For a channel that
experiences few errors, this could be an effective method of error
detection.
Two Dimensional Parity Check, or Longitudinal
Redundancy Check (LRC), is a stronger error detection
method. This involves dividing the block of bits into
rows. A redundant row of bits is added to this block.
This is organized into a table, and a parity bit is
calculated for each row and column. This allows
checking for burst errors, however it is limited to certain
patterns of errors that will not be discussed in this paper.
Suppose there are m rows and n columns. For
Two Dimensional Parity checks, we will compute
m + n + 1 parity bits and send mn + m + n + 1
total bits. A table is built with each row being a
section of the code and each column being a
position of the data. To calculate the result, the
parity bit for each row is calculated then the
parity bit of each column is calculated. A row
parity bit is also calculated for the row of column
parity bits.
Example: There are 4 sections of data to be sent
with 7 bits each. This produces 4 rows and 7
columns. This means there are (4 + 7 + 1) = 12
parity bits, and the result will be (4*7 + 4 + 7 + 1)
= 40 bits in the resulting transmission.
The column parity is calculated by the even/odd bit
status of each individual column, and the row parity is
determined by the even/odd bit status of each row.
The sent information contains the original information
followed by the row parity. This also sends the
column parity row and its corresponding row parity.
Hamming Code