示例问题不在 P 中,也不在 NP 完全中,但在 NP 中

发布于 2024-10-07 12:12:49 字数 1377 浏览 3 评论 0原文

我在大学有一门叫做算法分析的课程,我们目前正在研究不同的复杂性类别——P、NP、NP-hard 等。

我们已经讨论了 NP 完全问题作为 NP 和 NP-hard 之间的交集,和P问题,包含在NP中。我们还讨论了一些示例,主要是 NP 完全问题(k-coloring、k-clique、SAT)。

大多数时候,我们通过以下方式证明问题是 NP 完全的

:找到一个非确定性算法来解决它(使用选择、成功、失败);

b.将已知的 NP 完全问题简化为它。

问题是,这些问题在确定性机器上运行时(顺序地,而不是遇到选择时同时分支)具有指数时间解决方案。

我的问题是这样的——我从来没有遇到过既不能在多项式时间内解决也不能在指数时间内解决的问题;多项式时间问题是 P 型问题,而指数时间问题通常是 NP 完全型问题。

这里有一个有用的维恩图: http://en.wikipedia.org/wiki/Np_complete

  1. 我愿意知道一个问题的例子,该问题既不在P中,也不在NP完全中,而是在NP中

  2. 此外,本质上是指数问题,例如生成 NP 完全集的幂集吗?或者该名称仅适用于仅使用指数时间算法的问题,因为没有其他算法显然的解决方法?

好吧,所以我给了 Rosh Oxymoron 答案,因为他实际上列出了一些疑似 P 和 NPC 之间问题的例子。感谢你们的帮助,我实际上注意到我把这个问题放在了错误的地方。 还有: https://cstheory.stackexchange.com/

我在其中找到了以下对我的问题非常有用的答案: https://cstheory.stackexchange.com/questions/79/problems- Between-p-和-npc 这具体是关于我问的问题,并且: https://cstheory.stackexchange.com/questions/ 52/hierarchies-in-np-under-the-p-np假设下 这通常很有趣,即使与最初的问题不完全相关。

非常感谢,

I have a course called Algorithm Analysis at college, where we're currently studying the different complexity classes -- P, NP, NP-hard etc.

We've already discussed NP-complete problems as the intersection between NP and NP-hard, and P problems, contained in NP. We've also talked about some examples, mainly of NP-complete problems (k-coloring, k-clique, SAT).

Most of the time, we prove a problem is NP-complete by:

a. Finding a nondeterministic algorithm to solve it (that uses choice, success, fail);

b. Reducing a known NP-complete problem to it.

The thing is that these problems, when run on a deterministic machine (sequentially, instead of simultaneously branching when encountering a choice) have exponential-time solutions.

My question is this -- I've never encountered problems that were solvable neither in polynomial time neither in exponential time; polynomial time problems are in P and exponential-time problems are usually in NP-complete.

There's a helpful Venn diagram here:
http://en.wikipedia.org/wiki/Np_complete

  1. I'd like to know an example of a problem that is neither in P, neither in NP-complete, but in NP.

  2. Also, are intrinsically exponential problems, like generating the power set of a set NP-complete? Or does that name only apply for problems for which an exponential time algorithm is used only because there's no other obvious method for solving it?

Ok, so I gave the answer to Rosh Oxymoron because he actually listed some examples of problems suspected to be between P and NPC. Thanks for your help guys, and I actually noticed that I put this question in the wrong place.
There's also:
https://cstheory.stackexchange.com/

where I found the following very useful answers to my question:
https://cstheory.stackexchange.com/questions/79/problems-between-p-and-npc
which is specifically about what I asked, and:
https://cstheory.stackexchange.com/questions/52/hierarchies-in-np-under-the-assumption-that-p-np
which is generally interesting, if not exactly related to the initial question.

Thanks a lot,

Dan

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

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

发布评论

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

评论(4

独行侠 2024-10-14 12:12:49

我想知道一个既不是 P 问题,也不是 NP 完全问题,而是 NP 问题的例子。

我也是;如果您找到了,请访问此网页领取 100 万美元奖金:https://www.claymath.org/millennium-problems/p-vs-np-problem

I'd like to know an example of a problem that is neither in P, neither in NP-complete, but in NP.

Me too; if you find one go ahead and visit this web page to claim your $1M prize: https://www.claymath.org/millennium-problems/p-vs-np-problem

酒与心事 2024-10-14 12:12:49
  1. BQP 问题,例如整数分解和离散对数(破解 RSA 和 DSA),被认为是 P 之外的,也被怀疑是 NP 问题,但不是 NP 完全问题。已知整数分解是在 NP 中,并且应该在 P 和 NP 完全之外。

http://en.wikipedia.org/wiki/BQP

http://en.wikipedia.org/wiki/Integer_factorization

  1. NP 是 EXPTIME 的子集,但预计 NP != EXPTIME (也就是说,EXPTIME 完全问题不在 NP 中)。与 P = NP 一样,这尚未得到证明(但已知 P != EXPTIME)。例如,检查算法是否会在 k 步后减半是 EXPTIME 完成的。寻找幂集也是如此(显然)。

http://en.wikipedia.org/wiki/EXPTIME

  1. BQP problems such as integer factorization and discrete logarithm (cracking RSA and DSA) are thought to be outside of P and are also suspected to be in NP but not in NP-complete. Integer factorization is known to be in NP, and is supposed to be outside of P and NP-complete.

http://en.wikipedia.org/wiki/BQP

http://en.wikipedia.org/wiki/Integer_factorization

  1. NP is a subset of EXPTIME, but it is expected that NP != EXPTIME (that is, EXPTIME-complete problems are not in NP). Like with P = NP, this is not yet proven (but it is known that P != EXPTIME). For example checking if an algorithm would half after k steps is EXPTIME-complete. Finding the power set is too (obviously).

http://en.wikipedia.org/wiki/EXPTIME

嗫嚅 2024-10-14 12:12:49
  1. NP \ NPC 中没有已知的问题。

  2. 当且仅当非确定性图灵机可以在多项式时间内解决该问题(或者等效地,确定性图灵机可以在多项式时间内决定该问题)时,该问题才是 NP 问题。您的示例并非如此。

    进一步需要指出的是,我们不知道 P = NP 是否存在,因此完全有可能(如果可能性很小)NP 中的所有问题都可以解决在多项式时间内。因此,如果我们知道一个问题无法在多项式时间内解决,那么该问题要么不是 NP 问题,要么,如果我们可以证明它确实是 NP 问题,我们只需证明 NP != P .

  1. There is no problem known to be in NP \ NPC.

  2. A problem is in NP if and only if a non-deterministic turing machine can solve it in polynomial time (or, equivalently, a deterministic turing machine can decide it in polynomial time). This is not the case for your example.

    Further it should be pointed out that we do not know whether P = NP, so it's perfectly possible (if highly unlikely) that all problems in NP can be solved in polynomial time. So if we know that a problem can not be solved in polynomial time, that problem is either not in NP or, if we can prove that it is indeed in NP, we just showed that NP != P.

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