![]() |
subject > problem > defect > defect in an ordinary algorithm > use of an inappropriate standard algorithm |
![]() ![]() | ||
use of an inappropriate standard algorithm comparison table |
Subject | have testing strategy | have example |
---|---|---|
use of a non-stable sort | deliberately run an experiment to see if the results are as expected | the absence of code to handle an exception |
use of a search or sort that is case sensitive when it should not be | test algorithms with mixed-case data to see if the algorithm behaves as expected | the absence of code to handle an exception |
use of a search or sort that is not case sensitive when it should be | test algorithms with mixed-case data to see if the algorithm behaves as expected | the absence of code to handle an exception |
use of an inefficient search algorithm |
| the absence of code to handle an exception |
use of an inefficient sort algorithm | using a 'bubble sort' instead of a more efficient approach to sorting |
Next defect in an ordinary algorithm: incorrect logical conditions Up: defect in an ordinary algorithm Previous defect in an ordinary algorithm: performing a calculation in the wrong part of a control construct