关于NP完全问题的证明

· · 闲话

如题。

一、直接证明

引理:函数 f(x)=-|x|(x \in \textbf R) 的最大值为 0.

证明:

\forall x_1,x_2,~ 0 \le x_1 < x_2,~ f(x_2)-f(x_1)= -x_2+x_1<0 $\forall x_1,x_2,~x_1 < x_2 \le 0,~ f(x_2)-f(x_1)= x_2-x_1>0 $\therefore f(x)$ 在 $x=0$ 时取到最大值 $0$. 即 $max=0$. 原命题证明: $\because max=0,~F=ma~\therefore Fx=0

令 t>0 ,则 \frac{Fx}{t}=0

~\therefore P=0 ~\therefore NP=0 ~\therefore P=NP

证毕.

二、反证

假设 P \ne NP.

若 P=0,则 P=0=NP,命题不成立.

若 P \ne 0,则 N \ne \frac{P}{P}=1,N \ne 1

综上,命题不成立,即 $P=NP$. 证毕.