Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

The Verhoeff-Gumm Check Digit Algorithm

Автор: Concepts Illuminated

Загружено: 2023-08-05

Просмотров: 197278

Описание:

Rediscover and explore the Verhoeff-Gumm algorithm, a check digit formula which is more resilient to common errors than the Luhn algorithm, which is widely used in credit card numbers, IMEI numbers and more.

Historical Notes:
"Error Detecting Decimal Codes" [1], a PhD thesis by J Verhoeff was published in 1969. It showed how the vast majority of digit typos were single digit or transposition errors, traditional "modulo 10" algorithms always missed some transposition errors, and introduced a novel class of algorithms based on "the dihedral group of order 10" (pentagon flips and rotations). In section 4.4, Verhoeff outlines using "search program" to find a permutation function that is optimal for detecting errors. A formal proof of the permutation's correctness is omitted. I found Verhoeff's writing to be difficult to approach, so I recommend a section in "Contemporary Abstract Algebra" (seventh edition) by Joseph A Gallian (pg 111-114) for a clearer write-up. A witty quote from Verhoeff in the introduction made me chuckle: "[I believe] that the codes explained in chapter 4 provide the first practical application of the dihedral group. This would illustrate the old saying that all beautiful mathematics will find an application, sooner or later."

In 1985, H. Peter Gumm published "A new class of check-digit methods for arbitrary number systems" [2]. It starts with a dense proof that "modulo 10" (indeed modulo 2k) formulas will always be flawed. The paper then justifies the use of the dihedral group, which to me sounded like a mathematician walking around a store looking for the right outfit ("needs cancellation", "should be associative", "finite members", "can generalize for any even number"). Gumm then proves an algorithm using D_s works, using the number pair notation and a permutation function tau.

Gumm claims to have been unaware of Verhoeff's work. Additionally, Gumm adds a proof and a way to scale it beyond 10 digits, so I decided to credit them both with discovering the algorithm in this video.

A variant of the algorithm saw use (an may still see use) on German Banknotes [4].

Felix Klein (same as the Klein bottle) was an important contributor to group theory [3], and was chosen to be the cardholder in the intro. Likewise, Évariste Galois coined the term "group" and was thus chosen to be the online vendor.

[1] https://ir.cwi.nl/pub/13046/13046D.pdf
[2] https://www.researchgate.net/publicat...
[3] https://archive.org/details/vergleich...
[4] http://ocs.ef.jcu.cz/index.php/inprof...

Expanding the Mathematical Toolbox:
A key concept in Group Theory is the idea of sets, which is covered very well in [4]. Groups are introduced well in [5] and I hope the author continues the series.
The Rubix cube can be analyzed using group theory [6] or with "graphs" [7], which are both useful when dealing with so many possible states.

[4]    • What IS a Number? As Explained by a Mathem...   "What IS a Number? As Explained by a Mathematician" by Another Roof
[5]    • What is Group Theory? — Group Theory Ep. 1   "Researchers Use Group Theory to Speed Up Algorithms — Introduction to Groups" by Nemean
[6]    • Group theory 101: How to play a Rubik’s Cu...   "Group theory 101: How to play a Rubik’s Cube like a piano - Michael Staff" by TED-Ed
[7]    • The trick that solves Rubik’s Cubes and br...   "The algorithmic trick that solves Rubik’s Cubes and breaks ciphers" by polylog

Animations were made by Kaylee L with Manim Community edition (https://www.manim.community/) taking about 7k lines of Python code to make. Narration by James K.

Sound effects from YouTube Audio Library
Battle Crowd Celebrate Stutter
Punchline Drum

This was an entry into Summer of Math Exposition 3 #SoME3
https://some.3b1b.co/

0:00 Luhn Algorithm (and its flaw)
1:39 How could we fix the flaw?
2:21 Basic Integer Operations (how they don't help)
3:12 Rotating and Flipping Shapes is order dependent
4:16 Combining Pentagons (function composition)
5:30 "Packing the box" with pentagons (associativity/inverses)
6:56 Do our pentagons work for all transpositions? (Cayley Table)
8:29 Adding a preprocessing step (sigma function)
9:30 How to prove if sigma works (converting to integer pairs)
11:56 Proving Gumm's sigma function does work
13:12 Expanding sigma into digit permutation
13:38 Scaling up to 3 or more digits/pentagons
15:06 Summarizing the Verhoeff-Gumm Algorithm (and the variants)
16:00 Group theory is all about surprising symmetries

The Verhoeff-Gumm Check Digit Algorithm

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Rethinking the real line #SoME3

Rethinking the real line #SoME3

Can you guess a shape from its shadows?

Can you guess a shape from its shadows?

Would hexagonal city blocks be better?

Would hexagonal city blocks be better?

The Mosaic Problem - How and Why to do Math for Fun

The Mosaic Problem - How and Why to do Math for Fun

The Magic of Zero-Knowledge Proofs #SoME3

The Magic of Zero-Knowledge Proofs #SoME3

A problem so hard even Google relies on Random Chance

A problem so hard even Google relies on Random Chance

Почему Питер Шольце — математик, каких бывает раз в поколение?

Почему Питер Шольце — математик, каких бывает раз в поколение?

Фальшивые монеты и сбалансированная троичная система #SoME3

Фальшивые монеты и сбалансированная троичная система #SoME3

The Strange Math That Predicts (Almost) Anything

The Strange Math That Predicts (Almost) Anything

Точная формула для простых чисел: формула Вилланса

Точная формула для простых чисел: формула Вилланса

Как ИИ открыл более быстрый алгоритм умножения матриц

Как ИИ открыл более быстрый алгоритм умножения матриц

Every Hypercomplex Number Explained #SoME4

Every Hypercomplex Number Explained #SoME4

Увлекательная математика, лежащая в основе поршневых расширителей #SoME3

Увлекательная математика, лежащая в основе поршневых расширителей #SoME3

Is The Sum Of All Positive Numbers Really -1/12?

Is The Sum Of All Positive Numbers Really -1/12?

Beyond Exponentiation: A Tetration Investigation

Beyond Exponentiation: A Tetration Investigation

The weirdest paradox in statistics (and machine learning)

The weirdest paradox in statistics (and machine learning)

Аппроксиманты Паде

Аппроксиманты Паде

Математика струнного искусства

Математика струнного искусства

Unsolved Math: The No-Three-In-Line Problem #SOME3

Unsolved Math: The No-Three-In-Line Problem #SOME3

How does a calculator find square roots?

How does a calculator find square roots?

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com