Damm algorithm: Difference between revisions

Content deleted Content added
Weaknesses: reworded, corrected
Strengths: Prepending leading zeros does not affect the check digit (a weakness for variable-length codes)
Line 7:
The Damm algorithm does not suffer from exceeding the number of 10 possible values, resulting in the need for using a non-digit character (as the [[X]] in the [[ISBN#ISBN-10 check digit calculation|10-digit ISBN]] [[Check digit#ISBN_10|check digit]] scheme).
 
Prepending leading zeros does not affect the check digit (a weakness for variable-length codes).<ref name="fenwick2014" />
 
There are totally anti-symmetric quasigroups that detect all phonetic errors associated with the English language (13 ↔ 30, 14 ↔ 40, ..., 19 ↔ 90). The table used in the illustrating example is based on an instance of such kind.
Line 13:
===Weaknesses===
 
For all checksum algorithms including the Damm algorithm, prepending leading zeroes does not affect the check digit,<ref name="fenwick2014" /> so 1, 01, 001, etc. produce the same check digit. Consequently variable -length codes should not be verified together.
 
== Design ==