Previous topic | Next topic | Ada Home Page | Index

Comparing Algorithms

Algorithms can be compared on several criteria:

We can use these criteria to compare searching algorithms and sorting algorithms.

Analysis of algorithms

To assess efficiency, we need to know how to analyse the computational complexity of the algorithm. The question to be answered is how many operations are required, for a given size of problem?

For searching and sorting:

Several situations need to be considered:

We are only interested in orders of magnitude, and the largest term.


Previous topic | Next topic | Ada Home Page | Index
c-lokan@adfa.oz.au / 21 Feb 96