(49G) Verhoeff Check Digit Programme
|
05-27-2015, 06:44 AM
(This post was last modified: 06-15-2017 01:42 PM by Gene.)
Post: #1
|
|||
|
|||
(49G) Verhoeff Check Digit Programme
For positive integer input the programme returns the original input and the check digit.
eg For input 19530818 the programme returns 19530818 1 For more info on Verhoeff check digit see http://en.wikipedia.org/wiki/Verhoeff_algorithm Code: :: |
|||
05-27-2015, 09:29 PM
Post: #2
|
|||
|
|||
RE: HP 49G: Verhoeff Check Digit Programme
Very cool! This algorithm is based on multiplication in the dihedral group D5 which is not commutative. This allows to detect all transposition errors involving two adjacent digits.
There was a project where I decided to use this as the checksum digit for a numeric user ID which forced some batch-programmers to implement it in COBOL. They were not amused. Cheers Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)