You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[Floyd–Warshall](../1001-2000/1334-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance.md)|Multi-Source Shortest Path |No need |Less important|Relatively hard|Used |Can handle||
59
+
|[Depth-first search](./797-all-paths-from-source-to-target.md)|Traverse a graph |No need |Very important|Easy |No need |Can handle||
60
+
|[Breath-first search](../1001-2000/1971-find-if-path-exists-in-graph.md)|Traverse a graph |No need |Very important|Easy |No need |Can handle|Single-Source Shortest Path if No Weight|
Copy file name to clipboardExpand all lines: en/3001-4000/unorganized.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -59,11 +59,14 @@ The improved way with a queue is commonly more efficient. Relaxing **All Edges**
59
59
* The time complexity of `Floyd–Warshall algorithm` is `V * V * V`. For a dense graph, `Floyd–Warshall algorithm` is still faster.
60
60
*`A* algorithm` use a `priority queue`, `pop()` to get the vertex closest to the destination vertex. We need to choose **proper math formula** to determine which one is the closest. We to the very near place of destination vertex, we can use some special method to make it can handle the last part.
0 commit comments