证明 P <= NP

发布于 2024-08-28 17:09:24 字数 168 浏览 7 评论 0 原文

大多数人都知道,P = NP 未经证实,而且似乎不太可能是真的。证明将证明 P <= NP 和 NP <= P。不过,只有其中一个是困难的。

P <= NP 几乎根据定义为真。事实上,这是我知道如何表述 P <= NP 的唯一方法。这只是直观的。你如何证明 P <= NP?

As most people know, P = NP is unproven and seems unlikely to be true. The proof would prove that P <= NP and NP <= P. Only one of those is hard, though.

P <= NP is almost by definition true. In fact, that's the only way that I know how to state that P <= NP. It's just intuitive. How would you prove that P <= NP?

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

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

发布评论

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

评论(6

没有你我更好 2024-09-04 17:09:24

NP 中的每个问题都由非确定性图灵机 [在多项式时间内] 解决。 (根据定义*)

P 中的每个问题都由确定性图灵机 [在多项式时间内] 解决。 (根据定义)

每个确定性图灵机也是一个非确定性图灵机。 (显然)

因此 P 中的每个问题都由非确定性图灵机[在多项式时间内]解决。

因此,P 中的每个问题都是 NP 中的问题。因此 P ⊆ NP。


*让我们阅读关于 NP 的维基百科文章

在等效的形式定义中,NP 是非确定性图灵机可在多项式时间内解决的决策问题集。

没有必要将多项式验证这些东西引入到如此简单的推理中。

Each problem in NP is solved by a nondeterministic Turing machine [in polynomial time]. (by definition*)

Each problem in P is solved by a deterministic Turing machine [in polynomial time]. (by definition)

Each deterministic Turing machine is a nondeterministic Turing machine as well. (obviously)

Hence each problem in P is solved by a nondeterministic Turing machine [in polynomial time].

Hence each problem in P is a problem in NP. Hence P ⊆ NP.


*Let's read Wikipedia article on NP:

In an equivalent formal definition, NP is the set of decision problems solvable in polynomial time by a non-deterministic Turing machine.

There's no need to introduce this stuff about polynomial verification into such a simple reasoning.

能否归途做我良人 2024-09-04 17:09:24

我认为您基本上已经在评论中回答了自己的问题:满足 P 定义的问题也满足 NP 的定义。

引用维基百科:

P 中的所有问题[都在 NP 中](因为,给定 P 中问题的证书,我们可以忽略该证书并仅在多项式时间内解决该问题。或者,请注意,确定性图灵机也很简单非确定性图灵机,只是碰巧不使用任何非确定性。)

它所指的证书是解的多项式时间验证;正如您所说,您可以在多项式时间内解决 P 中的问题,因此您将获得一个已在多项式时间内验证的解决方案,因此在 NP 中。

乔伊·亚当斯的回答是第二种解释,即(非)确定性图灵机的可解性。请参阅维基百科文章,了解 NP 定义的更多说明

我认为你在这里应该注意的是,证明非常简单这一事实并不意味着它不是一个证明。 “根据定义”是一个完全有效的逻辑步骤。

I think you've essentially answered your own question in the comments: a problem which satisfies the definition of P also satisfies the definition of NP.

To quote wikipedia:

All problems in P [are in NP] (For, given a certificate for a problem in P, we can ignore the certificate and just solve the problem in polynomial time. Alternatively, note that a deterministic Turing machine is also trivially a non-deterministic Turing machine that just happens to not use any non-determinism.)

The certificate it refers to is the polynomial-time verification of solution; as you say, you can solve a problem in P in polynomial time and you will therefore have a solution which has been verified in polynomial time and is therefore in NP.

Joey Adams' answer is the second explanation, in terms of solvability by (non)deterministic Turing machines. See the wikipedia article for a bit more explanation of that definition of NP.

I think what you should note here is that the fact that the proof is trivially simple doesn't mean it's not a proof. "By definition" is a perfectly valid logical step.

暮凉 2024-09-04 17:09:24

一台非确定性计算机可以简单地不调用其非确定性并像确定性计算机一样运行,因此它可以在多项式时间内运行 P 问题。这是我能想到的最好的答案。

A nondeterministic computer can simply not invoke its nondeterminism and act like a deterministic one, thus it can run P problems in polynomial time. That's the best answer I can think of.

向日葵 2024-09-04 17:09:24

在多项式时间内解决 (NP) 问题的非确定性计算机也将在多项式时间内解决 P 问题。

如果我们考虑图灵机的想象方法,它可以在决策时采取多条路径来在多项式时间内解决 NP 问题,那么这种行为必须足以在 P 时间内解决 P 问题。确定性图灵机是简单(真实)非确定性机器的一种情况。

A non-deterministic computer that solves a (NP) problem in polynomial time would also solve a P problem in polynomial time.

If we consider the imaginary approach of a Turing Machine that can take several paths at a decision to solve the NP problem in polynomial time, this behaviour must be enough to solve the P problem in P Time. Deterministic Turing machines are a case of simple (real) non-deterministic machines.

骄兵必败 2024-09-04 17:09:24

NP 中的每个问题都由非确定性图灵机 [在多项式时间内] 解决。 (根据定义*)

P 中的每个问题都由确定性图灵机 [在多项式时间内] 解决。 (根据定义)

每个确定性图灵机也是一个非确定性图灵机。 (显然)

因此 P 中的每个问题都由非确定性图灵机[在多项式时间内]解决。

因此,P 中的每个问题都是 NP 中的问题。因此 P ⊆ NP。

Each problem in NP is solved by a nondeterministic Turing machine [in polynomial time]. (by definition*)

Each problem in P is solved by a deterministic Turing machine [in polynomial time]. (by definition)

Each deterministic Turing machine is a nondeterministic Turing machine as well. (obviously)

Hence each problem in P is solved by a nondeterministic Turing machine [in polynomial time].

Hence each problem in P is a problem in NP. Hence P ⊆ NP.

许你一世情深 2024-09-04 17:09:24

ℙ≠ℕℙ 已证明。 https://sourceforge.net/projects/cscall/文件/MisFiles/PNP-proof-en.txt/download
...[切]
证明2:设p=“给定一个数n,判断n是否为偶数”。如果
ℙ=ℕℙ,则 p∉ℕℙℂ 的所有现有证明都是假证明(因为
所有 ℕℙ 问题(包括 ℕℙℂ)都可以相互 Ptime 简化)。自从
证明 p∉ℕℙℂ 为真,ℙ≠ℕℙ 成立。

ℙ≠ℕℙ Proved. https://sourceforge.net/projects/cscall/files/MisFiles/PNP-proof-en.txt/download
...[cut]
Proof2: Let p="Given a number n, determine whether or not n is even". If
ℙ=ℕℙ, then all the existing proofs of p∉ℕℙℂ are false proofs (because
all ℕℙ problems including ℕℙℂ will be mutually Ptime reducible). Since
the proofs that p∉ℕℙℂ are true, ℙ≠ℕℙ is concluded.

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