首页 > 其他 > 详细

XXI Open Cup named after E.V. Pankratiev. Grand Prix of Korea

时间:2021-09-12 01:21:46      阅读:40      评论:0      收藏:0      [点我收藏+]

C

知道这个定理:

Theorem. A graph \(G\) is strongly connected if and only if it can be constructed using the following procedure:

  1. Start with \(N\) isolated vertices. Pick any vertex \(v\), and let \(S = \{v\}\).
  2. Repeat the following until \(S = V(G)\):
    (a) Pick two vertices \(v\) and \(u\in S\). The two vertices can be the same.
    (b) Pick zero or more distinct vertices \(w_1, \cdots, w_k \notin S\).
    (c) Connect \(v\rightarrow w_1 \rightarrow \cdots \rightarrow w_k \rightarrow u\), and put \(w_1 \cdots w_k\) into \(S\).

然后就可以 xjb 状压 dp 了,题解给的第四维可以省掉

G

dp of dp, TODO: bzoj ATGC LCS by clj?

XXI Open Cup named after E.V. Pankratiev. Grand Prix of Korea

原文:https://www.cnblogs.com/flukehn/p/15249672.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!