You are on page 1of 15

CAMBRIDG

2.2 Methods of error detection E IGCSE


(0478/0984)

Check digits
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)

Error detection methods


Parity
checks

Automatic
Parity block
Repeat
checks
Query (ARQ)

Error detection
methods

Check digits Checksums

Echo checks
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)

Check digits
A check digit is the last digit included in a code or other identification
number. It is calculated from all the other digits in the code.
Check digits are commonly used with:
• Barcodes
• ISBN numbers
• Vehicle Identification Numbers (VIN)
Check digit
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)

Check digits
Check digits are used to identify errors that can occur during data entry, typically caused by:
• Mistyping
• Scanning error – e.g., a barcode

This approach tends to be good at spotting the following types of errors.

Incorrect digits Transposition Phonetic Omitted or


entered errors errors extra digits
• e.g., 4093 • Two numbers • e.g., 30 (thirty) • e.g., 409 instead
instead of 4193. change position instead of 13 of 4093; or
– e.g., 4093 (thirteen). • 40931 instead
instead of 4903. of 4093.
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)

Calculating a check digit


There are many check digit calculation methods. One such method, Modulus 11, is used by the ISBN-10 system for books.
Let’s calculate the check digit for the product code 817525765.

Product code 8 1 7 5 2 5 7 6 5
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)

Calculating a check digit


There are many check digit calculation methods. One such method, Modulus 11, is used by the ISBN-10 system for books.
Let’s calculate the check digit for the product code 817525765.

STEP 1: Starting from the left, each digit is given a weighting.


In this example, the weightings start at 10, as the final number (including the check digit) will be 10 digits long.

Product code 8 1 7 5 2 5 7 6 5
Weighting 10 9 8 7 6 5 4 3 2
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)

Calculating a check digit


There are many check digit calculation methods. One such method, Modulus 11, is used by the ISBN-10 system for books.
Let’s calculate the check digit for the product code 817525765.

STEP 2: Each digit is multiplied by its weighting.

Product code 8 1 7 5 2 5 7 6 5
Weighting 10 9 8 7 6 5 4 3 2
Multiply 80 9 56 35 12 25 28 18 10
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)

Calculating a check digit


There are many check digit calculation methods. One such method, Modulus 11, is used by the ISBN-10 system for books.
Let’s calculate the check digit for the product code 817525765.

STEP 3: All the results are added together, giving us 273.

Product code 8 1 7 5 2 5 7 6 5
Weighting 10 9 8 7 6 5 4 3 2
Multiply 80 9 56 35 12 25 28 18 10
80 9 56 35 12 25 28 18 10
Addition 273
Add all the numbers together
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)

Calculating a check digit


There are many check digit calculation methods. One such method, Modulus 11, is used by the ISBN-10 system for books.
Let’s calculate the check digit for the product code 817525765.

STEP 4: The total is divided by 11, leaving us with an answer of 24 – and a remainder of 9.

Product code 8 1 7 5 2 5 7 6 5
Weighting 10 9 8 7 6 5 4 3 2
Multiply 80 9 56 35 12 25 28 18 10
80 9 56 35 12 25 28 18 10
Addition 273
Add all the numbers together
Remainder Remainder when the sum is divided by 11 e.g., 273 DIV 11 = 24 remainder 9 9
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)

Calculating a check digit


There are many check digit calculation methods. One such method, Modulus 11, is used by the ISBN-10 system for books.
Let’s calculate the check digit for the product code 817525765.

STEP 5: The remainder is then subtracted from 11 to give us the check digit, 2
Note that if the result of subtracting the remainder from 11 is 10, then the check digit is X.
So, the complete number with the check digit is: 8 1 7 5 2 5 7 6 5 2

Product code 8 1 7 5 2 5 7 6 5
Weighting 10 9 8 7 6 5 4 3 2
Multiply 80 9 56 35 12 25 28 18 10
80 9 56 35 12 25 28 18 10
Addition 273
Add all the numbers together
Remainder Remainder when the sum is divided by 11 e.g., 273 DIV 11 = 24 remainder 9 9
Subtraction Subtract the remainder from 11 e.g., 11 – 9 = 2 2
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)

Checking a check digit


The complete number with the check digit is: 8 1 7 5 2 5 7 6 5 2

STEP 1: Starting from the left, each digit is given a weighting – including the check digit, which can now be assigned a
weighting of 1.

Product code 8 1 7 5 2 5 7 6 5 2
Weighting 10 9 8 7 6 5 4 3 2 1
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)

Checking a check digit


The complete number with the check digit is: 8 1 7 5 2 5 7 6 5 2

STEP 2: Each digit is multiplied by its weighting.

Product code 8 1 7 5 2 5 7 6 5 2
Weighting 10 9 8 7 6 5 4 3 2 1
Multiply 80 9 56 35 12 25 28 18 10 2

Addition

Remainder
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)

Checking a check digit


The complete number with the check digit is: 8 1 7 5 2 5 7 6 5 2

STEP 3: All the results are added together, giving us 275.

Product code 8 1 7 5 2 5 7 6 5 2
Weighting 10 9 8 7 6 5 4 3 2 1
Multiply 80 9 56 35 12 25 28 18 10 2
80 9 56 35 12 25 28 18 10 2
Addition 275
Add all the numbers together
Remainder
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)

Checking a check digit


The complete number with the check digit is: 8 1 7 5 2 5 7 6 5 2

STEP 3: The total is divided by 11. If the remainder is 0, the number is valid.

Product code 8 1 7 5 2 5 7 6 5 2
Weighting 10 9 8 7 6 5 4 3 2 1
Multiply 80 9 56 35 12 25 28 18 10 2
80 9 56 35 12 25 28 18 10 2
Addition 275
Add all the numbers together
Remainder Remainder when the sum is divided by 11 e.g., 275 DIV 11 = 25 remainder 0 0
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)

Check digits

A check digit is the last digit included in a code or other identification number.
• Calculated from all the other digits in the code.
• Commonly used with barcodes, ISBN numbers and Vehicle Identification Numbers (VIN).

Calculating a check digit:


• Starting from the left, give each digit a weighting.
• Multiply each digit by its weighting.
• Add the results together.
• Divide the total by 11.
• Subtract the remainder from 11 – the result is the check digit.

Checking a check digit:


• Starting from the left, give each digit a weighting – including the check digit.
• Multiply each digit by its weighting.
• Add the results together.
• Divide the total by 11.
• If the remainder is 0, the number is valid.

You might also like