⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 npcomplete.html

📁 数据结构词典(英文)
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD W3 HTML 2.0//EN">
<HTML lang="en-US">
<HEAD>
<TITLE>NP-complete</TITLE>
<META name="description"
  content="Definition of NP-complete,
	possibly with links to more information and implementations.">
<META name="keywords" content="NP-complete">
</HEAD>
<BODY BGCOLOR="#FFFFFF">

<H1>NP-complete</H1>
<P>
(definition)

<P>
<strong>Definition:</strong>
The class of problems for which answers can be checked for correctness by an algorithm whose run time is  <a href="polynomialtm.html" tppabs="http://hissa.nist.gov/dads/HTML/polynomialtm.html"><em>polynomial</em></a> in the size of the input (it is <a href="np.html" tppabs="http://hissa.nist.gov/dads/HTML/np.html"><em>NP</em></a>) and no other NP problem is more than a polynomial factor harder. Informally, a problem is NP-complete if answers can be verified quickly and a quick algorithm to solve this problem can be used to solve all other NP problems quickly.
<P><strong>See also</strong>
<a href="nphard.html" tppabs="http://hissa.nist.gov/dads/HTML/nphard.html"><em>NP-hard</em></a>, <a href="ap.html" tppabs="http://hissa.nist.gov/dads/HTML/ap.html"><em>AP</em></a>.
<P><em>Note:
A trivial example of NP, but not NP-complete is finding the <strong>AND</strong> of two boolean bits.  The problem is NP, since one can quickly verify that the answer is correct, but knowing how to <strong>AND</strong> two bits doesn't help one quickly find, say, a <a href="hamilcyc.html" tppabs="http://hissa.nist.gov/dads/HTML/hamilcyc.html"><em>Hamiltonian cycle</em></a> or tour of a graph.  So <strong>AND</strong> is not NP-complete.</em>
<P>Author: <a href="terms.html#authorPEB" tppabs="http://hissa.nist.gov/dads/terms.html#authorPEB">PEB</a>
<H2>More information</H2>
History, definitions, examples, etc. given in <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.unb.ca/%7Ealopez-o/comp-faq/faq.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.unb.ca/%7Ealopez-o/comp-faq/faq.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.unb.ca/%7Ealopez-o/comp-faq/faq.html">Comp.Theory FAQ</A>, scroll down to <strong>P vs. NP</strong>.

<hr>

Go to the
<A HREF="terms.html" tppabs="http://hissa.nist.gov/dads/terms.html">Algorithms, Data Structures, and Problems</A>
home page.

<hr>

If you have suggestions, corrections, or comments, please get in touch
with
<a href="javascript:if(confirm('http://hissa.nist.gov/~black/black.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://hissa.nist.gov/~black/black.html'" tppabs="http://hissa.nist.gov/~black/black.html">Paul E. Black</a>
&nbsp;(<a href="mailto:paul.black@nist.gov">paul.black@nist.gov</a>).

<p>
Entry modified Thu Oct  7 12:24:39 1999.<BR>
HTML page formatted Wed Dec 22 09:35:58 1999.

<P>
This page's URL is
<A href="npcomplete.html" tppabs="http://hissa.nist.gov/dads/HTML/npcomplete.html">http://hissa.nist.gov/dads/HTML/npcomplete.html</A>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -