跳到正文

闲话

关于NP完全问题的证明

wsinb约 1 分钟
原文
文章信息与版本

文章信息

发布
2023年12月13日
收录
2025年12月12日
更新
2026年11月14日
篇幅
约 1 分钟
获赞
3

版本

  1. v1当前

如题。

一、直接证明

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

证明:

∀x1,x2, 0≤x1<x2, f(x2)−f(x1)=−x2+x1<0\forall x_1,x_2,~ 0 \le x_1 < x_2,~ f(x_2)-f(x_1)= -x_2+x_1<0

∴f(x)\therefore f(x) 在 [0,+∞)[0,+\infty) 上单调递减.

∀x1,x2, x1<x2≤0, f(x2)−f(x1)=x2−x1>0\forall x_1,x_2,~x_1 < x_2 \le 0,~ f(x_2)-f(x_1)= x_2-x_1>0

∴f(x)\therefore f(x) 在 (−∞,0](-\infty,0] 上单调递增.

∴f(x)\therefore f(x) 在 x=0x=0 时取到最大值 00.

即 max=0max=0.

原命题证明:

∵max=0, F=ma ∴Fx=0\because max=0,~F=ma~\therefore Fx=0

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

 ∴P=0~\therefore P=0

 ∴NP=0~\therefore NP=0

 ∴P=NP~\therefore P=NP

证毕.

二、反证

假设 P≠NPP \ne NP.

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

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

∵1∈N ∴\because 1 \in \textbf N~\therefore 命题不成立.

综上,命题不成立,即 P=NPP=NP.

证毕.

原文