II. Linear Block Codes.

Slides:



Advertisements
Similar presentations
Mahdi Barhoush Mohammad Hanaysheh
Advertisements

Error Control Code.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
II. Linear Block Codes. © Tallal Elshabrawy 2 Last Lecture H Matrix and Calculation of d min Error Detection Capability Error Correction Capability Error.
NETWORKING CONCEPTS. ERROR DETECTION Error occures when a bit is altered between transmission& reception ie. Binary 1 is transmitted but received is binary.
DIGITAL COMMUNICATION Coding
EEE377 Lecture Notes1 EEE436 DIGITAL COMMUNICATION Coding En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK) Room 2.14.
15-853Page :Algorithms in the Real World Error Correcting Codes I – Overview – Hamming Codes – Linear Codes.
Error Detection and Correction
3F4 Error Control Coding Dr. I. J. Wassell.
Hamming Code Rachel Ah Chuen. Basic concepts Networks must be able to transfer data from one device to another with complete accuracy. Data can be corrupted.
Hamming Code A Hamming code is a linear error-correcting code named after its inventor, Richard Hamming. Hamming codes can detect up to two bit errors,
exercise in the previous class (1)
Hamming Codes 11/17/04. History In the late 1940’s Richard Hamming recognized that the further evolution of computers required greater reliability, in.
Linear codes 1 CHAPTER 2: Linear codes ABSTRACT Most of the important codes are special types of so-called linear codes. Linear codes are of importance.
Syndrome Decoding of Linear Block Code
Linear Codes.
Lecture 10: Error Control Coding I Chapter 8 – Coding and Error Control From: Wireless Communications and Networks by William Stallings, Prentice Hall,
Exercise in the previous class p: the probability that symbols are delivered correctly C: 1 00 → → → → What is the threshold.
Information Coding in noisy channel error protection:-- improve tolerance of errors error detection: --- indicate occurrence of errors. Source.
4-2 binary fields and binary vector spaces Special Thanks to Dr. Samir Al-Ghadhban & EE430 Students.
CODING/DECODING CONCEPTS AND BLOCK CODING. ERROR DETECTION CORRECTION Increase signal power Decrease signal power Reduce Diversity Retransmission Forward.
Error Control Code. Widely used in many areas, like communications, DVD, data storage… In communications, because of noise, you can never be sure that.
MIMO continued and Error Correction Code. 2 by 2 MIMO Now consider we have two transmitting antennas and two receiving antennas. A simple scheme called.
Error Control Code. Widely used in many areas, like communications, DVD, data storage… In communications, because of noise, you can never be sure that.
Error Detection and Correction
§6 Linear Codes § 6.1 Classification of error control system § 6.2 Channel coding conception § 6.3 The generator and parity-check matrices § 6.5 Hamming.
DIGITAL COMMUNICATIONS Linear Block Codes
ADVANTAGE of GENERATOR MATRIX:
Linear Block Code 指導教授:黃文傑 博士 學生:吳濟廷
Chapter 31 INTRODUCTION TO ALGEBRAIC CODING THEORY.
Information Theory Linear Block Codes Jalal Al Roumy.
Word : Let F be a field then the expression of the form a 1, a 2, …, a n where a i  F  i is called a word of length n over the field F. We denote the.
Authentication protocol providing user anonymity and untraceability in wireless mobile communication systems Computer Networks Volume: 44, Issue: 2, February.
Error Detection and Correction
The parity bits of linear block codes are linear combination of the message. Therefore, we can represent the encoder by a linear system described by matrices.
Perfect and Related Codes
Error Detection and Correction – Hamming Code
Error Detection and Correction
Digital Communications I: Modulation and Coding Course Term Catharina Logothetis Lecture 9.
Data Communications and Networking
Hamming Distance & Hamming Code
Computer Architecture Error Correcting Codes Ralph Grishman Oct (Text pp and B-65-67) NYU.
Error Control Coding. Purpose To detect and correct error(s) that is introduced during transmission of digital signal.
II. Linear Block Codes. © Tallal Elshabrawy 2 Digital Communication Systems Source of Information User of Information Source Encoder Channel Encoder Modulator.
ECE 442 COMMUNICATION SYSTEM DESIGN LECTURE 10. LINEAR BLOCK CODES Husheng Li Dept. of EECS The University of Tennessee.
Channel Coding: Part I Presentation II Irvanda Kurniadi V. ( ) Digital Communication 1.
Modulo-2 Digital coding uses modulo-2 arithmetic where addition becomes the following operations: 0+0= =0 0+1= =1 It performs the.
Hamming Code In 1950s: invented by Richard Hamming
Part 2 Linear block codes
The Viterbi Decoding Algorithm
Error Detection and Correction
DATA COMMUNICATION AND NETWORKINGS
Error control coding for wireless communication technologies
Chapter 6.
Welcome to the presentation. Linear Block Codes Almost all block codes used today belong to a subset called linear block codes. The exclusive OR of two.
Subject Name: Information Theory Coding Subject Code: 10EC55
Block codes. encodes each message individually into a codeword n is fixed, Input/out belong to alphabet Q of cardinality q. The set of Q-ary n-tuples.
Information Redundancy Fault Tolerant Computing
Standard Array.
DIGITAL COMMUNICATION Coding
Cyclic Code.
Error control coding for wireless communication technologies
Error Detection and Correction
주민등록번호.
II. Linear Block Codes.
Error Detection and Correction
Types of Errors Data transmission suffers unpredictable changes because of interference The interference can change the shape of the signal Single-bit.
Lecture 17 Making New Codes from Old Codes (Section 4.6)
Chapter 10 Error Detection and Correction
Presentation transcript:

II. Linear Block Codes

Weight Distribution of a Block Code For an (n.k) block code: Let Ai be the number of codewords of weight i in C. The numbers A0, A1, …, An are called the Weight Distribution Example: For the (7,4) code shown, A0 = A7 = 1, A1 = A2 = A5 = A6= 0 A3 = A4 = 7 Note that: ∑Ai=16=24 (Number of valid code words)

Weight Distribution and Probability of Detecting an Error Pattern For an (n,k) linear code: Given that the bit error probability of the physical channel is p. The probability that an error pattern of weight j occurs is pj(1-p)n-j In Total, there are nCj error patterns that have j erroneous bits. ONLY Aj of those are NOT DETECTABLE because they represent valid codewords Probability of not detecting an error pattern (Pu(E)) is: Example: For the (7,4) code in the previous slide, Pu(E)=7p3(1-p)4 + 7p4(1-p)3 + p7

Weight Distribution of Coset Leaders Let αi denote the number of coset leaders of weight i. Then the numbers α0,α1,…, αn are the weight distribution of the coset leaders Probability of Correct Decoding of an error pattern Ps(E) PS(E)=∑ αi pi(1-p)(n-i) where is the bit error probability of the channel Probability of False Decoding of an error pattern P(E) P (E)=1-PS(E)

Hamming Linear Block Codes

Hamming Codes For any positive integer m≥3, there exists a Hamming code such that: Code Length: n = 2m-1 No. of information symbols: k = n-m =2m-m-1 No. of parity check symbols: n-k = m Error correcting capability: t = 1 (i.e., dmin=3)

Parity Check Matrix, Generator Matrix and dmin of Hamming Codes H contains all of nonzero m-tuples as its columns. In the systematic form: m columns of weight 1 2m-m-1 columns of weight >1 Parity Check Matrix Generator Matrix No two columns are identical dmin>2 The sum of any two columns must be a third one dmin=3 Hamming Codes can correct all single errors or detect all double errors

Example: (15,11) Hamming Codes Code Length: n = 24-1 = 15 No. of information symbols: k = 15-4 = 11 No. of parity check symbols: 15-11 = 4 Error correcting capability: dmin = 3 4 columns of weight 1 11 columns of weight >1

Hamming Codes are Perfect Codes Consider the standard array for a Hamming Code The code has 2m cosets The number of (2m-1)-tuples of weight 1 is 2m-1 The 0 vector and the (2m-1)-tuples of weight 1 form all the coset leaders of the standard array In such configuration for the standard array, the Hamming code corrects ONLY error patterns with single error. A Perfect Code is a t-error correcting code where its standard array has all error patterns of t or fewer errors and no others as coset leaders

The (15,11) Hamming Code is a Perfect Code Number of cosets = 2n-k= 215-11 = 16 Number of error patterns of weight 1 = 15 If the coset leaders are chosen to be the 0 vector and all the error patterns of weight 1. The (15,11) code corrects ONLY error patterns with single error

Shortened Hamming Codes It is possible to delete l columns from the parity check matrix of H of a Hamming code. This results is H’ of dimensions m×(2m-l-1) which is the parity check matrix of a shortened Hamming code Code Length: n = 2m-l-1 No. of information symbols: k = n-m = 2m-m-l-1 No. of parity check symbols: n-k = m Error correcting capability: dmin≥3

Single Error Correction and Double Error Detection For a code with minimum Hamming distance dmin: If the code could correct λ and detect l then dmin≥ λ+l+1 For a shortened Hamming code to achieve single error correction (λ=1) and double error detection (l=2), It is essential that dmin≥4 To achieve dmin=4 it is essential to delete columns properly from H of the original Hamming code Example Delete from Q all even weight columns H’ is of dimension m×2m-1 Why is it that dmin=4? No two columns are identical  dmin>2 Adding two m-tuples of odd weight results in an even weight m-tuple  dmin>3 Adding three m-tuples of odd weight results in an odd weight m-tuple  dmin=4 2m-1-m odd weight columns

Single Error Correction and Double Error Detection (Decoding Scheme) If the syndrome s is zero, assume no error has occurred. If s is nonzero and has odd weight, assume single error has occurred. Add the error pattern corresponding to the syndrome. If s is nonzero and has even weight, an uncorrectable pattern has been detected

Example: (8,4) Shortened Hamming Code Parity Check Matrix for (15,11) Hamming Code delete all even weight columns

Example: (8,4) Shortened Hamming Code syndrome s=e.H’T Notice that If an error pattern has a single error, the syndrome has odd weight If an error pattern has a double error, the syndrome has even weight