Check Digit Schemes Jerzy Wojdyło Southeast Missouri State University May 13, 2002.

Slides:



Advertisements
Similar presentations
Chapter 16: Check Digit Systems, Continued
Advertisements

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.
Identification Numbers
Chapter 16: Check Digit Systems
ELEC332 Presentation HKID & Credit Card Number Verification Chan Ka Shing, Yuemin Lu, Tang Shuk Fan 1.
Numbers in Our Pockets GCNU 1025 Numbers Save the Day.
Math for Liberal Studies.  None of the methods we have investigated so far can detect transposition errors  In this section we will investigate new.
UPC Assignment 1 Sample problems. Consider the following UPC-A code. Is it a valid UPC?
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
CSE 111 Representing Nonnumeric Data in a Computer.
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.
Barcodes and ISBN numbers: which are better at detecting errors? Virtually all packaged products have a barcode on so that optical readers can recognise.
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.
MAT 1000 Mathematics in Today's World Winter 2015.
Identification Numbers and Error Detection Meredith Wachs.
What is it? It is an applications driven course that is based upon the study of events that occur in small, or discrete, chunks. Discrete concepts are.
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.
1 JavaScript 4 User Input Validation. 2 Input Validation One of the most useful applications of JavaScript is input validation Scripts in the page can.
Modular Arithmetic.
3.2 Data Checking.
SAT Review 1.Which is the equation of a line that passes through the pt (7, - 1) and is to y + 2x = 1. A. y = 2x – 15 B. y = –2x + 13 C. D. 2.Line p is.
Fault Tolerance CDA 5140 Spring 06 Everyday FT. Background Use of check digits for error detection on everyday applications used extensively but most.
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.
Modern Systems Analysis and Design Hoffer, George & Valacich
Spring 2015 Mathematics in Management Science Identification Numbers Data Security Check Digits UPCs, Routing Nos, Bar Codes Personal Data.
AS computing Validation and verification. Introduction It is important to maintain the integrity of any database of information. Any data item must always.
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.
CIT PowerPoint presentation Group 4. Unit 1, Chapter 2 Basic Concept on Data DATA AND INFORMATION What is data? Data consists of all sorts of unorganised.
Joseph Kirtland Department of Mathematics Marist College
Longitudinal redundancy check
DIGITAL SYSTEMS Number systems & Arithmetic Rudolf Tracht and A.J. Han Vinck.
Math for Liberal Studies. What is an identification number?  An identification number is a sequence of digits and/or numbers that identifies an object,
Check Digits Tanli Su. Introduction -identification numbers are used to easily identify people, products, books, accounts, credit cards, driver's licenses,
Coding Seven’s and Nine’s Sol: DM.11 Classwork: Students will take turns reading the “Coding Introduction” Worksheet aloud Homework (day 46): Worksheet.
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.
How to validate ISBN/ISSN Available in cataloging, circulation and acquisitions.
2.8 Error Detection and Correction
DATA COLLECTION Data Collection Data Verification and Validation.
Analyzing Numerical Data: Validating Identification Numbers
Keeper 8: UPC Codes S.A.S. #12 1 – 3 Credit Cards S.A.S. #
Chapter 16: Identification Numbers Lesson Plan
Error Detection and Correction
Multiplication Inverse
Assignment statement and Arithmetic operation 2
Keeper 8: UPC Codes S.A.S. #12 1 – 3 Credit Cards S.A.S. #
Modular Arithmetic 7th Grade Lesson Plan
Modular Arithmetic II Lecture 10: Oct 6.
Multiplication and Division by Powers of Ten
Chapter 16: Introduction
The Digital Revolution
Keeper 8: UPC Codes S.A.S. #12 1 – 3 Credit Cards S.A.S. #
Credit Cards UPC Codes.
UPC, Bar codes, Zip + 4 (Post Net) Sol: DM.11
Check Digit Scheme Based on D5.
Divisibility Rules.
How Credit Card Numbers are Generated
Divisibility Rules.
Chapter 16: Check Digit Systems, Continued
Communicating Efficiently
Chapter 16: Identification Numbers Lesson Plan
Lecture 17 Making New Codes from Old Codes (Section 4.6)
2.8 Error Detection and Correction
Presentation transcript:

Check Digit Schemes Jerzy Wojdyło Southeast Missouri State University May 13, 2002

Common Error Patterns Type of ErrorFormFrequency Single Error a  b 60 – 90 % Omitting/Adding a Digit …xa  …x 10 – 20 % Adjacent Transposition ab  ba 10 – 20 % Twin Errors aa  bb 0.5 – 1.5 % Jump Transposition acb  bca 0.5 – 1.5 % Jump Twin Errors aca  bcb < 1 % Phonetic Errors 1a  a01a  a0 0.5 – 1.5 % J. Verhoeff, “Error Detecting Decimal Codes”, Mathematical Centre Tract 29, The Mathematical Centre, Amsterdam, 1969.

POSTNET Bar coded digits, 3 short, 2 long, weights Check equation (for n = 5, 9, 11) * d 1 + d 2 + d 3 + d 4 +… + d n + d n+1 ≡ 0 (mod 10)

POSTNET

POSTNET ?

POSTNET Advantages Detects all single errors, Corrects single error (if corrupted digit is known) Works for arbitrary length Disadvantages Transposition errors are undetected

UPC Bars and 12 digits UPC = [d 1 d 2 d 3 d 4 d 5 d 6 d 7 d 8 d 9 d 10 d 11 d 12 ] w = [ ] Check equation UPC · w ≡ 0 (mod 10)

UPC

UPC Advantages Detects all single errors Corrects single error (if corrupted digit is known) Works for arbitrary length Disadvantages (does not detect) Jump transpositions Adjacent transpositions ab  ba if |a - b| = 5

EAN Bars and 13 digits EAN=[d 1 d 2 d 3 d 4 d 5 d 6 d 7 d 8 d 9 d 10 d 11 d 12 d 13 ] w =[ ] Check equation Advantages/disadvantages same as UPC EAN · w ≡ 0 (mod 10)

EAN

Credit Cards Card TypePrefixLength AMEX VISA 4 13, 16 MASTER CARD DICOVER Diners Club/ Carte Blanche 300 – JCB

Credit Cards Check digit algorithm(s) MOD 10 Luhn Formula IBM Check Permutation Check All do the same Hans Peter Luhn ( ) Worked for IBM since 1941 Example (Excel)

Credit Cards Position Sum Digit Weight Product Sum of Digits Invalid number, sum not divisible by 10.Sum mod 108

Credit Cards Position Sum Digit Weight σi(d)σi(d) Invalid number, sum not divisible by 10.Sum mod 106 id, i = 1 σ i (d) = (0)(124875)(36)(9), i = 2

Credit Cards Advantages Detects all single errors Corrects single error (if corrupted digit is known) Works for arbitrary length Disadvantages (does not detect) Jump transpositions Adjacent transpositions 09  90 and 90  09

Credit Cards Position Sum Digit Weight σi(d)σi(d) Valid number Sum mod 100 Position Sum Digit Weight σi(d)σi(d) Valid number Sum mod 100

ISBN Ten “digits” and three dashes (-) d 1 d 2 d 3 d 4 d 5 d 6 d 7 d 8 d 9 d 10 d 1,…, d 9 = {0, 1, …, 9}; d 10 ={0, …, 9, X=10} Check equation 10 ∑ i∙d i  0 (mod 11) i = 1

ISBN X =11·37

ISBN Advantages Detects all single errors Corrects single error (if corrupted digit is known) Detects all transposition errors (!!) Disadvantages Works for bounded length (≤ 10) Additional symbol X

Other US Postal Money Orders MOD 9 arithmetic Airline Tickets MOD 7 arithmetic Electronic Funds Transfer MOD 10, weights [ ] Verhoeff’s Check Digit Scheme German DM Dihedral Group D 5 multiplication

The End If you blinked and missed it, go to www2.semo.edu/jwojdylo/research.htm