摘要:
最小树形图模板题 #include <iostream> #include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <string> #include <stack> #include 阅读全文
posted @ 2016-05-10 21:16
shuguangzw
阅读(163)
评论(0)
推荐(0)
摘要:
最小树形图,就是给有向带权图中指定一个特殊的点root,求一棵以root为根的有向生成树T,并且T中所有边的总权值最小。 朱刘算法模板题 #include <iostream> #include <algorithm> #include <cstdio> #include <cstdlib> #in 阅读全文
posted @ 2016-05-10 18:17
shuguangzw
阅读(166)
评论(0)
推荐(0)
摘要:
模板题 #include <iostream> #include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <string> #include <stack> #include <queu 阅读全文
posted @ 2016-05-10 11:20
shuguangzw
阅读(162)
评论(0)
推荐(0)
摘要:
又是求次小生成树,就是求出最小生成树,然后枚举不在最小生成树上的每条边,求出包含着条边的最小生成树,然后取一个最小的 #include <iostream> #include <algorithm> #include <cstdio> #include <cstdlib> #include <cst 阅读全文
posted @ 2016-05-10 11:00
shuguangzw
阅读(132)
评论(0)
推荐(0)

浙公网安备 33010602011771号