APP-Notes

Algorithm analyses

“Clearly specified set of simple instructions to be followed to solve a problem”

Datastructuren

Complexiteit

Factoren

Orde

De looptijd van deze for-lus is orde-n, of kort: O(n) (= Big Oh notatie)

Logaritmische functie

Opdrachten

5.6

O(N)

5.4

| x | Big Oh | |:———–|:——-| | x² | O(n²) | | x | O(n) | | x²+x | O(n²) | | x²-x | O(n²) | | (x^3/(x-1)) | O(n²) |

5.14

5.15

Roots

5.20

a

| Fragment | Big-Oh | | ——– | ——– | | 1 | O(n) | | 2 | O(n) | | 3 | O(n²) | | 4 | O(n) | | 5 | O(n^3) | | 6 | O(n²) | | 7 | O(n^5) | | 8 | O(log n) |