mirror of
https://github.com/oxyanyano/2022-WangDao-CS-DS-Notes.git
synced 2026-02-02 18:29:00 +08:00
Update 6.5最小生成树(Prim算法、Kruskal算法).md
This commit is contained in:
@@ -30,9 +30,9 @@
|
||||
每轮遍历**isJoin**数组,第一遍找到**lowCost**最低的顶点,然后加入;第二遍循环遍历更新各点的**lowCost**值。
|
||||
则`时间复杂度`=$$O(|V|^2)$$,适合`边稠密图`
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
### 三、Kruskal算法(克鲁斯卡尔算法)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user