Skip to content

Commit

Permalink
Update Kruskal.java
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjtzyy authored Oct 15, 2022
1 parent 9a28086 commit 8463f66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MinimumSpanningTree/Kruskal.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import java.util.*;

// 时间复杂度 O(ElogE) + O(V + E) alpha(v)(具体见算法导论查并集). 最终复杂度是去大的一项,也就是 O(ElogE)

public class Kruskal{
private class Edge implements Comparable<Edge>
{
Expand Down

0 comments on commit 8463f66

Please sign in to comment.