Spring 2015 Mathematics in Management Science Identification Numbers Data Security Check Digits UPCs, Routing Nos, Bar Codes Personal Data.

Slides:



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

Chapter 16: Check Digit Systems
Section 3.2: Using Check Digits
Section 4.1: Primes, Factorization, and the Euclidean Algorithm Practice HW (not to hand in) From Barr Text p. 160 # 6, 7, 8, 11, 12, 13.
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.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
7/2/2015Errors1 Transmission errors are a way of life. In the digital world an error means that a bit value is flipped. An error can be isolated to a single.
VIT UNIVERSITY1 ECE 103 DIGITAL LOGIC DESIGN CHAPTER I NUMBER SYSTEMS AND CODES Reference: M. Morris Mano & Michael D. Ciletti, "Digital Design", Fourth.
MAT 1000 Mathematics in Today's World Winter 2015.
Identification Numbers
Error Detection and Correction
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.
Keystone Problems… Keystone Problems… next Set 19 © 2007 Herbert I. Gross.
Mathematics in Management Science
Chapter 16: Identification Numbers Lesson Plan
© GCSE Computing Candidates should be able to:  convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa  add two 8-bit.
MAT 1000 Mathematics in Today's World Winter 2015.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
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.
Digital Systems and Logic Design
Dividing 1 digit by 2 digit numbers
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.
Section 2.1: Shift Ciphers and Modular Arithmetic The purpose of this section is to learn about modular arithmetic, which is one of the fundamental mathematical.
Cosc 2150: Computer Organization
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.
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.
Objectives of Control The objectives of control are:  To ensure that all data are processed  To preserve the integrity of maintained data  To detect,
Chapter 3 Whole Numbers Section 3.6 Algorithms for Whole-Number Multiplication and Division.
System Development Lifecycle Verification and Validation.
Topic 1 – Number Systems. What is a Number System? A number system consists of an ordered set of symbols (digits) with relations defined for addition,
MIMO continued and Error Correction Code. 2 by 2 MIMO Now consider we have two transmitting antennas and two receiving antennas. A simple scheme called.
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.
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.
Introduction To Number Systems Binary System M. AL-Towaileb1.
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,
Check Digits Tanli Su. Introduction -identification numbers are used to easily identify people, products, books, accounts, credit cards, driver's licenses,
My Book of Divisibility. THE 2’s Example: 30, 42, 24, 76, 98, Must be an even number Number must end in a 0, 2, 4, 6, or 8.
Coding Seven’s and Nine’s Sol: DM.11 Classwork: Students will take turns reading the “Coding Introduction” Worksheet aloud Homework (day 46): Worksheet.
Hamming (4,7) Code Binary Linear Codes Hamming Distance Weight of BLC
Weighted Codes, Codabar, ISBN & Code 39 Sol: DM.11 Classwork: worksheet Homework (day 47): worksheet.
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
MAT199: Math Alive Error corretcing and compression Ian Griffiths Mathematical Institute, University of Oxford, Department of Mathematics, Princeton University.
2.8 Error Detection and Correction
Analyzing Numerical Data: Validating Identification Numbers
Chapter 3 Data Representation
Chapter 16: Identification Numbers Lesson Plan
Error Detection and Correction
Multiplication Inverse
Modular Arithmetic 7th Grade Lesson Plan
Modular Arithmetic II Lecture 10: Oct 6.
Chapter 16: Introduction
The Digital Revolution
Credit Cards UPC Codes.
UPC, Bar codes, Zip + 4 (Post Net) Sol: DM.11
Fundamentals of Data Representation
Chapter 16: Check Digit Systems, Continued
Communicating Efficiently
Chapter 16: Identification Numbers Lesson Plan
Information Representation
Introduction To Number Systems
2.8 Error Detection and Correction
Presentation transcript:

Spring 2015 Mathematics in Management Science Identification Numbers Data Security Check Digits UPCs, Routing Nos, Bar Codes Personal Data

Identification Numbers Modern identification numbers serve at least two functions: The number should unambiguously identify the person or thing with which it is associated. (codes) The number should have a “self- checking” aspect. (check digits)

Examples ISBN – International Standard Book No VIN – Vehicle Identification No UPC – Universal Product Code BIN – Bank Identification No (aka, routing numbers) Money orders, credit card numbers, DL numbers, etc etc.

Data Security Want: error detection error correction protection Illustrate ideas via check digits; but in fact, essential in all data transmission. Calculations use modular arithmetic.

Modular Arithmetic Consider: 13 ÷ 5. Can’t divide evenly. Could say 13 ÷ 5 = 2.6, but better to say 13 ÷ 5 = 2 R 3 which is read “2 with remainder 3”. In modular arithmetic, we are only interested in the remainder.

Modular Arithmetic For two numbers n and p (p ≠ 0), n mod p is the remainder when we divide n by p. So, 13 mod 5 is 3 (3 = 13 − 2 ・ 5) 46 mod 7 is 4 (4 = 46 − 6 ・ 7) 167 mod 14 is 13 (13 =167−11 ・ 14)

Using a Calculator If your calculator has a “mod” or “remainder” function, you can use it. Otherwise, still fairly easy. Look at 13 mod 5 = 3 which simply means that 13 = q ・ where q is the quotient when we divide 13 by 5. That is, 13 = 2 ・ How to get the 3 ?

Using a Calculator Look at 13 mod 5 = 3 which means that 13 = 2 ・ How to get the 3 ? 1.Divide 13 by 5 to get Subtract the integer part: 2.6-2=0.6 3.Multiply this by 5 to get 3 See Algebra Reviews on pp 575 & 622 in your text book.

Other Options Large numbers can cause problems for calculators. There’re tricks….but, just use Google’s built in calculator. Type mod 17 into any google search bar. Also, can get many answers at

More Modular Arithmetic Recall that n mod p = r is equivalent to n = q p + r for some integer q chosen so that 0 ≤ r < p. Thus, r = n – q p.

More Modular Arithmetic We say that n ≡ m mod p (read as “n is equivalent to m mod p”) to mean that m and n have the same remainder when divided by p: n mod p = m mod p n ≡ m mod p means n − m is a whole number multiple of p.

Examples 18 ≡ 15 mod 3(18=15+3) 167 ≡ 27 mod 14 (167 mod 14=13) 1234 ≡ mod 9 If n ≡ m mod p, then m and n are interchangeable in all computations (such as +, −, ×) done mod p.

Spring 2015 Mathematics in Management Science Check Digits What are these? Possible Errors Division Schemes Examples

Check Digits A digit attached to identification number for the purpose of error & fraud detection and correction. Mathematical calculations or schemes are used on the digits of the identification number to compute the check digit. Check digits used to help detect and correct errors during data entry or transmission, and to prevent and detect fraud.

Check Digits Start with pre-id number. Use this to calculate check digit. Get id number. Check digit is an extra digit appended to pre-id number for purposes of detecting/correcting errors (or fraud) when the complete id number is copied or transmitted.

Check Digits Check digit is an extra digit appended to a pre-id number for purposes of detecting (and correcting) errors when id number is copied or transmitted. Check digit is calculated from the rest of the number and transmitted along with the number. When an error occurs, a recalculation of the check digit won’t match.

USPS Money Order U.S. Postal Service money order with id number , check digit 5. The check digit in this case is the calculated remainder after dividing the sum of the first ten digits by 9.

UPC A bar code and identification number that are used on most retail items. By using weighted schemes in the calculation of the check digit, the UPC code can achieve greater error detection—up to 100% of all single-digit errors and most other types of errors.

Example Consider the number found on bottom of box of cornflakes. First digit identifies broad category of goods. Next five digits identify manufacturer. Next five digits identify product. The last digit is a check digit.

Possible Data Errors Send id no ….abc…. What received? Single digit error ….axc…. Multipile digit error ….axy…. Adjacent transposition….bac…. Other transposition ….cba…. Some errors easy to detect; some hard.

USPS Money Order Check digit is remainder after dividing sum of the first ten digits by 9. Will not detect any transposition errors. Will detect single digit errors, except replacing 0 by 9 or vice versa. May not detect multiple digit errors. E.g. if 2,5 replaced by 3,4

American Express Cheques Another division by 9 scheme. Id no has form a 1 a 2 a 3 a 4 a 5 a 6 a 7 a 8 a 9 c ; The check digit c is chosen so that a 1 +a 2 +a 3 +a 4 +a 5 +a 6 +a 7 +a 8 +a 9 +c is evenly divisible by 9. Same error detection as USPS money orders.

Direct vs Indirect Methods USPS money order check digit is computed via direct calculation: c is remainder after division by 9. AmExpress cheques check digit is computed via indirect calculation: c is chosen so that sum is evenly divisible by 9. Direct methods easier to compute, but harder to verify. Indirect methods harder to compute, but easier to verify.

Detecting Errors Direct Method: Recalculate check digit and compare it to one supplied. Indirect Method: Use supplied check digit and see if it satisfies condition.

Example Is valid AmX check no? Compute =35. Since 35 not divisible by 9, this not a valid AmX cheque number!

Other Schemes Can be “direct” or “indirect”. Can use division by 7 or 10 or 11 or 13. Can introduce “weights”: UPC, BIN, ISBN, codabar Do not need to memorize all these! But, shud be able to calculate a check digit given description of scheme.

Indirect Div by 10 Example This a division by 10 scheme. 11 digits + check digit Check digit c chosen so that sum of all digits is divisible by 10. Id no of form a 1 a 2 a 3 a 4 a 5 a 6 a 7 a 8 a 9 a 10 c Check digit c is chosen so that a 1 +a 2 +a 3 +a 4 +a 5 +a 6 +a 7 +a 8 +a 9 +a 10 +c is divisible by 10.