@@ -54,12 +54,12 @@ The following code will introduce how to optimize.
54
54
For a detailed description of** Dijkstra's algorithm** , please refer to[ 1514. Path with Maximum Probability] ( ../1001-2000/1514-path-with-maximum-probability.md ) .
55
55
56
56
###Common graph theory algorithm comparison table
57
- | Algorithm name| Main application scenarios| Optimization methods| Importance| Difficulty| min_distances| Additional application scenarios|
58
- | --------------| --------------------------| --------------------| ----------| ----------| -------------| --------------------------------|
59
- | [ Prim's algorithm] ( ../1001-2000/1584-min-cost-to-connect-all-points.md ) | Minimum Spanning Tree| Heap Sort| Important| Medium| Used||
60
- | [ Kruskal's algorithm] ( ../1001-2000/1584-min-cost-to-connect-all-points-2.md ) | Minimum Spanning Tree| Heap Sort| important| Relatively hard| Not used| Relative scenarios: [ Undirected Graph Cycle Detection] ( ./684-redundant-connection.md ) ,[ Directed Graph Cycle Detection] ( ./685-redundant-connection-ii.md ) |
61
- | [ Dijkstra's algorithm] ( ../1001-2000/1514-path-with-maximum-probability.md ) | Single-Source Shortest Path| Heap Sort| Very important| Medium| Used||
62
- | [ Bellman-Ford algorithm] ( ./743-network-delay-time.md ) | Single-Source Shortest Path| Queue-Improved| Very Important| Easy| Used| Negative Edge Weights,< br > [ Detect Negative Cycles] ( https://www.geeksforgeeks.org/detect-negative-cycle-graph-bellman-ford/ ) ,<br >[ Shortest Hop-Bounded Paths] ( ./787-cheapest-flights-within-k-stops.md ) |
57
+ | Algorithm name| Main application scenarios| Optimization methods| Importance| Difficulty| min_distances| Negative weights | Additional application scenarios|
58
+ | --------------| --------------------------| --------------------| ----------| ----------| -------------| ----------------| ---------------- ----------------|
59
+ | [ Prim's algorithm] ( ../1001-2000/1584-min-cost-to-connect-all-points.md ) | Minimum Spanning Tree| Heap Sort| Important| Medium| Used| Able to handle ||
60
+ | [ Kruskal's algorithm] ( ../1001-2000/1584-min-cost-to-connect-all-points-2.md ) | Minimum Spanning Tree| Heap Sort| important| Relatively hard| Not used| Able to handle | Relative: [ Undirected Graph Cycle Detection] ( ./684-redundant-connection.md ) ,[ Directed Graph Cycle Detection] ( ./685-redundant-connection-ii.md ) |
61
+ | [ Dijkstra's algorithm] ( ../1001-2000/1514-path-with-maximum-probability.md ) | Single-Source Shortest Path| Heap Sort| Very important| Medium| Used| Unable to handle ||
62
+ | [ Bellman-Ford algorithm] ( ./743-network-delay-time.md ) | Single-Source Shortest Path| Queue-Improved| Very Important| Easy| Used| Able to handle | [ Detect Negative Cycles] ( https://www.geeksforgeeks.org/detect-negative-cycle-graph-bellman-ford/ ) , <br >[ Shortest Hop-Bounded Paths] ( ./787-cheapest-flights-within-k-stops.md ) |
63
63
64
64
##Complexity
65
65
** V** : vertex count,** E** : Edge count.