Object Oriented Software Engineering   View all facts   Glossary   Help
subject > problem > defect > defect in an ordinary algorithm > use of an inappropriate standard algorithm > use of an inefficient sort algorithm
Next use of an inappropriate standard algorithmuse of a non-stable sort    Upuse of an inappropriate standard algorithm    Previous use of an inappropriate standard algorithmuse of an inefficient search algorithm   

use of an inefficient sort algorithm comparison table
Subject have testing strategy is a kind of have example has definition
use of an inappropriate standard algorithmdesign tests that highlight the properties of inappropriate algorithms such as execution timedefect in an ordinary algorithmthe absence of code to handle an exceptionA common defect in which an unnecessarily inefficient or otherwise inappropriate algorithm is used
use of an inefficient sort algorithm
  • increase the number of items being sorted and observe how execution time is effected
  • a good algorithm should take slightly more than double the first time - a bad algorithm will increase with the square of the number of items
use of an inappropriate standard algorithmusing a 'bubble sort' instead of a more efficient approach to sorting 

Next use of an inappropriate standard algorithmuse of a non-stable sort    Upuse of an inappropriate standard algorithm    Previous use of an inappropriate standard algorithmuse of an inefficient search algorithm