Add big O info.

This commit is contained in:
Oleksii Trekhleb 2018-03-30 08:44:30 +03:00
parent 8319355f1c
commit 74cd611225
3 changed files with 5 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

BIN
assets/big-O-graph.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

View File

@ -8,7 +8,11 @@
## Big O Notation ## Big O Notation
![Big O graphs](https://github.com/trekhleb/javascript-algorithms/blob/master/assets/big-O-graph.jpeg) Order of growth of algorithms specified in Big-O notation. Source: [Big-O Cheat Sheet](http://bigocheatsheet.com/).
![Big O graphs](https://github.com/trekhleb/javascript-algorithms/blob/master/assets/big-O-graph.png)
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 10 elements | | Big O Notation | Computations for 10 elements | Computations for 100 elements | Computations for 10 elements |
| -------------- | ---------------------------- | ----------------------------- | ----------------------------- | | -------------- | ---------------------------- | ----------------------------- | ----------------------------- |