Check Digit Schemes - PowerPoint PPT Presentation

1 / 20
About This Presentation
Title:

Check Digit Schemes

Description:

J. Verhoeff, 'Error Detecting Decimal Codes', Mathematical Centre Tract 29, The ... The End. If you blinked and missed it, go to. www2.semo.edu/jwojdylo/research.htm ... – PowerPoint PPT presentation

Number of Views:308
Avg rating:3.0/5.0
Slides: 21
Provided by: JerzyW8
Category:
Tags: blinked | check | digit | schemes

less

Transcript and Presenter's Notes

Title: Check Digit Schemes


1
Check Digit Schemes
  • Jerzy Wojdylo
  • Southeast Missouri State University
  • May 13, 2002

2
Common Error Patterns
3
POSTNET
  • Bar coded digits, 3 short, 2 long, weights 7 4 2
    1 0
  • www.usps.com
  • www.framed.usps.com/cpim/ftp/pubs/pub32.pdf
  • Check equation (for n 5, 9, 11)

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

7
UPC
  • Bars and 12 digits
  • UPC d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12
    w 3 1 3 1 3 1 3 1 3 1 3 1
  • Check equation
  • www.uc-council.com/checkdig.htm
  • www.upcdatabase.com

8
UPC
9
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

10
EAN
  • Bars and 13 digits
  • EANd1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13
    w 1 3 1 3 1 3 1 3 1 3 1 3
    1
  • Check equation
  • Advantages/disadvantages same as UPC
  • www.ean-int.org

11
EAN
12
Credit Cards
13
Credit Cards
  • Check digit algorithm(s)
  • MOD 10
  • Luhn Formula
  • IBM Check
  • Permutation Check
  • All do the same
  • Hans Peter Luhn (1896-1964)
  • Worked for IBM since 1941
  • Example (Excel)

14
(No Transcript)
15
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

16
ISBN
  • www.ISBN.org
  • Ten digits and three dashes (-)
  • d1 d2 d3 d4 d5 d6 d7 d8 d9 d10
  • d1,, d9 0, 1, , 9 d10 0, , 9, X10
  • Check equation

17
ISBN
4071137
18
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

19
Other
  • US Postal Money Orders
  • MOD 9 arithmetic
  • Airline Tickets
  • MOD 7 arithmetic
  • Electronic Funds Transfer
  • MOD 10, weights 3 7 1 3 7 1 3 7 1
  • Verhoeffs Check Digit Scheme
  • German DM
  • Dihedral Group D5 multiplication

20
The End
  • If you blinked and missed it, go to
  • www2.semo.edu/jwojdylo/research.htm
Write a Comment
User Comments (0)
About PowerShow.com