![]() |
subject > problem > defect > defect in an ordinary algorithm > off-by-one error |
![]() ![]() | ||||
off-by-one error | ||||
subject | fact |
off-by-one error | has definition A defect in which a program inappropriately adds or subtracts one, or inappropriately loops one too many times or one too few times | ![]() |
has testing strategy develop boundary tests in which you verify that the program computes the correct numerical answer, or performs the correct number of iterations | ![]() | |
is very common especially in graphical applications | ![]() | |
is a subtopic of 10.3 - Defects in Ordinary Algorithms | ![]() | |
is a kind of defect in an ordinary algorithm | ![]() | |
defect | has example the absence of code to handle an exception | ![]() |
problem | has solution which will normally entail developing software, although you may decide that it is better to purchase software or to develop a non-software solution | ![]() |
should be written as a simple problem statement in one or two sentences | ![]() |