This visualisation uses AI Generated code, finetuned for the best visualisation, not code quality
hungarian.mov
Interactive Raylib debugger for the Hungarian algorithm, showing row/column reductions, zero structure, line covers, augmenting choices, and the emergence of the final minimum-cost assignment.
- How the cost matrix is normalized with row and column reductions
- How zero locations encode assignment opportunities
- How covers and adjustments expose new zeros when the current cover is insufficient
- A step-through layout for understanding the full assignment pipeline
flowchart LR
A["Cost Matrix"]
B["Row / Column Reduction"]
C["Zero Structure"]
D["Cover Zeros"]
E["Adjust Uncovered Entries"]
F["Optimal Assignment"]
A --> B
B --> C
C --> D
D --> E
E --> C
D --> F
q: quitspace: auto or pauseenter: single stepr: reset fixed matrixn: random matrixh: helpg: goal view
make run