Skip to main content

Week 5 Tutorial: Order six dinners

Compute the first orders by hand, implement the recurrence, and compare FIFO with earliest-deadline on the course's objective.

24 March 2027

You are hereW5 · Six homes · deadlines

Open Week 5 in the Lab →Try your own change on this week's case.

Two-hour tutorial: preparation, coding and checks

This week’s task

Model: #01–#06, one L drone, full static trips and turnaround. No shared charging queue. Compare lateness, then final return, then energy.

Before you start · 15 minutes

Read W5 and compute both N/F sequences from the lecture. Name the objective before comparing them.

Trace the example · 25 minutes

Compare FIFO with earliest deadline. Both canonical runs have zero lateness; locate the difference in the final-return time.

Implement and compare · 55 minutes

Complete myTimetable using the supplied trip-cost function. Calculate the first three rows by hand, including ready time, loading, delivery, return and next availability.

Use Open full Lab for editable inputs, strategy code, exports and the practice pack. The example on this page compares this week’s published cases; your local student runner must call the functions you complete.

Check and explain · 25 minutes

Test readiness, turnaround and lateness measured at delivery. Submit the per-order table and two objective tuples with one sentence explaining the tie on lateness.

What to keep: A1: timetable recurrence and baseline comparison. Show the tutor your prediction, experiment and explanation for this week’s participation point; keep the record to develop your assignment.

Optional extension

Open the order board, move an order and predict the later departures before running. Leave swap search and enumeration for W6.

W5 · One sequence, six deliveries.

Week 5 · This week’s decision

How does moving one order change every departure after it?

One drone delivers six meals, one after another. Changing the order changes when it can start the next meal.

Checks passed

Sequence #01 → #02 → #03 → #04 → #05 → #06. Course objective (lateness, final return, energy): 0, 2558, 263271. This sequence is evaluated without an optimality claim.

Total lateness0
Final return2558
Swaps checked15

Computed from this case · 2.32 ms · lab-1.0 · canonical-six

Starting case is ready.

One drone · six complete trips

Next load = max(order ready, previous return + turnaround)
OrderReadyLoad startDepartDeliverReturnLateness
#0182821423585290
#0257658964985910240
#0393710841144121912490
#04126413091369164518760
#05168119361996210221630
#06219322232283244325580

Read down the rows: moving one meal changes when every following meal can leave.

Explore the evidence, replay or open full Lab

Open full Lab ↗ for editable inputs, strategy code and saved comparisons.

Both canonical plans have zero lateness. Compare the final-return time and explain the tie on lateness.

Read the example above

Both canonical plans have zero lateness. Compare the final-return time and explain the tie on lateness.

One drone; complete trips · No shared charging in this model · Corridor reservations not active

The recurrence, order by order
InspectOrderReadyLoad startDepartDeliverReturnLateness
#0182821423585290
#0257658964985910240
#0393710841144121912490
#04126413091369164518760
#05168119361996210221630
#06219322232283244325580

Continue in the Lab →The same case, with every input open to change.

The spec

What you bring to the session. Written so a reader can tell whether it has been met without asking you.

Teaching team