Allocation algorithms
Allotiq
Three bookings. Two projectors.
System path
- Filter rooms
- Score rooms
- Assign bookings
My contribution. I built the deterministic allocation engine and worked on its server adapter and AI integration.
My teammates built the interface and handled the database and platform work.
Test-fixture replay · Three rooms, Thursday 16:00–18:00
- Room A
- 120 seats · Projector
- Room B
- 60 seats · Projector
- Room C
- 80 seats · No projector
| Request | First come | Greedy | Branch & bound |
|---|---|---|---|
| Coding Club50 people | Room B | Room C | Room C |
| Workshop55 people | Room A | Room B | Room B |
| AI Club100 people | Unplaced | Room A | Room A |
- First come · 2 of 3 placed. The first club gets the smallest suitable room. Workshop uses room A, leaving AI Club without a room large enough.
- Greedy · 3 of 3 placed. With priorities tied, the least flexible bookings go first. AI Club takes A and Workshop takes B, leaving C for Coding Club.
- Branch & bound · 3 of 3 placed. The search starts with the greedy assignment and checks what alternatives could improve it. This fixture ends with the same three rooms.
For Coding Club in room B, capacity fit contributes 25 points before allocation. Required features are checked before the room receives a score.
In the application

How it works
Hard constraints eliminate unsuitable rooms before scoring. The TypeScript engine chooses the assignment. Optional Groq integration helps interpret requests and explain results.
Next.js / TypeScript / Zod / Supabase / PostgreSQL / Groq
Engineering tradeoff
Branch and bound starts from a greedy solution and searches for a better feasible plan. The default budget is 1,500 ms or 200,000 nodes. In this fixture, greedy and branch and bound reach the same assignment.