Useful Links
Mathematics
Graph Theory
1. Introduction to Graph Theory
2. Fundamental Concepts and Types of Graphs
3. Representing Graphs
4. Paths, Walks, and Cycles
5. Graph Traversal
6. Trees and Forests
7. Shortest Path Algorithms
8. Network Flow
9. Graph Coloring
10. Planar Graphs
11. Matchings
12. Advanced Topics in Graph Theory
Shortest Path Algorithms
Single-Source Shortest Paths
Problem Definition
Source Vertex
Distance Function
Shortest Path Tree
Unweighted Graphs
BFS for Shortest Paths
Level-by-Level Exploration
Optimality Proof
Weighted Graphs with Non-Negative Edges
Dijkstra's Algorithm
Greedy Approach
Priority Queue Implementation
Relaxation Process
Correctness Proof
Complexity Analysis
Limitations with Negative Weights
Weighted Graphs with Negative Edges
Bellman-Ford Algorithm
Dynamic Programming Approach
Edge Relaxation
Negative Cycle Detection
Complexity Analysis
All-Pairs Shortest Paths
Problem Definition
Distance Matrix
Path Reconstruction
Floyd-Warshall Algorithm
Dynamic Programming Formulation
Intermediate Vertex Approach
Implementation Details
Negative Cycle Detection
Time and Space Complexity
Johnson's Algorithm
Reweighting Technique
Combination with Dijkstra's Algorithm
Efficiency for Sparse Graphs
Complexity Analysis
Previous
6. Trees and Forests
Go to top
Next
8. Network Flow