How nitish-singh123/team-allocation-and-guide works
This repository contains two standalone, effectively identical command-line programs for assigning teams to guides. The user enters teams, guide capacities, and preferences; each program computes a maximum-flow allocation and a greedy comparison, then prints assignments, guide loads, and unassigned teams. The two files implement the workflow independently rather than importing one another. The graph separates input/output, allocation strategies, and the flow engine; both algorithms are implemented in the same file as their entry point.
Main entry points: main.py CLI (main) · 8_hr_version.py CLI (8-hour)
Components 9
Other components
- User
- CLI (main)
main.py - Max-flow allocation
main.py - Greedy allocation
main.py - Dinic engine
main.py - CLI (8-hour)
8_hr_version.py - Max-flow allocation
8_hr_version.py - Greedy allocation
8_hr_version.py - Dinic engine
8_hr_version.py
Connections 10
- User → CLI (main): enters data
main.py - CLI (main) → Max-flow allocation: calls
main.py - Max-flow allocation → Dinic engine: computes flow
main.py - CLI (main) → Greedy allocation: calls
main.py - CLI (main) → User: prints reports
main.py - User → CLI (8-hour): enters data
8_hr_version.py - CLI (8-hour) → Max-flow allocation: calls
8_hr_version.py - Max-flow allocation → Dinic engine: computes flow
8_hr_version.py - CLI (8-hour) → Greedy allocation: calls
8_hr_version.py - CLI (8-hour) → User: prints reports
8_hr_version.py