Open r3a1d3a1 opened 8 months ago
Hey @r3a1d3a1, that's a great idea! I'd love to see a comparison of both options in this use case. I love the open and collaborative nature of this project and this should be a relatively minor change so feel free to open a PR with some benchmarking! Here are some resources that may be useful:
Second link was pretty cool... Thanks for sharing! #AmortizedAnalysis
Enjoyed reading about the problem and your solution. A minor improvement: Topological sort is slightly faster than Dijkstra: https://en.wikipedia.org/wiki/Shortest_path_problem#Directed_acyclic_graphs_(DAGs)