MAT 1000 Mathematics in Today's World Winter 2015.

Slides:



Advertisements
Similar presentations
Chapter 16: Check Digit Systems
Advertisements

parity bit is 1: data should have an odd number of 1's
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Math for Liberal Studies.  Problems can occur when data is transmitted from one place to another  The two main problems are  transmission errors: the.
NETWORKING CONCEPTS. ERROR DETECTION Error occures when a bit is altered between transmission& reception ie. Binary 1 is transmitted but received is binary.
Chapter 10 Error Detection and Correction
Error detection and correction
MAT 1000 Mathematics in Today's World Winter 2015.
Error Detection and Correction
The Mathematics of Star Trek Data Transmission Michael A. Karls Ball State University.
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,
MAT 1000 Mathematics in Today's World Winter 2015.
Error Detection and Correction.  Corrupted files  Attachments that won’t open  Files that won’t download  Videos that won’t play Errors occur when.
MAT 1000 Mathematics in Today's World Winter 2015.
Rounding Off Whole Numbers © Math As A Second Language All Rights Reserved next #5 Taking the Fear out of Math.
Wong Wai Ling, Lam Pui Ki Identification number  clearly identify a person or a thing Check digit  an extra digit for the purpose of error.
Number Systems Part 2 Numerical Overflow Right and Left Shifts Storage Methods Subtraction Ranges.
Encoding, Validation and Verification Chapter 1. Introduction This presentation covers the following: – Data encoding – Data validation – Data verification.
The Mathematics of Star Trek
Lecture 12.  The ISBN 10-digit uses a reverse weighting system: multiply the first digit by 10, the second by 9, the third by 8 and so on until the check.
Information Coding in noisy channel error protection:-- improve tolerance of errors error detection: --- indicate occurrence of errors. Source.
Math for Liberal Studies.  A binary code is a system for encoding data made up of 0’s and 1’s  Examples  Postnet (tall = 1, short = 0)  UPC (dark.
Practical Session 10 Error Detecting and Correcting Codes.
Data Integrity © Prof. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada.
Error Detection and Correction
PREPARED BY: ENGR. JO-ANN C. VIÑAS
Barcodes! Felipe Voloch These notes and the barcode program are available at /barcode.html.
ADVANTAGE of GENERATOR MATRIX:
Verification & Validation. Batch processing In a batch processing system, documents such as sales orders are collected into batches of typically 50 documents.
VLSI AND INTELLIGENT SYTEMS LABORATORY 12 Bit Hamming Code Error Detector/Corrector December 2nd, 2003 Department of Electrical and Computer Engineering.
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 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Product Codes An extension of the concept of parity to a large number of words of data 0110… … … … … … …101.
Hamming (4,7) Code Binary Linear Codes Hamming Distance Weight of BLC
Error Detecting and Error Correcting Codes
Practical Session 10 Computer Architecture and Assembly Language.
Reliability of Disk Systems. Reliability So far, we looked at ways to improve the performance of disk systems. Next, we will look at ways to improve the.
MAT199: Math Alive Error corretcing and compression Ian Griffiths Mathematical Institute, University of Oxford, Department of Mathematics, Princeton University.
parity bit is 1: data should have an odd number of 1's
2.8 Error Detection and Correction
The Mathematics of Star Trek Workshop
Error Detection & Correction
Analyzing Numerical Data: Validating Identification Numbers
Computer Architecture and Assembly Language
DATA COMMUNICATION AND NETWORKINGS
Error Correcting Code.
Representing characters
Error Detection and Correction
Even/odd parity (1) Computers can sometimes make errors when they transmit data. Even/odd parity: is basic method for detecting if an odd number of bits.

Packetizing Error Detection
MAT 105 Spring 2008 Chapter 17: Binary Codes.
Packetizing Error Detection
Credit Cards UPC Codes.
Objectives TO UNDERSTAND THAT CAPTURING DATA IS VALIDATED AND VERIFIED TO CHECK THAT IT IS REASONABLE AND CORRECT.
Fundamentals of Data Representation

Packetizing Error Detection
Copyright © Cengage Learning. All rights reserved.
주민등록번호.
Error Detection and Correction
Computer Architecture and Assembly Language
Reliability and Channel Coding
Error Detection and Correction
parity bit is 1: data should have an odd number of 1's
How to lie and get away with it
Types of Errors Data transmission suffers unpredictable changes because of interference The interference can change the shape of the signal Single-bit.
2.8 Error Detection and Correction
Presentation transcript:

MAT 1000 Mathematics in Today's World Winter 2015

Last Time Identification numbers often include check digits: extra digits that allow us to catch errors. There are several different methods for finding check digits used in practice. We looked at sytems which are used for UPC codes, credit card numbers, and ISBNs as well as bar codes.

Today Binary codes are strings consisting of either 0s or 1s. We will look at a specific way to encode binary messages using Venn diagrams Then we consider a more general method, called “parity check sums”

Binary codes Binary codes are messages which are represented using only the digits 0 and 1. Some examples of binary codes of length three are 101, or 110, or 000 Computers use binary codes internally.

Binary codes We can append extra digits to binary codes to help catch errors. In fact, we can either identify where the error occurs, or we can fix the error. This requires appending more than a single digit.

Binary codes One advantage to binary codes: each position is either a 1 or a 0, so there are only two possible errors: 0 can be received as 1 1 can be received as 0

Venn diagram encoding If our binary codes have length 4, there is an encoding/decoding system which uses Venn diagrams. Use three circles in the following configuration:

Venn diagram encoding Note that we have four sections of overlap: Our four digit binary message will be placed in these 4 spaces, in this order. Then we append three digits, based on the other 3 spaces.

Venn diagram encoding Example Let’s encode the message 1011 First, fill in the numbered spaces in the Venn diagram using the digits of the message, in order: 1 st digit in the 1 st space, 2 nd digit in the second space, and so on.

Venn diagram encoding Example We have three more spaces to fill: We will put either a 1 or a 0 in each of these.

Venn diagram encoding Example To decide whether to put in a 0 or a 1, we choose whichever makes the total number of 1s in each circle even: Adding these three extra digits (in order) gives

Venn diagram encoding Example Now we will see how to correct errors using this method. Suppose our message is mistakenly received as When we fill in the Venn diagram, we can see there is a mistake because some of the circles have an odd number of 1s in them.

Venn diagram encoding Example The upper left circle has an even number of 1s:

Venn diagram encoding Example But the other two circles both have an odd number of 1s:

Venn diagram encoding Example But the other two circles both have an odd number of 1s:

Venn diagram encoding Example Which digit is incorrect? The incorrect digit must appear in both of the circles with an odd number of 1s, but it is not in the circle with the correct number of 1s. This tells us exactly where the error must be:

Venn diagram encoding Example Moreover, once we know the location of the error, we can fix it. After all, this is a binary code: if 0 is not the correct digit, then 1 must be. Fixing the mistake recovers our original message:

Venn diagram encoding Some disadvantages of this method: Only works on messages of length four If there are two or more errors, they may go undetected, or they may be fixed incorrectly Let’s see an example that shows how two errors can be fixed incorrectly.

Venn diagram encoding Example The original message is Encode this message. So the encoded message is:

Venn diagram encoding Example Suppose the message is received with two errors as What happens when we decode this message?

Venn diagram encoding Example The two upper circles have an odd number of 1s in them, but the lower circle has an even number of 1s. So the method tells us there is an error in this place:

Venn diagram encoding Example This gives the “corrected” message Of course this is not actually the correct message. That was So this method may fail when there are two or more errors in the message.

Parity Check Sums Here are some possible improvements on the Venn diagram method: 1.Longer messages 2.Correct more errors To describe these improved methods, we need to look at the Venn diagram method in a different way, using “parity check sums”

Parity Check Sums

If you compare this method with the Venn diagram method we used earlier, you will see that they are identical (for any four digit message they give the same code) The advantage of parity check sums over Venn diagrams is that we have more flexibility: we can now work with longer messages we can add more digits (which can catch more errors)

Parity Check Sums

If we encode a message with parity check sums, how should we decode it? The method used is called “nearest neighbor” decoding. To use this, we have to discuss the “distance” between binary strings.

Parity Check Sums The distance between two binary strings is the number of places in which they differ. Example: and have a distance of 1 Example: and have a distance of 3 Example: and have a distance of 0 Note if two strings have different lengths, it doesn’t make sense to talk about their distance. The distance between and doesn’t make sense

Parity Check Sums Nearest neighbor decoding: Receive an encoded message, which may have some errors. Find the nearest correct message (meaning the one which is the smallest distance from the received message). Do not decode if there is a tie.

Parity Check Sums In order to use nearest neighbor decoding, we need to make a list of every possible correct message. In the next example, we will take a parity check sum method, list every possible correct message, and then use that list to decode a message.

Parity Check Sums Messages Coded Messages

Parity Check Sums Example Decode the message We will find the distance from this message to each valid message: The message is decoded to be Distance Coded Messages

Parity Check Sums We have lots of choice for different parity check sums. How many should we use? Which ones should we use? We will see next time how to analyze different choices of parity check sums.