Algorithm - (Performance|Running Time|Fast)

> Code - (Programming|Computer) Language > Algorithm

1 - About

The performance of an algorithm can be assessed through the number of basic operations that it performs as a function of the length of the input numbers.

running time = # of lines of code executed.

Advertising

3 - Debugger definition

Running the algorithm in a debugger, every time we press enter, we advance with one line of the program through the debugger. Basically, the running time is just a number of operations executed, the number of lines of code executed.

How many times you have to hit enter on the debugger before the, program finally terminates, function of the input N gives us a performance metrics.

4 - Fast

<MATH> \text{fast algorithm} \approx \href{case#worst}{\text{worst-­case running}} \text{ grows slowly with input size} </MATH> Usually want as close to linear (O(n)) as possible.