
三元环
三元环
Guuuuuu老师儿
当初的算法竞赛题目博客的留言评论就不回复了,时间太久已经忘干净了,抱歉~
展开
-
无向图求三元环
无向图是一个稀疏图,点n&lt;105n&lt;105n < 10^5 边数m&lt;min(105,n×(n−1)2)m&lt;min(105,n×(n−1)2)m < min(10^5,\frac{n\times(n-1)}{2}),现在给出n,m,E(边集合),求出这个三元环的个数,两个三元环不同是:当于对两个三元环的边,某个三元环存在一条边在另一个三元环中无法找到。 解法:暴力的方法可...原创 2018-07-14 19:49:55 · 1592 阅读 · 4 评论 -
Counting Stars HDU - 6184(无向图三元环计数)
Counting Stars HDU - 6184 Little A is an astronomy lover, and he has found that the sky was so beautiful! So he is counting stars now! There are n stars in the sky, and little A has connected th...原创 2018-07-14 19:59:03 · 333 阅读 · 0 评论