Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
34.2-10
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberZHG committed Jan 23, 2018
1 parent 026ab9e commit f856202
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Chapter_34_NP-Completeness/exercises_34.2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,28 @@
"\n",
"$\\text{P} \\subseteq \\text{co-NP}$"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 34.2-10\n",
"\n",
"> Prove that if $\\text{NP} \\ne \\text{co-NP}$, then $\\text{P} \\ne \\text{NP}$."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Prove the contrapositive.\n",
"\n",
"Suppose $\\text{P} = \\text{NP}$:\n",
"\n",
"* $\\forall L \\in \\text{NP}$ $\\Rightarrow$ $L \\in \\text{P}$ $\\Rightarrow$ $\\overline{L} \\in \\text{P}$ $\\Rightarrow$ $L \\in \\text{co-NP}$\n",
"* $\\forall L \\in \\text{co-NP}$ $\\Rightarrow$ $\\overline{L} \\in \\text{NP}$ $\\Rightarrow$ $\\overline{L} \\in \\text{P}$ $\\Rightarrow$ $L \\in \\text{P}$\n",
"* $\\Rightarrow$ $\\text{NP} = \\text{co-NP}$."
]
}
],
"metadata": {
Expand Down

0 comments on commit f856202

Please sign in to comment.