Check Digits Tanli Su. Introduction -identification numbers are used to easily identify people, products, books, accounts, credit cards, driver's licenses,

Slides:



Advertisements
Similar presentations
Math for Liberal Studies. An identification number is a sequence of letters and/or numbers that identifies an object, person, place, or concept The number.
Advertisements

Chapter 16: Check Digit Systems
Section 3.2: Using Check Digits
Home.
ELEC332 Presentation HKID & Credit Card Number Verification Chan Ka Shing, Yuemin Lu, Tang Shuk Fan 1.
Pamela Leutwyler. 9 goes into 36 four times with remainder = 9.
NETWORKING CONCEPTS. ERROR DETECTION Error occures when a bit is altered between transmission& reception ie. Binary 1 is transmitted but received is binary.
Math for Liberal Studies.  None of the methods we have investigated so far can detect transposition errors  In this section we will investigate new.
Introduction to Computers and Programming Lecture 4: Mathematical Operators New York University.
MAT 1000 Mathematics in Today's World Winter 2015.
MAT 1000 Mathematics in Today's World Winter 2015.
Identification Numbers
Write A if the quantity in Column A is greater
Summary of lecture 4 We are accustomed to count like 1,2,3,4,5,6,7,8,9,10,11,12,… This is called counting in base 10 – the second digit tells us how many.
MAT 1000 Mathematics in Today's World Winter 2015.
Mathematics in Management Science
Chapter 16: Identification Numbers Lesson Plan
Codebreaking in Everyday Life John D Barrow. 10 x 10 x 10 x 10 seconds  2.75 hours.
More to Learn Check digit –It is used to check whether a number is valid. –Both ISBN and Hong Kong Identity Card numbers contain a check digit for data.
RNJ 10/02/091 3 Computing System Fundamentals 3.6 Errors Prevention and Detection.
Mathematics of Cryptography Part I: Modular Arithmetic
Identification Numbers and Error Detection Meredith Wachs.
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.
It is physically impossible for any data recording or transmission medium to be 100% perfect 100% of the time over its entire expected useful life. As.
Modular Arithmetic.
GCSE ICT Checking data. Why do errors happen? Computers do not make mistakes. However if incorrect data is put in errors happen. In ICT this is called.
Cosc 2150: Computer Organization
Fault Tolerance CDA 5140 Spring 06 Everyday FT. Background Use of check digits for error detection on everyday applications used extensively but most.
Check Digit Schemes Jerzy Wojdyło Southeast Missouri State University May 13, 2002.
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.
Checking data GCSE ICT.
Checking data Chapter 7 Prepared by:Sir Mazhar Javed.
Objectives of Control The objectives of control are:  To ensure that all data are processed  To preserve the integrity of maintained data  To detect,
Spring 2015 Mathematics in Management Science Identification Numbers Data Security Check Digits UPCs, Routing Nos, Bar Codes Personal Data.
System Development Lifecycle Verification and Validation.
Operations on Bits Arithmetic Operations Logic Operations
Analyzing Numerical Data: Validating Identification Numbers
Name ______________________________________ Number _______________________ Division Test Study Guide Vocabulary, Models, 1 Digit Divisor with Remainders.
MAT 105 Spring  An identification number is a sequence of letters and/or numbers that identifies an object, person, place, or concept  The number.
Barcodes! Felipe Voloch These notes and the barcode program are available at /barcode.html.
Verification & Validation. Batch processing In a batch processing system, documents such as sales orders are collected into batches of typically 50 documents.
Ways to Check for Divisibility Dividing By 1 All numbers are divisible by 1.
Joseph Kirtland Department of Mathematics Marist College
Review of Data Capture. Input Devices What input devices are suitable for data entry? Keyboard Voice Bar Code MICR OMR Smart Cards / Magnetic Stripe cards.
Longitudinal redundancy check
Arithmetic OperatorOperationExample +additionx + y -subtractionx - y *multiplicationx * y /divisionx / y Mathematical FormulaC Expressions b 2 – 4acb *
Chapter 3 Data Control Ensure the Accurate and Complete data is entering into the data processing system.
Math for Liberal Studies. What is an identification number?  An identification number is a sequence of digits and/or numbers that identifies an object,
Coding Seven’s and Nine’s Sol: DM.11 Classwork: Students will take turns reading the “Coding Introduction” Worksheet aloud Homework (day 46): Worksheet.
Ways to Check for Divisibility Dividing by 2 All even numbers are divisible by 2 Even numbers are numbers that end with either 2, 4, 6, 8, or 0.
Weighted Codes, Codabar, ISBN & Code 39 Sol: DM.11 Classwork: worksheet Homework (day 47): worksheet.
MAT199: Math Alive Error corretcing and compression Ian Griffiths Mathematical Institute, University of Oxford, Department of Mathematics, Princeton University.
Lec 3: Data Representation
Analyzing Numerical Data: Validating Identification Numbers
The general journal is a permanent record organized by account number
Chapter 16: Identification Numbers Lesson Plan
Multiplication Inverse
Chapter 1 Number Systems, Number Representations, and Codes
Chapter 10 Error Detection And Correction
Algebraic Properties.
Modular Arithmetic II Lecture 10: Oct 6.
Chapter 16: Introduction
Credit Cards UPC Codes.
Objectives TO UNDERSTAND THAT CAPTURING DATA IS VALIDATED AND VERIFIED TO CHECK THAT IT IS REASONABLE AND CORRECT.
Check Digit Scheme Based on D5.
How Credit Card Numbers are Generated
Home.
Chapter 16: Check Digit Systems, Continued
Communicating Efficiently
Chapter 16: Identification Numbers Lesson Plan
Presentation transcript:

Check Digits Tanli Su

Introduction -identification numbers are used to easily identify people, products, books, accounts, credit cards, driver's licenses, and more -millions of times a day, these numbers are transmitted by humans and computers in various ways, making errors likely to occur -to ensure that an identification number has been transmitted correctly, a check digit is calculated and assigned as the last digit of the identification number -if the check digit does not match what it is expected to be, then a transmission error must have occurred and can be manually corrected -check digit schemes: methods to calculate check digits using modular arithmetic

Transmission Errors Error TypeDescriptionFormFrequency single digitone digit changesa → b79.1% adjacent transposition two different consecutive digits switch places ab → ba10.2% omitting or adding a digit a digit is omitted or an extra digit is added ab → a or a → ab 10% jump transposition two different digits separated by a third digit between them switch places acb → bca0.8%

Transmission Errors Error TypeDescriptionFormFrequency twin two identical consecutive digits change to a different pair of identical digits aa → bb0.5% phonetic two digits in a number are presented orally and incorrectly a0 → 1a or 1a → a0 (ex. 50 → 15) 0.5% jump twin two identical digits, separated by a third digit between them, change to a different pair of identical digits aca → bcb0.3% — J. Kirtland, Identification Numbers and Check Digit Schemes

US Postal Money Order -identification number for a US postal money order is 11 digits long -uses a mod 9 check digit scheme -check digit = remainder when the sum of the other 10 digits is divided by 9 -calculation for the check digit of x: ( ) (mod 9) ≡ 40 (mod 9) ≡ 4 So the complete US postal money order number is since this check digit scheme uses mod 9, it catches all single digit errors except when a 9 is changed to a 0, or vice versa

UPC (Universal Product Code) -UPC numbers appear on almost every single retail product in the U.S. -calculation for the check digit of UPC x: 1.Sum the digits in the odd-numbered positions = 23 ← sum 1 1.Multiply sum 1 by 3 and add it to the sum of the digits in the even-numbered positions to get a weighted sum. 3 ・ (sum 1) + ( ) = = 79 ← weighted sum 1.Find the remainder when the weighted sum is divided by 10. Subtract the remainder from 10, and the resulting number is the check digit. 79 (mod 10) ≡ = 1 So the complete UPC number is the UPC scheme catches all single digit errors and adjacent transposition errors except when ab is changed to ba when | a-b | = 5.

Luhn Algorithm -more advanced check digit scheme designed by IBM computer scientist Hans Peter Luhn in 1954 to accurately verify identification numbers -used by most credit card companies -detects all single digit errors and adjacent transposition errors except when 09 is changed to 90, or vice versa -can also catch most twin errors

Luhn Algorithm Example: validation of the identification number Starting with the last digit, which is the check digit, sum up every other digit = 42 ← sum 1 1.Starting with the second to last digit, double every other digit. If a number is greater than 9 after it is doubled, add up its two digits to create a new single digit. Add all the doubled digits/new single digits to make a second sum. 2 ・ 9 = 18 → = 9 2 ・ 2 = 4 2 ・ 3 = 6 2 ・ 8 = 16 → = 7 2 ・ 1 = = 28 ← sum 2 1.Add the two sums from steps 1 and 2 to make a weighted sum = 70 ← weighted sum If the weighted sum is divisible by 10, then it is a valid identification number according to the Luhn algorithm. In this case, 70 is divisible by 10, so the number is valid.

Concluding Remarks -other more complex check digit algorithms: the Verhoeff algorithm and the Damm algorithm -can detect most of the transmission errors mentioned in the table -while they can detect many transmission errors, they are still unable to identify more complex errors -to do this, necessary to either use both letters and numbers for the check digit or to use multiple check digits -check digits are only intended to catch accidental transmission errors and are not actually meant to help prevent forgeries

Works Cited Bartlett, Sandra L. "Credit Card Validation - Check Digits." Credit Card Check Digit Validation. University of Michigan, 5 Sept Web. 27 July Gallian, Joseph A. Contemporary Abstract Algebra. 6th ed. Boston, MA: Houghton Mifflin, Print. Kirtland, Joseph. Identification Numbers and Check Digit Schemes. Washington, DC: Mathematical Association of America, Print. Mohr, Jonathan. "Check Digits." Check Digits. University of Alberta, Web. 23 July Salomon, David. Coding for Data and Computer Communications. New York, NY: Springer, Print.

Thank you for listening!