FA-94684 / Exam timetabling constraints / Member archive
Duplicate enrolment rows inflate conflict counts · case 04
A repeated row creates a self-conflict and double counts the student's pairs.
Case contract
enrol rows [student, exam] (may repeat). For every unordered pair of distinct exams (a < b) count the students enrolled in both. Return [a, b, count] rows sorted, omitting zero counts.
Why this case matters
The conflict matrix is the input to every exam timetabling algorithm; count errors silently change weights.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: distinct enrolments 1 | [["BIO130", "ECON150", 2], ["BIO130", "HIST140", 1], ["BIO130", "MATH101H", 1], ["ECON150", "ECON150", 1], ["ECON150", "HIST140", 3], ["ECON150", "MATH101H", 2], ["HIST140", "MATH101H", 1]] | [["BIO130", "ECON150", 1], ["BIO130", "HIST140", 1], ["BIO130", "MATH101H", 1], ["ECON150", "HIST140", 2], ["ECON150", "MATH101H", 1], ["HIST140", "MATH101H", 1]] | 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 ↗