Given a simple undirected graph with $N$ vertices and $M$ edges. $i$-th edge is $(u_ i, v_ i)$。
Calculate the maximum independent set.
$N$ $M$
$u_ 0$ $v_ 0$
$u_ 1$ $v_ 1$
:
$u_ {M - 1}$ $v_ {M - 1}$
$X$
$p_ 0$ $p_ 1$ ... $p_ {X - 1}$
$X$ is the size of MIS, and $p_ i$ is the vertex index.
8 10 0 1 2 3 4 5 6 7 0 2 2 4 4 6 1 3 3 5 5 7
4 5 2 1 6
7 9 0 1 1 2 2 0 2 3 3 4 4 2 4 5 5 6 6 4
3 6 1 3
No. | Testdata Range | Score |
---|