2020年4月20日

算法 *-* 并查集Union-Find(连通性)

摘要: 总结 class UF { /* 将 p 和 q 连接 */ public void union(int p, int q); /* 判断 p 和 q 是否连通 */ public boolean connected(int p, int q); /* 返回图中有多少个连通分量 */ public 阅读全文

posted @ 2020-04-20 16:34 frank_cui 阅读(215) 评论(0) 推荐(0)

导航

levels of contents