Shortest Path Fundamentals
Define distance, relaxation, infinity, and path reconstruction. Select an algorithm based on edge weights and query shape, including DAG relaxation, and explain why ordinary BFS cannot optimize arbitrary weighted paths.
Define distance, relaxation, infinity, and path reconstruction. Select an algorithm based on edge weights and query shape, including DAG relaxation, and explain why ordinary BFS cannot optimize arbitrary weighted paths.