mxplx

Why numbering should start at zero

Published by ideonexus

When dealing with a sequence of length N, the elements of which we wish to distinguish by subscript, the next vexing question is what subscript value to assign to its starting element. Adhering to convention a) yields, when starting with subscript 1, the subscript range 1 ≤ i < N 1; starting with 0, however, gives the nicer range 0 ≤ i < N. So let us let our ordinals start at zero: an element's ordinal (subscript) equals the number of elements preceding it in the sequence. And the moral of the story is that we had better regard —after all those centuries!— zero as a most natural number.

Edsger Dijkstra, Why numbering should start at zero (11 August 1982)

References

Schemas

Not in any schema.

Triples

Not related to other memes yet.

Watson’s reading

Tags generated by IBM Watson from the text. Percentages are its confidence.

Categories