会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
N1nEmAn
首页
新随笔
管理
2025年8月21日
Kruskal算法求最小生成树
摘要: rt 所有的边权录入,然后根据权排序,从小到大构成最小生成树。使用并查集,确保在一个联通的不要再更新。 #include <iostream> #include <cstring> #include <algorithm> #include <vector> using namespace std;
阅读全文
posted @ 2025-08-21 11:39 .N1nEmAn
阅读(8)
评论(0)
推荐(0)
公告