NTU SC1003 · Constraint satisfaction

Team Allocation Simulator

Upload a cohort of students and this runs the allocator in your browser: it sorts each tutorial group by CGPA, interleaves the gender split into teams of five, then swaps students until team averages sit inside the group’s CGPA band and no team carries three from the same school.

Constraint 1 · Gender 3M2F or 2M3F Both genders present in every team; skewed splits only when the group forces them.
Constraint 2 · CGPA ±0.20 of group mean Measured against each tutorial group’s own mean, not the cohort mean.
Constraint 3 · School Max 2 per school Swap candidates must match gender and sit within ±0.50 CGPA.
Waiting for a cohort file

No allocation yet

Add a records.csv in step 1, set your thresholds, then press Run allocation. Results appear here.

  1. file_readerParse the CSV and bucket students by tutorial group
  2. team_formationMergeSort by CGPA, split by gender, interleave into teams
  3. gpaCheckerTrade same-gender students between over- and under-average teams
  4. finder_swapperSwap out surplus same-school students where a peer qualifies
  5. file_writerLabel every student with their team and hand back the CSV