Skip to content

Commit

Permalink
Update Prim.java
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjtzyy authored Oct 15, 2022
1 parent 325cb73 commit 6cdef21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MinimumSpanningTree/Prim.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import java.util.*;

// 时间复杂度 O(V^2) 适合稠密图
// 时间复杂度 O(V^2) 适合稠密图, 利用heap可降为 O(VlogV)
public class Prim {
class Edge implements Comparable<Edge>{
int start;
Expand Down

0 comments on commit 6cdef21

Please sign in to comment.