Files
javascript-algorithms/src/algorithms
Oleksii Trekhleb 6f9600aaa7 Add BFS.
2018-04-11 15:57:41 +03:00
..
2018-04-11 15:57:41 +03:00
2018-04-02 12:27:20 +03:00
2018-04-04 08:08:09 +03:00

Algorithms

Dynamic Programming (DP)

Useful Links

Big O Notation

Order of growth of algorithms specified in Big O notation.

Big O graphs

Source: Big O Cheat Sheet.

Below is the list of some of the most used Big O notations and their performance comparisons against different sizes of the input data.

Big O Notation Computations for 10 elements Computations for 100 elements Computations for 1000 elements
O(1) 1 1 1
O(log N) 3 6 9
O(N) 10 100 1000
O(N log N) 30 60 9000
O(N^2) 100 10000 1000000
O(2^N) 1024 1.26e+29 1.07e+301
O(N!) 3628800 9.3e+157 4.02e+2567