5 ms·
Well while we're at it, what's the fetish with 10? We should use powers of 2 for everything :)
by zeteo 16y ago
Well while we're at it, what's the fetish with 10? We should use powers of 2 for everything :)
- meese_ 16y agoPowers of ten are easy to manage in base 10?
- zeteo 16y agoYeah, but once you move everything to base 2, you won't have to deal with those pesky powers of 10 anymore ;)
- InclinedPlane 16y agoBase 2? Nonono, everything is always base 10. (If you don't get it, think about it longer.)
- deleted 16y ago[deleted]
- eru 16y agoNot in gray code.
- ELV1S 16y agoWe should also use base-8 number system! http://infoverse.org/octomatics/octomatics.htm http://infoverse.org/octomatics/octomatics.htm
- BrandonM 16y agoI would prefer base-12; it has a lot of benefits. See http://en.wikipedia.org/wiki/Duodecimal http://en.wikipedia.org/wiki/Duodecimal, especially http://en.wikipedia.org/wiki/Duodecimal#Comparison_to_other_numeral_systems http://en.wikipedia.org/wiki/Duodecimal#Comparison_to_other_... Instead of changing our clocks, we could just change our numbering system. Having 50 (that's 5 x 12) seconds per minute, 50 minutes per hour, and 20 hours per day seems perfectly reasonable.
- baddox 16y agoChoosing a radix is a balance between the number of prime factors (and brevity) and the number of symbols to keep track of. I think twelve strikes a good balance as well.
- zeteo 16y agoBut 12 only gains you one more factor that's not a power of 2, and is 30 times more difficult to implement (operation tables have 144 cells for base 12, compared to 4 cells for base 2).
- ars 16y agoIn that case 3 is your number. (Because it's the closest number to e, 2.71) There is a currency based on it (with the provably least number of coins necessary to make any kind of change), ternary logic, balanced ternary is especially cool, etc.
- pavel_lishin 16y agoWhy is being close to e a good thing?
- eru 16y agoActually, the best number depends. Basically, you want to have as few operations as possible, but you also want them easy. Having base b for number n, you need log_b n digits where each digit is an element of (0..b-1). So working on those representations takes something like f(log_b n, b) operations. Where the function f depends on the operation you are looking at. A good base should keep f small in relation to all n. One very natural choice for f, I can't remember which at the moment, leads to e being the best base in theory---so 3 being good in practice. If you are working with something like trees on disk (yes, data structures are very intimately related to numbering systems---read Okasaki's Purely Functional Data Structures for more information) a very big b, i.e. branching factor in this case, like 1024 is useful: Loading a new digit/node from disk into memory takes a long time, but once it's in memory, your operations will be fast.
- anigbrowl 16y agoMost of us have 10 fingers, which makes counting easy (although you can count to 12/20/24/40 on your fingers too, I admit).
- Groxx 16y agoWhy stop there? Lets have base 1024, you can count to that on your fingers too! http://en.wikipedia.org/wiki/Finger_binary http://en.wikipedia.org/wiki/Finger_binary
- anigbrowl 16y agoNo, you can represent it with your fingers but not count it. By 'count' I mean an ordinal traversal of the sort you teach kids.
- eru 16y agoUse gray code.
- anigbrowl 16y agoGood luck teaching that to a 4 year old, or someone who's barely numerate. Higher bases are better for learning counting because the person can count a variety of small quantities without needing to understand the concept of a number base. It's not that I don't approve of binary counting by hand, but it's hardly useful for beginners or primitive societies.
- eru 16y agoOh, for that application, my suggestion of gray code is even worse then binary. Though actually, you are not really arguing for a large base, but for unary. (Or a mixed unary-large base system.)
- Natsu 16y agoBecause it makes it so that the number four has another meaning that, for whatever reason, people can't get past. I've tried to explain it to people before, but we never manage to count past four without someone laughing.