I've noticed recently that there are a great many algorithms out there based in part or in whole on clever uses of numbers in creative bases. For example:
My question is: what other algorithms are out there that use a clever number system as a key step of their intuition or proof?. I'm thinking about putting together a talk on the subject, so the more examples I have to draw from, the better.
Base 3, on the other hand, does have a genuine mathematical distinction in its favor. By one plausible measure, it is the most efficient of all integer bases; it offers the most economical way of representing numbers.
We use base 10 because we have 10 fingers. In base 10, ten digits are used and those digits are 0 through 9. The Mayans used a vigesimal (base 20) number system, the Babylonians used a sexagesimal (base 60) number system, and the Egyptians used a duo-decimal (base 12) number system.
The most common number system used today is the Decimal Number System in which the base is 10 (because dec means 10). This means that, in our decimal system, we use a total of 10 digits to represent any number in that system.
Chris Okasaki has a very good chapter in his book Purely Functional Data Structures that discusses "Numerical Representations": essentially, take some representation of a number and convert it into a data structure. To give a flavor, here are the sections of that chapter:
Some of the best tricks, distilled:
Here is also the reference list for that chapter:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With