我一直有一些困难,理解减少使用NP问题,并希望澄清。考虑以下问题:
Show that the following problem is NP-Complete by designing
a polynomial-time reduction algorithm from an already known
NP-Complete problem.
Problem: Given an undirected graph G=(V,E) and integer k,
test whether G has a cycle of length k.我知道还有关于这个问题的其他议题,但我仍然不确定我是否理解这样的削减将如何进行。
我的理解是,这就是你处理这样一个问题的方法。
那么,对于这样的问题,这是一个正确的方法吗?
发布于 2013-05-13 23:42:38
这看起来很像家庭作业,所以我只给您一个提示,但是尝试考虑一个带有k节点的未加权图k。什么是等价于寻找一个周期的长度k,这是可解的算法,你假设的是多项式?试着从这里开始。
https://stackoverflow.com/questions/16532757
复制相似问题