Sub topic 6
Alternating and Cyclic Schedules
Assume you know how to express a worker's rate as work per day, add rates, and use fractions or the LCM method. In an alternating schedule, workers do not work together on every day. The schedule repeats a fixed pattern, so calculate the work completed in one complete cycle before counting cycles.
Two workers working on alternate days
Suppose A completes a job alone in 10 days and B completes it alone in 15 days. Choose total work as the LCM of 10 and 15:
- Total work = 30 units
- A's rate = 30 ÷ 10 = 3 units per day
- B's rate = 30 ÷ 15 = 2 units per day
If A works on odd-numbered days and B on even-numbered days, then one two-day cycle completes:
\[ 3 + 2 = 5 \text{ units} \]
Six cycles complete 30 units:
\[ 6 \times 5 = 30 \]
Each cycle takes two days, so the job takes:
\[ 6 \times 2 = 12 \text{ days} \]
The order matters when the job ends partway through a cycle. If A works first, A's rate must be applied to the first day of each cycle.
def alternate_days(total, rate_first, rate_second):
done = 0
day = 0
while done < total:
day += 1
if day % 2 == 1:
done += rate_first
else:
done += rate_second
return day
print(alternate_days(30, 3, 2)) # 12A systematic method
Use this process for alternating or cyclic work:
- Convert each worker's time into a daily rate.
- Write the schedule in order, such as A, B or A, B, C.
- Find the work completed in one full cycle.
- Complete as many full cycles as possible without exceeding the total work.
- Apply the remaining schedule one day at a time.
- Check whether the final day completes only part of the job.
For example, A, B, and C work in a repeating order at rates 4, 3, and 2 units per day. A complete cycle produces:
\[ 4 + 3 + 2 = 9 \text{ units} \]
For 25 units, two cycles produce 18 units in 6 days. The remaining 7 units require A's 4 units on day 7, B's 3 units on day 8. Therefore, the job takes 8 days.
Cycles with rest days
A schedule may include a non-working day. Treat that day as a rate of zero. If A works for two days and then rests for one day, with a rate of 6 units per working day, the three-day cycle produces:
\[ 6 + 6 + 0 = 12 \text{ units} \]
Do not divide the total work by 6 without accounting for the rest day. The average rate over calendar time is:
\[ 12 \div 3 = 4 \text{ units per day} \]
This average is useful for complete cycles, but the day-by-day schedule is still needed for the final incomplete cycle.
Exam checks
Confirm that the final answer follows the stated starting worker. Compare the result with the simultaneous-work answer: alternating workers should generally take longer than the same workers working together every day. Also check the final accumulated work. It must be at least the required work, while the accumulated work before the final day must be less than required.
Exercise
A completes a job in 12 days and B completes it in 18 days. They work on alternate days, with A working first. How many days do they need together?
Show answer
Take total work as 36 units. A works at 3 units per day and B at 2 units per day. A two-day cycle completes 5 units. Six cycles complete 30 units in 12 days, and A completes the remaining 3 units on day 13. The answer is 13 days.