FAILURE MAP
← Case archive

FA-94577 / Exam timetabling constraints / Member archive

Mixed-duration penalty counts every duration · case 02

A room with two durations costs two instead of one.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Assignments [exam, room, period] and exam durations. For each room and period, the penalty is the number of distinct durations minus one. Return [total penalty, [room, period, distinct durations] for penalised room-periods in order].

Why this case matters

Mixed durations in one room disrupt invigilation; the penalty is defined over distinct durations.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: penalty per room 1[5, [["R1", 1, 2], ["R2", 0, 3]]][3, [["R1", 1, 2], ["R2", 0, 3]]]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗