![]() |
subject > problem > defect > defect in an ordinary algorithm > off-by-one error |
![]() ![]() | |||||
off-by-one error comparison table |
Subject | have testing strategy | is a kind of | be | is a subtopic of | has definition |
---|---|---|---|---|---|
defect in an ordinary algorithm | defect | 10.4 - Defects in Numerical Algorithms | |||
off-by-one error | develop boundary tests in which you verify that the program computes the correct numerical answer, or performs the correct number of iterations | defect in an ordinary algorithm | very common especially in graphical applications | 10.3 - Defects in Ordinary Algorithms | A defect in which a program inappropriately adds or subtracts one, or inappropriately loops one too many times or one too few times |
Next defect in an ordinary algorithm: operator precedence error Up: defect in an ordinary algorithm Previous defect in an ordinary algorithm: not terminating a loop or recursion