Algorithmic complexity - Algorithmic complexity An...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Algorithmic complexity An algorithm is supposed to do two things: 1. Compute the correct answer given valid input data. 2. Perform the computation in a reasonable time. The second point is of course essential. A correct algorithm is useless if it is too slow . In such cases, we must find another algorithm, or maybe we will have to accept some approximation which allows us to use another algorithm, which runs in reasonable time, but only generates an approximately correct result (whatever that means). Computer science is the science that deals with the issues of proving that an algorithm is correct, and what its properties are, such as how long time it can be expected to need in the average case, or how much time it will use in the worst case. These analyses are done without reference to any specific computer or programming language; the issue is how many calculation steps (such as additions and multiplications, or exhanges of items in an array) are needed to obtain the result, and how this depends on the size of the problem. One of the most important properties of an algorithm is how its execution time
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/22/2011 for the course CHEMISTRY CHM1025 taught by Professor Laurachoudry during the Fall '10 term at Broward College.

Page1 / 2

Algorithmic complexity - Algorithmic complexity An...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online