Sum of triangular numbers complexity
1/2n(n-1)
Therefore quadratic
First fit
Pack each box in turn into first available bin into which it will fit
- complexity = quadratic.
First fit decreasing
Full bin
quick sort
Pivot number compared to every number, slide all numbers less than it to the left of it, in the same order they were
- quadratic complexity in worst case
Algorithms are
Heuristic algorithm definition
Bubble sort shuttle sort complexity
Quadratic
Put values less than or equal to the pivot
to the left of the pivot