flâneur — a map of the web's best reading

E.W. Dijkstra Archive: Why numbering should start at zero (EWD 831)

cs.utexas.edu · 701 words · saved by 1 readers

To denote the subsequence of natural numbers 2, 3, ..., 12 without the pernicious three dots, four conventions are open to us

E.W. Dijkstra Archive: Why numbering should start at zero (EWD 831) EWD831 Why numbering should start at zero To denote the subsequence of natural numbers 2, 3, ..., 12 without the pernicious three dots, four conventions are open to us a) 2 &#8804; i < 13 b) 1 < i &#8804; 12 c) 2 &#8804; i &#8804; 12 d) 1 < i < 13 Are there reasons to prefer one convention to the other? Yes, there are. The observation that conventions a) and b) have the advantage that the difference between the bounds as mentioned equals the length of the subsequence is valid. So is the observation that, as a consequence, in e

Explore this link on the map →

saved by

related reading