Aaditya Srivastava

Working Proof

Software engineeringChennai, India
Back to selected work

Allocation algorithms

Allotiq

Three bookings. Two projectors.

System path

  1. Filter rooms
  2. Score rooms
  3. 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
RequestFirst comeGreedyBranch & bound
Coding Club50 peopleRoom BRoom CRoom C
Workshop55 peopleRoom ARoom BRoom B
AI Club100 peopleUnplacedRoom ARoom 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

Room scoring
allotiq.skipp.lifeAllotiq’s score explanation ranks TP 401 Lab first at 91 out of 100.
Application screenshot · score explanation on Allotiq’s public landing page. The 91/100 score is for a different booking.Original score screenshot

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.