Detour : Big-O Notation
Understand how Big-O notation describes the worst-case running time of algorithms in bioinformatics. Explore why focusing on the fastest-growing term in runtime helps compare algorithm efficiency as data size increases.
We'll cover the following...
Running time of an algorithm
Computer scientists typically measure an algorithm’s efficiency in terms of its worstcase running time, which is the largest amount of time an algorithm can take for the most difficult input of a given size. The advantage to considering the worst-case running time is that we’re guaranteed that our algorithm will never behave worse than our worst-case estimate.
Big-O notation compactly describes the running time of an algorithm. For example, if your algorithm for sorting an array of n numbers takes roughly operations for the most difficult dataset, then we say that the running time of your algorithm is ). In reality, depending on your implementation, it may use any number of operations, such as , + ...