强连通分量
强连通分量
王江奎
这个作者很懒,什么都没留下…
展开
-
BZOJ1123-BLO——强连通分量求割点+计数
【题目描述】 Byteotia城市有n个 towns m条双向roads. 每条 road 连接 两个不同的 towns ,没有重复的road. 所有towns连通。 Input 输入n<=100000 m<=500000及m条边 Output 输出n个数,代表如果把第i个点去掉,将有多少对点不能互通。 Sample Input 5 5 1 2 2 3 1 3 3 4 4 5 ...原创 2019-08-19 10:07:33 · 283 阅读 · 0 评论 -
强连通分量入门——Trajan算法
今天学习了强连通分量。 【参考博客】 如果觉得我讲的有些地方难以理解或者存在问题(欢迎留言),可以看一下我借鉴的一些大佬的博客: 传送门1 传送门2 【知识储备】 首先我们需要对几个定义有一些概念: 强连通:有向图中两个点可以相互到达 强连通图:有向图中任意两个点都是强连通的 强连通分量:一个有向图的一个子图中是强连通图的最大的子图就称这个有向图为强连通分量 通俗理解的话,强连通分量里面的任何两...原创 2019-08-16 13:44:51 · 267 阅读 · 0 评论 -
HDU 5934:Boom——强连通分量+缩点
【题目描述】 There are N bombs needing exploding. Each bomb has three attributes: exploding radius ri, position (xi,yi) and lighting-cost ci which means you need to pay ci cost making it explode. If a un-...原创 2019-08-16 15:27:27 · 187 阅读 · 0 评论 -
POJ-1144 Network——Trajan+割点
【题目描述】 A Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integers from 1 to N . No two places have the same number. The lines...原创 2019-08-17 12:36:55 · 150 阅读 · 0 评论 -
POJ1236Network of Schools——强连通分量缩点建图
【题目描述】 A number of schools are connected to a computer network. Agreements have been developed among those schools: each school maintains a list of schools to which it distributes software (the “recei...原创 2019-08-17 15:45:46 · 142 阅读 · 0 评论