
Check Digit
निर्देशनहरू
Find out how people actually mistype
Find out how people actually mistype
Design the check around the real error, not an imagined one.
- Read a list of twenty 16-digit numbers aloud while a partner writes them down.
- Compare against the originals and classify every mistake.
- Tally: single wrong digits, swapped neighbours, everything else.
Materials for this step:
Graph Paper1 pad
Graphite Pencil Set1 सेटCompute a Luhn check digit
Compute a Luhn check digit
Four steps, all mental arithmetic.
- Starting from the RIGHT of the number, double every second digit.
- If a doubled result exceeds 9, add its two digits together.
- Sum everything.
- The check digit is whatever makes that total a multiple of 10.
Materials for this step:
Cardstock Assorted Pack (50 Sheets)1 प्याकAttack it with the two errors it targets
Attack it with the two errors it targets
Test the claim rather than accepting it.
- Take your valid number and change ONE digit. Re-check. It fails.
- Repeat for every position, one digit at a time.
- Now SWAP two adjacent digits and re-check.
- Try the swap 0 and 9 specifically.
Compare the three error strategies
Compare the three error strategies
Put the family side by side and price each one.
- Tabulate overhead: parity 1 bit per block, Hamming several bits per block, Luhn one digit per number.
- Tabulate capability: parity detects one error, Hamming corrects one, Luhn detects the human ones.
- Ask of each: what happens when the check fails?
History and context
History and context
Hans Peter Luhn, a researcher at IBM, filed the patent in 1954; US 2,950,048 was granted in 1960 and placed in the public domain, which is a large part of why it became universal. Luhn is an interesting figure — he also did foundational work in information retrieval, and the KWIC index is his.
Where you meet it daily: every payment card number ends in a Luhn check digit, which is why a mistyped card is rejected instantly by the web page rather than after a round trip to the bank. IMEI numbers on phones use it. National identification numbers in several countries use it.
Its relatives are chosen for their own error profiles. The ISBN-10 used weights 1 to 10 and a modulo-11 check, which catches ALL adjacent transpositions including 0-9 — at the cost of sometimes needing the check character X, which is exactly why ISBNs occasionally end in an X. ISBN-13 moved to a modulo-10 scheme to align with the barcode system, deliberately giving up that completeness for compatibility. Each design is a specific answer to "which mistakes must never get through, and what may we pay for that?"
What to take from it: before choosing an error-handling approach, characterise the errors. The catalogue holds several — parity, Hamming, check digits, and the retransmission request that needs no code at all — and the right one follows entirely from who or what is making the mistakes and whether anyone can be asked to try again.
सामग्री
3- 1 padप्लेसहोल्डर
- 1 सेटप्लेसहोल्डर
- प्लेसहोल्डर
सम्बन्धित ब्लुप्रिन्ट
यी ब्लुप्रिन्टहरूले ज्ञान साझा गर्छन् — प्रविधि, सामग्री वा सिद्धान्त
CC0 सार्वजनिक डोमेन
यो ब्लुप्रिन्ट CC0 अन्तर्गत जारी गरिएको छ। तपाईं अनुमति नसोधी प्रतिलिपि, परिमार्जन, वितरण र प्रयोग गर्न सक्नुहुन्छ।
ब्लुप्रिन्ट मार्फत उत्पादनहरू किनेर सिर्जनाकर्तालाई सहयोग गर्नुहोस् सिर्जनाकर्ता कमिसन विक्रेताले तोकेको, वा यो ब्लुप्रिन्टको नयाँ संस्करण बनाउनुहोस् र आम्दानी बाँड्न आफ्नो ब्लुप्रिन्टमा जडानको रूपमा समावेश गर्नुहोस्।

