What are the components of an algorithm?
What is complexity ?
Perform a quick sort algorithm to sort it into ascending order. Write number of passes and comparisons aswell
values less than or equal to go to the left of pivot
Write pass1, pass2 ect…
what is
* first fit
* first fit decreasing
* full bin
what does heuristic mean?
how can the efficency of different packing methods be tested?
counting the number of comparisions needed in worst case
what is the complexit of the first fit and first fit decreasing algorithm , in the worst case?
o (n sqaured)
what is the complexity of the quick sort algorithm , in the worst case?
O (n squared)
What is big O notation?
Use quick sort to sort the following numbers in descending order
how would you determine algorithmic complexity?
use the worst case scenario