Skip to main content

Week 8 Tutorial: Trace the pad queue

Schedule a two-drone, one-pad case by hand, run the five-drone, two-pad case, and locate where shared charging changes the answer.

14 April 2027

You are hereW8 · Charging pads · queue

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

Two-hour tutorial: preparation, coding and checks

This week’s task

Model: The main case has ten orders, five drones and two pads. A separate #01–#04 case has A/B and one pad. Corridor reservations are not active.

Before you start · 15 minutes

Read W8. Work the symbolic request-at-5 example and explain when the earliest pad becomes free.

Trace the example · 25 minutes

Compare one pad with two in the main case. This changes resource capacity: inspect the queue rather than presenting it as an algorithm-only improvement.

Implement and compare · 55 minutes

Select the two-drone case in the controls and compute its queue by hand. Return to the main case, save a baseline and use myMigrations with the provided shared evaluator. Inspect the next task after a charge.

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

Record request, charge start, charge end and the next departure. Add a capacity test and name the event that causes a delay to another drone.

What to keep: A2: shared-resource evaluation and the first checked fleet plan. Show the tutor your prediction, experiment and explanation for this week’s participation point; keep the record to develop your assignment.

Optional extension

Keep capacity fixed and move a different order. A migration may leave some times unchanged; report the actual outcome.

W8 · Charging is a shared queue.

Week 8 · This week’s decision

Which other drone is delayed when you move an order?

The same five drones share charging pads. Reduce two pads to one and inspect the queue it creates.

Checks passed

8/10 on time. Every order delivered and every drone returned with all checks passing.

On time8/10
Total lateness (s)761
All returned (s)8579

Computed from this case · 13.42 ms · lab-1.0 · ten-orders

Starting case is ready.

2 charging pads · one shared queue

Charging pads and ground queues; seconds after 18:00Pad 1Pad 2A #01 [589, 1258)A #01B #02 [1071, 1780)B #02A #03 [1483, 1642)B #05 [2067, 2342)A #04 [2269, 3239)A #04A #06 [3634, 4180)A #06A #07 [4772, 5789)A #07589 s5789 s
Drone / orderRequests padStarts chargeWait
A #015895890 s
B #02107110710 s
A #03148314830 s
B #05206720670 s
A #04226922690 s
A #06363436340 s
A #07477247720 s

Orange intervals are ground queues. A later charging start can delay the drone’s next order.

Explore the evidence, replay or open full Lab

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

The fleet and orders stay fixed; pad capacity changes. This is a model comparison, so inspect the queue before judging the totals.

Slop Hill · terrain & routes
0102030405060708091011121314151617181920Kitchen010203040506080920SLOP HILL · 165 mNorth blockTOWER PASSAGESouth blockKitchen lowlandsNorth way roundSouth way roundElevation · low → hilltopN ↑ · metres east / north400 m

Colour bands show ground elevation. The marked passage runs between two towers; its rule allows one drone at a time. Height shown at 3× scale.

Read the example above

The fleet and orders stay fixed; pad capacity changes. This is a model comparison, so inspect the queue before judging the totals.

Mixed fleet; complete trips · Shared charging, FCFS · Corridor reservations not active

Assignment and complete tasks
InspectOrderDroneLoad startDeliverReturnLate (s)Energy (J)
#01A82358529052958
#02B5768461011056083
#03A125813931423012529
#04A164219782209076764
#05B178019462007021712
#08B287931743364063728
#06A323934593574043225
#07A41804511471240580443
#09A57896038618235647704
#20D7758822185790194341
0 s

Play the recorded flight, or drag the time slider.

Time and shared resources

Now 0 s

The vertical line marks the current time; outlined intervals are active. Select an interval to jump to its start. Intervals include their start and exclude their end.

A
B
D
pads

0 s 8639 s

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