mirror of
https://github.com/onyx-and-iris/grokking-algorithms.git
synced 2026-04-16 11:33:34 +00:00
add some notes
This commit is contained in:
5
chapter9/README.md
Normal file
5
chapter9/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Shortest path for weighted graph (cost associated edges)
|
||||
|
||||
- Dijkstra's algorithm works when all weights are non-negative
|
||||
- If there are negative weights use Bellman-Ford.
|
||||
- Priority queue + min heap is optimal when compared to a function that operates on a list.
|
||||
Reference in New Issue
Block a user