Skip to main content

Week 9 Tutorial: Clear the corridor

Mark the conflict between two independent trajectories, complete the reservation query, and show the spatial-visited bug at the waiting point.

21 April 2027

You are hereW9 · Corridor · conflict

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

Two-hour tutorial: preparation, coding and checks

This week’s task

Model: A heading to #13 and B returning; corridor capacity one. The live intervals use seconds after A takes off; the P@3 exercise is separate.

Before you start · 15 minutes

Read W9 or its deck. Calculate the overlap of [87,112) and [107,132) before running.

Trace the example · 25 minutes

Let A wait for B and check that A enters at 112. Compare arrival and hover energy; then try the detour using the arrangement selector.

Implement and compare · 55 minutes

Complete the half-open interval query in myNeighbours. Switch to the symbolic waiting case and trace P@3→P@4→P@5→P@6→G@8. Show what a place-only visited key would discard.

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 [0,6) against [5,7) and against [6,8). Explain the waiting point, interval boundary and energy model.

What to keep: A2: conflict definition and reservation filtering. Show the tutor your prediction, experiment and explanation for this week’s participation point; keep the record to develop your assignment.

Optional extension

Propose another reservation window and predict how long A waits before using it in the local exercise.

W9 · The whole interval must fit.

Week 9 · This week’s decision

What disappears when the search remembers only the node?

Two recorded flight legs use one narrow passage. Let one drone wait so they do not occupy it together.

Diagnostic case

Conflict on [107, 112): both drones occupy the corridor.

A arrival (s)157
A hover (s)0
A energy (J)33736

Computed from this case · 1.53 ms · lab-1.0 · corridor

Starting case is ready.
Slop Hill · terrain & routes
0102030405060708091011121314151617181920KitchenHome 13SLOP 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.

Two towers · one shared passage

Whole corridor occupancy intervals; seconds after 18:00Drone ADrone B107–132 [107, 132)107–13287–112 [87, 112)87–11287 s132 s

Overlap [107, 112) · 5 s conflict

DronePass entryPass exit
A107 s132 s
B87 s112 s

The passage runs between two buildings on the slope. Its capacity-one rule applies to the whole crossing interval, not just the entry time.

Explore the evidence, replay or open full Lab

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

A waits 5 seconds. The corridor intervals then touch without overlapping; hovering adds energy.

Read the example above

A waits 5 seconds. The corridor intervals then touch without overlapping; hovering adds energy.

Two individual flight legs: loaded A outbound, unloaded B returning · Corridor capacity one; half-open intervals · This case checks the shared passage, not a complete delivery schedule

The whole occupancy interval
InspectDroneFromToStartEndEnergy (J)
AWest Passage GateEast Passage Gate1071325246
BEast Passage GateWest Passage Gate871122982
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.

corridor

0 s 219 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