Question 1
2.1 1.7 3.0 1.9 3.2 1.2 3.3 1.4 1.5 0.2
Use the first-fit bin packing algorithm to determine how the numbers listed above can be packed into bins of size 5
(2)
The list of numbers is now to be sorted into descending order.
Perform a quick sort on the original list to obtain the sorted list. You should show the result of each pass and identify your pivots clearly.
(4)
For a list of n numbers, the quick sort algorithm has, on average, order n log n.
Given that it takes 2.32 seconds to run the algorithm when n = 450
calculate approximately how long it will take, to the nearest tenth of a second, to run the algorithm when n = 11 250. You should make your method and working clear.
(2)