A service engineer is given three machines to repair. Machine A requires 2 hours, Machine B requires 3 hours while Machine C requires 1 hour. He has been given strict instructions to minimise the "down time" summed over all the machines. The "down time" is defined to be the amount of time the machine remains unrepaired.
i) Using the brute force approach, find the best order of doing the repairs.
ii) If the number of machines to repair is generalised to N, state the time complexity of the brute force method.
iii) Propose a greedy method to solve the problem. State and justify whether the greedy method is reliable.
Tags: