Docsity

Rectangular Codes and Hamming Error-correcting Codes, Study notes of Computer Architecture and Organization

Partial preview of the text

Download Rectangular Codes and Hamming Error-correcting Codes and more Study notes Computer Architecture and Organization in PDF only on Docsity!

Rectangular Codes

  • Triplication codes:

m

1

m

2

m

3

  • • • •

m

m 1

m 1

1

m

m 2

m 2

2

m

m 3

m 3

  • • • • 3

Repeated 3 times

At receiving end, a majority vote is taken.

Error detection and correction

Slides based on unknown ous

contributor on the web…

  • For a given size

mn

, the redundancy will be

smaller the more the rectangle approaches a square.• For square codes of size

n ,

we have (

n

2

bits of information. And 2

n

-1 bits of checking along

the sides.• Note that: Rectangular codes also can correctbursty error.• (

k

+1)x( 2

k

+1) array code 1

If

k

2

k

we can correct

k

1

size of bursty

errors

3.4 Hamming Error-correcting codes

-^

Find the best encoding scheme for single-errorcorrection for white noise.

-^

Suppose there are

m

independent parity checks.

It means no sum of any combination of the checks is any other check.

-^

Example:

check 1 : 1 2 5 7

--- (1)

check 2 :

5 7 8 9

--- (2)

check 3 : 1 2

8 9

--- (3)

It is not independent, because (1)+(2)=(3)

•^

So third parity check provides no newinformation over that of the first two, and issimply wasted effort.

-^

Example: 0 0 0

⇒

no error

0 0 1

⇒

error happened in the first position

  • Locate error

check

m

m

m

m

check

m

m

m

m

check

m

m

m

m

Viewing

m

1

,^

m

2

,^

m

4

as check bit

  • Note that the check positions are equally

corrected with the message positions. Thecode is uniform in its protection. Onceencoded there is no different between themessage and the check digits.