error detecting and correcting codes -by r.w. hamming presented by- balakrishna dharmana

19
ERROR DETECTING AND ERROR DETECTING AND CORRECTING CODES CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

Upload: elijah-griffith

Post on 21-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

ERROR DETECTING AND ERROR DETECTING AND CORRECTING CODESCORRECTING CODES

-BY R.W. HAMMING

PRESENTED BY-

BALAKRISHNA DHARMANA

Page 2: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

INTRODUCTION

Why do we need error detection and correction?

Unwanted Random signals interfere with accurate transmission of signals

Some simple ways of error detection and correction

Sending each word again Sending each letter again

Within a computer errors are rare

Page 3: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

Systematic codes Redundancy

R= n/m Redundancy serves to measure the

efficiency of the code Lowers the effective channel capacity

Page 4: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

TYPES OF CODES

Single error detecting codes

Single error correcting codes

Single error correcting plus double error detecting codes

Page 5: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

Application of these codes may be expected to occur under conditions:- Unattended operation over long

periods of time Extremely large and tightly

interrelated systems where a single failure causes the entire installation

When the signaling is not possible in the presence of noise

Page 6: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

Contains n-bits Out of n-bits, n-1 are information bits

and one parity bit Redundancy = n/n-1 As n increases probability of getting

errors increases Type of check used to detect any single

error is called parity check (even or odd)

SINGLE ERROR DETECTING CODES

Page 7: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

SINGLE ERROR CORRECTING CODES

First assign m positions in available positions as information positions

Specific positions are left to a later determination

Assign k remaining positions as check positions

Apply k parity checks

Page 8: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

The result of the k parity checks from right to left is checking number

Checking number must describe m+k+1 different things

so that, 2k >= m + k + 1 writing n = m+k, we find 2m <= 2n / n+1

Page 9: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA
Page 10: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

Now we have to determine the positions over which the various parity checks are to be applied

Any position which has a 1 on the right of it’s binary representation must cause the first check fail.

By examining the binary form of the various integers

1 - 1 3 - 11 5 - 101 7 - 111 etc

Page 11: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

Check number

1

2

3

4 . .

Check positions

1

2

4

8 . .

Positions checked

1,3,5,7,9,11,……………

2,3,6,7,10,11,………….

4,5,6,7,12,13,………….

8,9,10,11,12,13,……… . .

TABLE II

Page 12: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA
Page 13: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

SINGLE ERROR CORRECTING PLUS DOUBLE ERROR DETECTING CODES

Begin with single error correcting code Add one more position for checking all

previous positions using even parity check In the operation of the code ,

No errors – all parity checks including the last are satisfied

Single error- the last parity check fails Two errors- last parity check is satisfied and

indicates some kind of error

Page 14: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

GEOMETRICAL MODEL

Page 15: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

Minimum dist

1 2 3 4 5

meaning

UniquenessSingle error detectionSingle error correctionSingle error correction plus double error detectionDouble error correction

Page 16: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

At a given minimum distance, some of the correctability can be exchanged for more detectability.

For example, a subset with minimum distance 5 may be used for:

Double error correction Single error correction plus triple error detection Quadruple error detection

Page 17: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

If code points are at a distance of at least 2 from each other then – any single error will carry the code point over to a point that is not a code point. Means – single error is detectable

If distance is at least 3 units then any single error will leave the point nearer to the correct code point than to any other code point, this means – single error will be correctable.

APPLICATION OF GEOMETRICAL MODEL TO CODES

Page 18: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

CONCLUSION

This paper helps us to discuss the minimum redundancy code techniques for

Single error detection Single error correction And single error correction plus double error

detection

Also gives the geometrical model of above techniques in depth.

Page 19: ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA

REFERENCE

M. J. E. Golay, Correspondence, notes on Digital coding, Proceedings of the I.R.E., Vol. 37, p. 657, June 1949.

http://www.math.ups.edu/~bryans/current/journal_spring_2002/300_EFejta_2002.htm

http://www.ee.unb.ca/tervo/ee4253/hamming.htm

http://www.cs.mdx.ac.uk/staffpages/mattsmith/modules/COM1021/seminar_sheets