Re:Fix Boyer-Moore searcher with the Rytter correction
by a1369209993 on Friday April 17, 2020 @06:15PM
(#22903477)
> Because that's a natural mathematical model.
No it's not; it's a artifact of humans numbering items based on "total I have, including this one" rather than the more sensible but contrary to a implementation detail of human neuropsychology "number of items preceeding this one".
> "the n-th element" being at position n is handy and natural.
No it's not; it's a artifact of humans numbering items based on "total I have, including this one" rather than the more sensible but contrary to a implementation detail of human neuropsychology "number of items preceeding this one".
> "the n-th element" being at position n is handy and natural.
Yes, starting with the 0th element at position 0.