Error Detection and Correction

The City Block Metric:


Figure

How far is it from Chestnut and 11th to Locust and 9th?

  1. "As the crow flies?"

  2. "As the man walks?"

_____________________________________________________________________________

Hamming Distance:

Definition: Given an alphabet of symbols $\QTR{Large}{T}$, and two strings MATH and MATH, of equal length, where MATH,

we define the Hamming Distance MATHto be the number of positions in which they differ.

More formally.

$\QTR{Large}{\ }$

Metric Properties:


For all $\QTR{Large}{a}$, $\QTR{Large}{b}$, and $\QTR{Large}{c}$:

__________________________________________________________________________

Hamming Distance and Error Detection and Correction:

Assume $\QTR{Large}{T\ }$is the alphabet of code symbols to be transmitted and the valid code words ,$\QTR{Large}{C}$ , are all of the same length.

For example: in ASCII MATHand $\QTR{Large}{C}$ consists of 8 bit strings where the 8th bit is an odd or even parity bit.

Making the artificial assumption that a transmitted code word can have at most 1 error:

The Calculation:

Suppose $\QTR{Large}{c\ }$differs by 1 from two valid code words $\QTR{Large}{a}$ and $\QTR{Large}{b}$:

Then MATH

But if MATH , MATH

But the assumption is that MATH