Quoto

Learn / Library / Brainteasers

Single machine job order

BrainteasersMedium

One machine must process jobs with durations , , and hours. It starts at time , runs without gaps and handles one job at a time. Choose the order that minimizes the sum of the completion times of the jobs. What is that minimum sum, in hours?

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Early finishes count for every job waiting behind, so think about which job should go first.

Solution
  1. Running the shortest jobs first minimizes the total waiting, because each job's duration is counted in the completion times of all later jobs.
  2. The best order is therefore durations .
  3. The completion times are .
  4. Their sum is .
  5. The answer is .

Answer: