Closed yosupo06 closed 4 years ago
https://pacechallenge.wordpress.com/pace-2017/track-a-treewidth/ PACE-2017 木分解の一般的なフォーマット
K ≤ 2N+M+10、きつい https://judge.yosupo.jp/submission/9898 @ei1333 Nice Tree Decompositionって頂点数どれくらいになりますか
3N+M+10あれば足りそう https://judge.yosupo.jp/submission/9901
outer_planer でバグってるのかと思ったら非連結なケースがouter_planerだけだったぜ!
記憶をなくしたんですが、2N + M + 10ではなさそうです 小さくて困ることはないのでもう10N + M + 10とかでいい気がする(10sで10N + M + 10行出力できるかはともかく…)
(任意) 問題ID: Tree Decomposition (Treewidth 2) 問題名: tree_decomposition_of_treewidth_2
参考(Tree decomposition): https://en.wikipedia.org/wiki/Tree_decomposition 参考(AOJ ICPC, 外平面グラフ): http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=2405 参考(↑の講評 具体的な木分解の構成法が乗っている): https://jag-icpc.org/?plugin=attach&refer=2012%2FPractice%2F%E6%A8%A1%E6%93%AC%E5%9B%BD%E5%86%85%E4%BA%88%E9%81%B8%2F%E8%AC%9B%E8%A9%95&openfile=ports.pdf
問題概要
N頂点M辺の木幅が1, 2の単純な無向グラフが与えられる。木分解を構成
具体的には木を作る 木の頂点はそれぞれバッグ(元のグラフの部分集合)を持つ
入力
出力
制約
N <= 100,000
検討事項