如果问题X(决策问题)已知是NP完全的,并且证明可以简化为问题Y,那么你能说问题Y是NP完全的吗?

发布于 2024-09-29 20:19:56 字数 165 浏览 1 评论 0原文

如果已知问题 X(决策问题)是 NP 完全的,并且证明在多项式时间内可简化为问题 Y,那么您能说问题 Y 是 NP 完全的吗?

我的第一个想法是,不,问题 Y 需要证明它是 NP 问题。但进一步思考,如果X约简为Y,Y就已经被认为是NP-Complete了。现在我只是很困惑...任何帮助将不胜感激。

If a problem X (decision problem) is known to be NP-Complete, and proven to be reduced to problem Y in polynomialtime, can you then say problem Y is NP-Complete?

My first thought was, no, problem Y needs to be shown that it is in NP. But after further thought, if X is reduced to Y, Y is already considered to be NP-Complete. Now I'm just confused...any help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

土豪我们做朋友吧 2024-10-06 20:19:56

反对意见:

如果 X ∈ NP 且 X ⇔ Y 且 Y ∉ NP,则 X ∉ NP。

Argumentum per contrarium:

If X ∈ NP and X ⇔ Y and Y ∉ NP then X ∉ NP.

水水月牙 2024-10-06 20:19:56

问题 X - 不确定
问题 Y - 在 NP 中

为了证明 X 在 NP 中,您证明可以按照步骤将 X 中的每个问题简化为 Y 中的问题。然后您就知道 X 问题至少与等效的 Y 问题一样难。

所以不,你需要从 Y 开始,然后减少到 X。

Problem X - Unsure
Problem Y - In NP

To prove X is in NP, you show that you can follow steps to reduce every problem in X to a problem in Y. Then you know that the X problem is at least as hard as the equivalent Y problem.

So no, you need to start with Y and then reduce to X.

睡美人的小仙女 2024-10-06 20:19:56

SAT 可以通过对 ALL 的一次调用来解决,但这并不意味着 ALL 属于 NP。

SAT can be solved in a single call to ALL, but that doesn't mean that ALL is in NP.

谢绝鈎搭 2024-10-06 20:19:56

是的,这是正确的。
您可以在多项式时间内将问题简化为任何已知的 NP 完全问题,但这被认为是一项非常困难的任务。
因此,你选择一个已经 NP 完全的问题并将其简化为你的问题,并表明它是 NP 的,那么你的问题将是 NP 完全的。

Yes that is correct.
You can reduce your problem in polynomial time to any already known NP complete problem but that is considered to be a very difficult task.
So instead you pick an already NP complete problem and reduce it to your problem and also show that it is in NP, then your problem will be NP complete.

风向决定发型 2024-10-06 20:19:56

还没有,你还需要几个步骤

为了证明问题 L 是 NP 完全的,我们需要执行以下步骤:

  1. 证明你的问题 L 属于 NP(也就是说,给定一个解决方案,你可以在多项式时间)
  2. 选择一个已知的 NP 完全问题 L'
  3. 描述一个将 L' 转换为 L 的算法 f
  4. 证明你的算法是正确的(形式上:x ∈ L' 当且仅当 f(x) ∈ L )
  5. 证明算法 f在多项式时间内运行

到目前为止,您已经完成了步骤 2,3,4
您仍然需要证明减少是多项式的(步骤 5)
并且该问题属于NP问题(步骤1),即可以在多项式时间内验证解。

Not yet, you will need a few more steps

In order to prove that a problem L is NP-complete, we need to do the following steps:

  1. Prove your problem L belongs to NP (that is that given a solution you can verify it in polynomial time)
  2. Select a known NP-complete problem L'
  3. Describe an algorithm f that transforms L' into L
  4. Prove that your algorithm is correct (formally: x ∈ L' if and only if f(x) ∈ L )
  5. Prove that algo f runs in polynomial time

So far you have step 2,3,4
You still need to show that the reduction is polynomial (step 5)
And that the problem belongs to NP (step 1), that is a solution can be verified in polynomial time.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文