NP-Hard Problem
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Recently, Pari and Arya did some research about NP-Hard problems and they found the minimum vertex cover problem very interesting.
Suppose the graph G is given. Subset A of its vertices is called a vertex cover of this graph, if for each edge uv there is at least one endpoint of it in this set, i.e. or (or both).
Pari and Arya have won a great undirected graph as an award in a team contest. Now they have to split it in two parts, but both of them want their parts of the graph to be a vertex cover.
They have agr

本文探讨了NP-Hard问题中的最小顶点覆盖问题,并给出了一种利用DFS染色方法来判断是否为二分图的策略。在解决如何将图分割为两个顶点覆盖集的问题中,提供了示例并分析了可能的情况。
最低0.47元/天 解锁文章
2890

被折叠的 条评论
为什么被折叠?



