Data set: Workshop renovation (Hard)
Workshop renovation
A renovation has eight tasks, A to H. The table gives each task's duration in days and the tasks that must be fully finished before it can start. A task, once started, is done by one worker without a break; a worker does one task at a time; any worker can do any task.
| Task | Duration (days) | Must follow |
|---|---|---|
| A | 3 | — |
| B | 4 | — |
| C | 2 | A |
| D | 5 | A, B |
| E | 3 | C |
| F | 4 | D, E |
| G | 2 | B |
| H | 5 | G |
What is the smallest number of workers with which the renovation can still be finished in the minimum possible time found with unlimited workers?
A2
B3
C4
D5
Show answer & solution
Correct answer: B. 3
Solution: With enough workers, every task starts as soon as its predecessors finish. Finish days: A 3, B 4, C 5, D 9 (after A and B), E 8, F 13 (after D at 9 and E at 8), G 6, H 11. So the project needs 13 days, along the chain B → D → F (4 + 5 + 4). Working backwards from day 13, the latest finishes are A 4, B 4, C 6, D 9, E 9, F 13, G 8, H 13, so the slacks are A 1, B 0, C 1, D 0, E 1, F 0, G 2, H 2. Two workers need at least 28/2 = 14 days, so 13 days needs at least 3. With three it works: start every task as early as possible — at most three tasks (C, D and G, during day 4 to 5) are ever in progress together, so 3 workers suffice.