Chapter 16: Check Digit Systems, Continued

Slides:



Advertisements
Similar presentations
4-6 Arithmetic Sequences Warm Up Lesson Presentation Lesson Quiz
Advertisements

Opening Objective By the end of this PowerPoint you should be able to:
Setting Up a Custom Gradebook Logon to GDP and click Instructor options. Then click LAN Gradebook and Create New Class to create a class in which a Custom.
ARITHMETIC SEQUENCES These are sequences where the difference between successive terms of a sequence is always the same number. This number is called.
You will need some paper!
Copyright © 2010 Pearson Education, Inc. Slide
What two numbers will give you a product of 64 and a quotient of 4?
0 - 0.
CS4026 Formal Models of Computation Running Haskell Programs – power.
Factoring Trinomials When a=1 ALWAYS check for GCF first! Factor trinomials in the standard form ax²+ bx + c Solve equations in the standard form ax²+
Bridging through 10 Learning objectives:
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.
The Game of Algebra or The Other Side of Arithmetic The Game of Algebra or The Other Side of Arithmetic © 2007 Herbert I. Gross by Herbert I. Gross & Richard.
How to Tame Them How to Tame Them
Introduction to Complex Numbers
Identification Numbers
Chapter 16: Check Digit Systems
Section 3.2: Using Check Digits
Factoring ax2+bx +c ax2+bx +c
Test B, 100 Subtraction Facts
Warm Up Multiply. 1. 2x2(x + 3) 2. (x – 5)(3x + 7) 3x2 – 8x – 35
11 = This is the fact family. You say: 8+3=11 and 3+8=11
18-Dec-14 Pruning. 2 Exponential growth How many leaves are there in a complete binary tree of depth N? This is easy to demonstrate: Count “going left”
11.5 Recursive Rules for Sequences p Explicit Rule A function based on a term’s position, n, in a sequence. All the rules for the nth term that.
Chapter 7 Posting Journal Entries to General Ledger Accounts
Math for Liberal Studies.  None of the methods we have investigated so far can detect transposition errors  In this section we will investigate new.
MAT 1000 Mathematics in Today's World Winter 2015.
MAT 1000 Mathematics in Today's World Winter 2015.
Write A if the quantity in Column A is greater
Barcode UPC ( Universal Product Code)  Commonly known as barcode  “Barcodes are black and white lines of varying widths followed underneath by a series.
Barcodes and ISBN numbers: which are better at detecting errors? Virtually all packaged products have a barcode on so that optical readers can recognise.
Solving a System of Equations by ELIMINATION. Elimination Solving systems by Elimination: 1.Line up like terms in standard form x + y = # (you may have.
Mathematics in Management Science
Chapter 16: Identification Numbers Lesson Plan
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.
Method for verifying a credit card number: Example:
MAT 1000 Mathematics in Today's World Winter 2015.
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.
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.
Modular Arithmetic, The Codabar System, and applications Tomás Cometto and Daniel Stokley Linear Systems 5/1/06.
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.
APS various problems. Not all bit-strings are compressible. If we have a bit string length n, sometimes we can compress it to a shorter bit string! Here.
0 Glencoe Accounting Unit 2 Chapter 7 Copyright © by The McGraw-Hill Companies, Inc. All rights reserved. Unit 2 The Basic Accounting Cycle Chapter 3 Business.
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.
Analyzing Numerical Data: Validating Identification Numbers
Divisibility Rules Presented By: Mr. Yarow.
Ways to Check for Divisibility Dividing By 1 All numbers are divisible by 1.
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.
Ways to Check for Divisibility Dividing By 1 All numbers are divisible by 1.
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,
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.
Solving a System of Equations by ELIMINATION. Elimination Solving systems by Elimination: 1.Line up like terms in standard form x + y = # (you may have.
Analyzing Numerical Data: Validating Identification Numbers
Chapter 16: Identification Numbers Lesson Plan
Keeper 8: UPC Codes S.A.S. #12 1 – 3 Credit Cards S.A.S. #
Modular Arithmetic 7th Grade Lesson Plan
MAT 105 Spring 2008 Chapter 17: Binary Codes.
Chapter 16: Introduction
Credit Cards UPC Codes.
Fundamentals of Data Representation
Chapter 16: Check Digit Systems, Continued
Chapter 16: Identification Numbers Lesson Plan
Method for verifying a credit card number:
Presentation transcript:

Chapter 16: Check Digit Systems, Continued MAT 105 Spring 2008 Chapter 16: Check Digit Systems, Continued

A New Method The methods we’ve been using so far are not great at detecting transposition errors Since these errors are relatively common, we want to find a system that can detect all possible transpositions The method we will use involves a weighted sum

UPC (Universal Product Code) Here is an example of a UPC from a typical product Notice that there are 12 digits: a single digit, two groups of 5, and another single digit check digit category of goods manufacturer ID product ID

Parts of the UPC The first number represents the general “category of goods” Most fixed-weight products are in category 0 Coupons are in category 5 The next 5 digits identify the manufacturer For example, Coca-Cola is 49000 The next 5 digits identify the particular product For example, a 12 oz. can of Diet Coke is 01134 The last digit is the check digit

Computing the Check Digit Instead of adding all of the digits together, we do something a little more complex Multiply the first digit by 3 Add the second digit Multiply the third digit by 3 Add the fourth digit etc. The check digit is chosen so that this sum ends in 0 Notice that we include the check digit in our sum!

Weighted Sums This is called a weighted sum In a weighted sum, we multiply the digits by “weights” before adding them together In this case, the weights are: 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1

Examples Show that 0-58200-48826-7 is valid Show that 0-52200-48826-7 is invalid The UPC system detects all substitution errors and 89% of all other kinds of errors

Another System: Bank Routing Numbers

What’s a Routing Number? A routing number uniquely identifies a bank If you have direct deposit on your paychecks, your employer asks you for your routing number (or for a cancelled check to read the number from) Also listed on your checks are your account number and the specific check number

Check Digits on Checks Routing numbers are 8 digits long The 9th digit is a check digit The check digit is the last digit of the weighted sum of the first 8 digits with weights 7, 3, 9, 7, 3, 9, 7, 3

Examples Show that 111000025 is a valid routing number (this is the routing number for a bank in Texas) Our weighted sum is 7*1 + 3*1 + 9*1 + 7*0 + 3*0 + 9*0 + 7*0 + 3*2 = 25 The last digit of the weighted sum is 5, so the routing number is valid!

Another Example Show that 231381116 is a valid routing number (this is the routing number for PSECU) Show that 238311116 is not valid What kind of error was committed?

Why Are More Complex Systems Better? The bank routing number check digit system is fairly complex, but it is better than the UPC system The UPC system cannot detect jump transpositions at all, but the routing number system can The more errors a system can detect, the better More complex systems can detect more errors

Codabar The system used by credit cards is called Codabar A credit card number is 16 digits long The first 15 digits identify the credit card, and the 16th digit is the check digit

The Codabar Process Add the digits in the odd-numbered positions (1st, 3rd, 5th, etc.) Double this sum Add to this total the number of odd-position digits that are above 4 (add the number of digits, not the digits themselves) Add the remaining (even position) digits The check digit is chosen so that the total ends in 0

An Example Consider the credit card number 4128 0012 3456 7890 Let’s check to make sure this credit card number is valid using Codabar

Running Through the Process Add the digits in the odd-numbered positions Double this sum Add to this total the number of odd-position digits that are above 4 Add the remaining (even position) digits The check digit is chosen so that the total ends in 0 4128 0012 3456 7896 4+2+0+1+3+5+7+9 = 31 31 x 2 = 62 4128 0012 3456 7896 62 + 3 = 65 4128 0012 3456 7896 65+1+8+0+2+4+6+8+6 = 100 

Finding the Check Digit What if the company is trying to determine which check digit should be appended to a given ID number? 3125 6001 9643 001_ What should the check digit be?

Benefits of Codabar The Codabar method detects all substitution errors and 98% of all other common errors This is important since credit card numbers are one of the more universal ID numbers we use on a daily basis

ISBN: International Standard Book Number An ISBN is a 10-digit number For example, the ISBN for our textbook is 0 – 7167 – 5965 – 9 check digit Indicates that the book was published in an English-speaking country publisher ID book ID

Weighted Sums Again For an ISBN number, we compute a weighted sum with weights 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 The check digit is chosen so that the sum is evenly divisible by 11

An Example Let’s check the ISBN 0-7167-5965-9 We compute our weighted sum to be 253, which is evenly divisible by 11 Which check digit would you need for ISBN 0-7167-1910-_ ?

An 11th Digit Since we’re using division by 11, sometimes we’ll need an 11th digit When the check digit would need to be 10, we use the letter X instead

Benefits of ISBN The ISBN system detects all substitution errors and all transposition errors Since valid ISBN’s were running out, new books are published using a new 13-digit system with a different way of computing the check digit You might explore these ideas in the third writing assignment