Team partitioning
- Python
- Zig
- Evolutionary algorithms
- Airtable
An optimization engine that splits bootcamp cohorts into project teams, replacing hours of manual guesswork with a model of what actually makes student teams work.

Week-long projects are a break from the curriculum in a bootcamp, and they live or die by group dynamics. Teams used to be formed by hand: it took educators hours per cohort, sometimes a whole day, and it leaned on intuition about what makes a good team.
The idea
Watching cohorts, I noticed that most team friction came from the skill gap between the strongest and weakest member. Wide gaps led to the strongest student carrying the project and the weakest one disengaging, so neither learned much. The model therefore prioritises skill homogeneity inside each team, then shared availability, balance between teams, and softer signals like shared interests and location.
The engine
The problem is a multi-objective set partitioning problem. Crossover breaks partitions (students end up duplicated or missing), so the search is an asexual evolutionary strategy: candidates clone themselves and mutate through operators that swap, move, dissolve or create teams, so every candidate stays valid.
The Python prototype proved the model but took minutes per cohort. The Zig rewrite represents each team as a u64 bitmask and each student's weekly availability as a u32, turning set operations into a few bitwise instructions. It runs in milliseconds.
The full story, with the psychology, the maths and the rewrite, is in the write-up.