Study

Single-Source Shortest Path (SSSP)

Flashcards
1 / 0
algorithms data structures graphs python java software engineering
πŸ’¬ Click on the content to Ask AI
Explore More
πŸ”₯ dijkstra algorithm β†’ Dijkstra's algorithm depends on the SSSP formulation: it solves SSSP on graphs with non-negative edge weights by applying edge relaxation ordered via a priority queue, and its correctness is framed in SSSP terms.
πŸ”₯ bellman-ford algorithm β†’ Bellman–Ford solves the single-source shortest path problem, applying repeated edge relaxation and negative-cycle detection to handle graphs with negative weights; understanding the SSSP objective and relaxation model is required to implement and analyze Bellman–Ford.
πŸ”₯ directed acyclic graph β†’ SSSP techniques (relaxation, edge-weight handling) enable linear-time path algorithms on DAGs via topological ordering; many DAG tasks (shortest/longest paths, scheduling) are specialized SSSP formulations that reuse these ideas.
🌟 breadth first search β†’
⚑️ single-pair shortest path β†’
⚑️ all-pairs shortest path β†’