Skip to content

Commit 2d4e506

Browse files
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

File tree

3 files changed

+505
-0
lines changed

3 files changed

+505
-0
lines changed

DIRECTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
* [Ford Fulkerson](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/ford_fulkerson.rs)
146146
* [Graph Enumeration](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/graph_enumeration.rs)
147147
* [Heavy Light Decomposition](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/heavy_light_decomposition.rs)
148+
* [Improved Shortest Path](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/improved_shortest_path.rs)
148149
* [Kosaraju](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/kosaraju.rs)
149150
* [Lee Breadth First Search](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/lee_breadth_first_search.rs)
150151
* [Lowest Common Ancestor](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/lowest_common_ancestor.rs)

0 commit comments

Comments
 (0)