algorithms-ch8: P, NP, NP-Hard a

作者: 暗黑破坏球嘿哈 | 来源:发表于2016-04-24 17:32 被阅读50次

概念

  • Search Problem(eg:SAT)
    search problem can be verified in polynomial time is NP (all search problem is NP); search problem can be solved in polynomial time is P

  • Search problem is NP-complete: if all other search problems reduce to it.

  • Decision Problem
    A decision problem is a problem whose answer is YES or NO

  • P (Polynomial time)
    The class P is the set of all decision problems that can be solved in polynomial time in the size of their encoding (ie. polynomial number of operations)

  • NP (Nondeterministic Polynomial time)
    The set of all decision problem such that if the answer is YES then there is a certificate of validity that can be checked in polynomial time in the size of their input (a yes answer for a decision problem can be verified in polynomial time)

  • co-NP
    The set of all decision problem such that if the answer is NO then there is a certificate of validity that can be checked in polynomial time in the size of their input (a no answer for a decision problem can be verified in polynomial time)

定理各种

  • Theorem1: P is a subset of NP. Also, P is a subset of co-NP
    (But it is not known if P=NP or if NP=co-NP)

  • Polynomial time reducibility
    A decision problem P1 is polynomially reducible to a decision problem P2 (if given any instance of P1 we can convert it to an instance of P2 in polynomial time), so that P1 is true if and only if P2 is true.
    We write P1=<P2, which means that P1 is at least as hard as P2.

  • NP-Completeness(CNF-SAT, cli)
    A decision problem P is NP-Complete if two conditions are satisfies:(1) It is NP; (2) Every other problem P' in NP is polynomially reducible to P.

相关文章

  • algorithms-ch8: P, NP, NP-Hard a

    概念 Search Problem(eg:SAT)search problem can be verified i...

  • NP-Hard

    N、P、NP-Hard、NP-Complete // TODO

  • P问题、NP问题、NPC、NP-Hard、P=NP?

    目录 时间复杂度与多项式时间 确定性算法与非确定性算法 判定性问题 规约/约化 P问题 NP问题 NPC问题 P=...

  • P, NP, NPC 和 NP-Hard

    所有的参考来自:What are the differences between NP, NP-Complete ...

  • P, NP, NP-complete, NP-hard问题对比

    左图在假设P≠NP的情况下有效,右图在假设P=NP的情况下有效 在假定P≠NP的情况下, 有 NP问题:可以在多项...

  • NP-hard

    旅行推销员问题是NP-Hard问题。 就是要在去到一堆目标城市的过程中,选择最优的路线。 在生活中我们往住采取实用...

  • CUC-SUMMER-9-D

    D - NP-Hard Problem Codeforces Round #360 (Div. 1) Recent...

  • NP-hard问题

    1.概念 P问题就是指该问题能在多项式复杂度内解决。 NP问题就是指该问题能在多项式复杂度内被验证。 复杂度一般用...

  • 禁忌搜索算法浅析

    姓名:刘家沐 学号:19011210553 网络来源,有删减 【嵌牛导读】:针对TSP问题等类似的NP-hard ...

  • 常用的启发式算法

    什么是启发式算法 启发式算法一般用于解决NP-hard问题,其中NP是指非确定性多项式。 例如,著名的推销员旅行问...

网友评论

    本文标题:algorithms-ch8: P, NP, NP-Hard a

    本文链接:https://www.haomeiwen.com/subject/ypsfrttx.html