Commit 2d4e506
committed
feat: implement improved shortest path algorithm based on arXiv:2504.17033
- Add improved_shortest_path: optimized Dijkstra with reduced sorting overhead
- Add bucket_shortest_path: O(E + V) algorithm for small integer weights
- Add adaptive_shortest_path: hybrid approach that chooses best algorithm
- Include comprehensive documentation with paper references
- Add 9 comprehensive tests covering various scenarios
- Update DIRECTORY.md to include new algorithm
- Export functions in graph module
This implementation demonstrates how to break the sorting barrier
described in 'Breaking the Sorting Barrier for Directed Single-Source
Shortest Paths' paper, providing significant performance improvements
for graphs with small integer weights.1 parent aa3194f commit 2d4e506
3 files changed
Lines changed: 505 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
0 commit comments