~ Office Supplies ~~ Buy Posters ~~ A-Z Products ~~ Website Advertising


Worst-case performance - Wikipedia

<<Up     Contents

Worst-case performance

The term worst-case performance is used to describe the way an algorithm behaves under conditions that cause its performance to be as poor as possible. For example, a simple linear search has an average running time of O(n/2) (see Big O notation), but a worst case performance O(n), when the item to be found is the last item in the table.

For many algorithms, it is important to analyze worst-case performance as well as average performance. A classic example is Quicksort, which is, in the average case, a very fast algorithm. But if not implemented with great care, its worst-case performance can degrade to O(n2), ironically when the target table is already sorted.

Worst-case performance analysis is often easier to do than "average case" performance. For many programs, determining what "average input" is, is in itself difficult, and often that "average input" has characterics which make it difficult to characterise mathematically (consider, for instance, algorithms that are designed to operate on strings of text). Similarly, even when a sensible description of a particular "average case" (which will probably only be applicable for some uses of the algorithm) is possible, they tend to result in more difficult to analyse equations.

See: sort algorithm - an area where there is a great deal of performance analysis of various algorithms.

wikipedia.org dumped 2003-03-17 with terodump




 
 
7 grams reddish pink maroon UNAKITE cabbing tumbled polished rough jewelry gemstones 38 carat Lovely
 7 grams reddish pink maroon UNAKITE cabbing tumbled polished jewelry 38 carat Lovely 
 
6 carat Golden canary yellow SCAPOLITE gem stone Facet rough gemstone Faceting gems jewel crystal 3
 6 carat Golden canary yellow SCAPOLITE ing jewel crystal 3 
 
Light green butter new jade Serpentine gem stone polished faceted Briolette stringing bead single
 Light green butter new jade Serpentine polished ed Briolette stringing bead single 
 
7 carat RARE yellow orange CLINOHUMITE gem stone crystal cabbing lapidary cabochon rough 1 gram B
 7 carat RARE yellow orange CLINOHUMITE crystal cabbing lapidary cabochon 1 gram B 
 
24 carat blue green Amazonite rough gemstone tumble polished nugget drilled necklace bead Nice 4 gr
 24 carat blue green Amazonite tumble polished nugget drilled necklace bead Nice 4 gr