Error Correcting Codes Stanley Ziewacz 22M:151 Spring 2009.

Slides:



Advertisements
Similar presentations
Mahdi Barhoush Mohammad Hanaysheh
Advertisements

Noise, Information Theory, and Entropy (cont.) CS414 – Spring 2007 By Karrie Karahalios, Roger Cheng, Brian Bailey.
Applied Algorithmics - week7
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.
Information Theory Introduction to Channel Coding Jalal Al Roumy.
IV054 CHAPTER 2: Linear codes ABSTRACT
Combinatorial Designs and related Discrete Combinatorial Structures Discrete Mathematics Olin College Sarah Spence Adams Fall 2007.
SARAH SPENCE ADAMS ASSOC. PROFESSOR OF MATHEMATICS AND ELECTRICAL & COMPUTER ENGINEERING Combinatorial Designs and Related Discrete Combinatorial Structures.
Combinatorial Designs and Related Discrete Combinatorial Structures Sarah Spence Adams Fall 2008.
Error detection and correction
Error Correcting Codes To detect and correct errors Adding redundancy to the original message Crucial when it’s impossible to resend the message (interplanetary.
Variable-Length Codes: Huffman Codes
MAT 1000 Mathematics in Today's World Winter 2015.
6 6.3 © 2012 Pearson Education, Inc. Orthogonality and Least Squares ORTHOGONAL PROJECTIONS.
Error Detection and Correction Rizwan Rehman Centre for Computer Studies Dibrugarh University.
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 Codes 11/17/04. History In the late 1940’s Richard Hamming recognized that the further evolution of computers required greater reliability, in.
MAT 1000 Mathematics in Today's World Winter 2015.
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.
Information and Coding Theory Linear Block Codes. Basic definitions and some examples. Juris Viksna, 2015.
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.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 1 Communication Reliability Asst. Prof. Chaiporn Jaikaeo, Ph.D.
PEDS: A PARALLEL ERROR DETECTION SCHEME FOR TCAM DEVICES Author: Anat Bremler-Barr, David Hay, Danny Hendler and Ron M. Roth Publisher/Conf.: IEEE INFOCOM.
Codes Codes are used for the following purposes: - to detect errors - to correct errors after detection Error Control Coding © Erhan A. Ince Types: -Linear.
COEN 180 Erasure Correcting, Error Detecting, and Error Correcting Codes.
ENEE244-02xx Digital Logic Design Lecture 3. Announcements Homework 1 due next class (Thursday, September 11) First recitation quiz will be next Monday,
Practical Session 10 Error Detecting and Correcting Codes.
Introduction to Coding Theory. p2. Outline [1] Introduction [2] Basic assumptions [3] Correcting and detecting error patterns [4] Information rate [5]
Coding and Algorithms for Memories Lecture 5 1.
Communication System A communication system can be represented as in Figure. A message W, drawn from the index set {1, 2,..., M}, results in the signal.
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
Hamming codes. Golay codes.
CHAPTER 5 SIGNAL SPACE ANALYSIS
ADVANTAGE of GENERATOR MATRIX:
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.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
10.1 Chapter 10 Error Detection and Correction Data can be corrupted during transmission. Some applications require that errors be detected and.
Error Detection. Data can be corrupted during transmission. Some applications require that errors be detected and corrected. An error-detecting code can.
Basic Concepts of Encoding Codes and Error Correction 1.
Error Detection and Correction – Hamming Code
Some Computation Problems in Coding Theory
Error Detection and Correction
1 Lecture 7 System Models Attributes of a man-made system. Concerns in the design of a distributed system Communication channels Entropy and mutual information.
Elementary Coding Theory Including Hamming and Reed-Solomom Codes with Maple and MATLAB Richard Klima Appalachian State University Boone, North Carolina.
Computer Architecture Error Correcting Codes Ralph Grishman Oct (Text pp and B-65-67) NYU.
Richard Cleve DC 2117 Introduction to Quantum Information Processing QIC 710 / CS 667 / PH 767 / CO 681 / AM 871 Lecture (2011)
拉丁方陣 交大應數系 蔡奕正. Definition A Latin square of order n with entries from an n-set X is an n * n array L in which every cell contains an element of X such.
Block Coded Modulation Tareq Elhabbash, Yousef Yazji, Mahmoud Amassi.
Channel Coding: Part I Presentation II Irvanda Kurniadi V. ( ) Digital Communication 1.
Institute for Experimental Mathematics Ellernstrasse Essen - Germany DATA COMMUNICATION introduction A.J. Han Vinck May 10, 2003.
Sets of mutually orthogonal resolutions of BIBDs Svetlana Topalova, Stela Zhelezova Institute of Mathematics and Informatics, BAS, Bulgaria.
Hamming codes. Golay codes.
The Three Main Sources of Transmission Errors
Subject Name: Information Theory Coding Subject Code: 10EC55
COT 5611 Operating Systems Design Principles Spring 2012
COT 5611 Operating Systems Design Principles Spring 2014
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
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)
Lecture 15 The Minimum Distance of a Code (Section 4.4)
Theory of Information Lecture 13
Lecture 18 The Main Coding Theory Problem (Section 4.7)
Presentation transcript:

Error Correcting Codes Stanley Ziewacz 22M:151 Spring 2009

Information Transmission Hello Hell~ Message Encoded Sent Message Encoded Received Transmission

Information Transmission Hello Hell~ Message Encoded Sent Message Encoded Received Transmission Error!

Information Transmission with Parity Bit Hello Hell~ Message Encoded Sent Message Encoded Received Transmission

Information Transmission with Parity Bit Hello Hell~ Message Encoded Sent Message Encoded Received Transmission Error Detected

Definition of Code Block code: all words are the same length. A q-ary code C of length n is a set of n-character words over an alphabet of q elements. Examples: C 1 = {000, 111} binary code of length 3 C 2 = { 00000, 01100, 10110} binary code of length 5 C 3 = {0000, 0111, 0222, 1012, 1020, 1201, 2021, 2102, 2210} ternary code of length 4

Error Correcting Code An error is a change in a symbol Want to detect and correct up to t errors in a code word Basic assumptions – If i < j then i errors are more likely than j errors – Errors occur randomly – Nearest neighbor decoding Decode y to c, where c has fewer differences from y than any other codeword

Hamming Distance The Hamming distance between two words over the same alphabet is the number of places where the symbols differ. Example : d(100111, ) = 3 – Look at For a code, C, the minimum distance d(C) is defined by d(C) = min{d(c 1,c 2 ),| c 1, c 2  C, c 1  c 2 }

Hamming Distance Properties Let x and y be any words over the alphabet for C; x and y may or not be codewords. d(x, y) = 0 iff x = y d(x, y)= d(y, x) for all x, y d(x, y)  d(x, z) + d(z, y) for all x, y, and z

Detection and Correction A code C can detect up to s errors in any codeword if d (C)  s + 1 A code C can correct up to t errors if d(C)  2t + 1 – Suppose: c is sent and y is received, d(c,y)  t and (c’  c) – Use triangle inequality 2t +1  d(c, c’)  d(c, y) + d(y, c’)  t + d(y,c’)

(n, M, d) q-ary code C Codewords are n characters long d(C) = d M codewords q characters in alphabet Want n as small as possible with d and M as large as possible These are contradictory goals

Hard Problem Maximize the number of codewords in a q-ary code with given length n and given minimum distance d. We’ll use Latin squares to construct some codes.

(4, 9, 3) ternary code

Latin square A Latin square of order n is an n x n array in which n distinct symbols are arranged so that each symbol occurs once in each row and column. Examples:

Orthogonal Latin Squares Two distinct Latin squares A = (a ij ) and B =(b ij ) are orthogonal if the n x n ordered pairs (a ij, b ij ) are all distinct. Example: (0,0) (1,1) (2,2) A = B =2 0 1(1,2) (2,0) (0,1) (2,1) (0,2) (1,0)

(4, 9, 3) ternary code constructed from orthogonal Latin squares

Theorem There exists a q-ary (4, q 2, 3) code iff there exists a pair of orthogonal Latin squares of order q. Proof: Look at the following 6 sets {(i, j)} {(i, a ij )}, {(i, b ij )}, {(j, a ij )}, {(j, b ij )}, {(a ij, b ij )}

References Colbourn, Charles J. and Jeffrey H. Dinitz, Handbook of Combinatorial Designs, Second Edition, Chapman & Hall/CRC, Boca Raton, FL, 2007 Laywine, Charles F. and Gary L. Mullen, Discrete Mathematics Using Latin Squares, John Wiley and Sons, New York, 1998 Pless, Vera, Introduction to the Theory of Error- Correcting Codes, John Wiley and Sons, New York, 1982 Roberts, Fred S. and Barry Tesman, Applied Combinatorics, 2 nd Edition, Pearson Education, Upper Saddle River, NJ, 2005