by BoppreH · 13y ago · 0 comments
http://www.cs.utexas.edu/users/EWD/ewd08xx/EWD831.PDF
He enumerates the four possible ways one could use, and goes on the pros and cos of each.
I love things like this, i.e., demonstrations that these mathematical primitives are naturally elegant. It's often so hard to talk about, or even realize why, when given 2 or more viable choices, one is naturally better.
No kidding - my first two years in college consisted, for a large part, of watching elderly men with beards write on blackboards in exactly that handwriting.
I can't help wonder whether they all drove the same car as Dijkstra too.
There is a smallest natural number. Exclusion of the lower bound --as in b) and d)-- forces for a subsequence starting at the smallest natural number the lower bound as mentioned into the realm of unnatural numbers.
Would someone be able to parse that out for me?
A more practical example is that you are using unsigned integers, so the smallest number is 0. If you use an exclusive lower bound, you can't actually represent any range containing 0, because -1 is not a valid number you can store.