FA-94755 / Exam timetabling constraints / Member archive
Fair-share target truncated instead of rounded · case 05
Staff with fractional shares are assigned targets one lower.
Case contract
staff [name, FTE percent, duties assigned] and total duties. Each target is total * FTE / sum of FTE rounded half up. Deviation = assigned - target; flag staff whose absolute deviation exceeds one. Return [[name, target, deviation], flagged names].
Why this case matters
Invigilation duties are distributed pro rata to contracted hours; fairness reports drive reallocation.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: target rounding 1 | [[["st0", 4, 0], ["st1", 8, -1], ["st2", 1, 3], ["st3", 5, 2], ["st4", 4, -4]], ["st2", "st3", "st4"]] | [[["st0", 4, 0], ["st1", 9, -2], ["st2", 2, 2], ["st3", 5, 2], ["st4", 4, -4]], ["st1", "st2", "st3", "st4"]] | 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 ↗