Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfd492d2

Browse files
committed
Added if these graph theory algorithm can handle negative edge weights.
1 parenta755ffd commitfd492d2

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

‎en/1-1000/743-network-delay-time.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ The following code will introduce how to optimize.
5454
For a detailed description of**Dijkstra's algorithm**, please refer to[1514. Path with Maximum Probability](../1001-2000/1514-path-with-maximum-probability.md).
5555

5656
###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)|
6363

6464
##Complexity
6565
**V**: vertex count,**E**: Edge count.

‎zh/1-1000/743-network-delay-time.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@
5454

5555
**Dijkstra算法**的详细说明,请参考[1514. 概率最大的路径](../1001-2000/1514-path-with-maximum-probability.md)
5656

57-
* 常见图论算法对比表:
58-
59-
|算法名称|主要的适用场景|优化方式|重要程度|难度|min_distances|额外的适用场景|
60-
|-------|-----------|-------|-------|---|-------------|------------|
61-
|[Prim算法](../1001-2000/1584-min-cost-to-connect-all-points.md)|最小生成树|堆排序|重要|中等|用到||
62-
|[Kruskal算法](../1001-2000/1584-min-cost-to-connect-all-points-2.md)|最小生成树|堆排序|重要|较难|不用|相关场景[无向图环检测](./684-redundant-connection.md),<br>[有向图环检测](./685-redundant-connection-ii.md)|
63-
|[Dijkstra算法](../1001-2000/1514-path-with-maximum-probability.md)|单源最短路径|堆排序|非常重要|中等|用到||
64-
|[Bellman-Ford算法](./743-network-delay-time.md)|单源最短路径|~~队列~~`集合`优化|非常重要|简单|用到|负边权值,[负环检测](https://www.geeksforgeeks.org/detect-negative-cycle-graph-bellman-ford/),<br>[限定步数最短路径](./787-cheapest-flights-within-k-stops.md)|
57+
###常见图论算法对照表
58+
59+
|算法名称|主要的适用场景|优化方式|重要度|难度|min_<br>distances|负边权值|额外的适用场景|
60+
|-------|-----------|-------|-------|---|-------------|--------|------------|
61+
|[Prim算法](../1001-2000/1584-min-cost-to-connect-all-points.md)|最小生成树|堆排序|重要|中等|用到|能处理||
62+
|[Kruskal算法](../1001-2000/1584-min-cost-to-connect-all-points-2.md)|最小生成树|堆排序|重要|较难|不用|能处理|相关[无向图环检测](./684-redundant-connection.md),[有向图环检测](./685-redundant-connection-ii.md)|
63+
|[Dijkstra算法](../1001-2000/1514-path-with-maximum-probability.md)|单源最短路径|堆排序|很重要|中等|用到|不能处理||
64+
|[Bellman-Ford算法](./743-network-delay-time.md)|单源最短路径|集合优化|很重要|简单|用到|能处理|[负环检测](https://www.geeksforgeeks.org/detect-negative-cycle-graph-bellman-ford/),[限定步数最短路径](./787-cheapest-flights-within-k-stops.md)|
6565

6666
##复杂度
6767
**V**: 顶点数量,**E**: 边的数量。

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp