Re:The most common errors in undergraduate mathematics
by PeterisP on Friday August 15, 2014 @06:58AM
(#8181650)
What are the functional equivalents of off-by-one?
[ Parent
| on HN ]
Re:The most common errors in undergraduate mathematics
by nmrm2 on Friday August 15, 2014 @07:02AM
(#8181652)
Folding with the wrong initial value. Recursive functions where the base case is improperly defined. Stuff like that I consider 'functional off-by-one' because the student understand the general shape of the correct solution but gets a detail about iteration/recursion incorrect at the boundary.
edit: oh, also, I guess literally off-by-one errors are also possible in any language that allows any sort of side effect, but that's kind of a stupid degenerate case :-) (edit: possible, definitely not popular... wrong word there, sorry).