Nondeterministic Complexity
ハミルトン経路問題とは?
ハミルトン経路とは、グラフ内の各頂点をちょうど一度だけ訪れる経路です。HAMPATH決定問題は「与えられたグラフGと2つの頂点s、tに対して、sからtへのハミルトン経路は存在するか?」を問います。
これはハミルトン経路問題が計算量クラスNP(非決定性多項式時間)に属することを示す証明です。 クラスNPに属しているかを示すためには 問題がクラスNPへ所属していることを示す標準的な手法を教えて下さい。
Theorem: Proof: “On input (Say has nodes)
- Nondeterministically write a sequence of nodes.
- Accepts if
- each () is an edge and no repeats.
- Rejects if any condition falls.”
certificate
NP = All languages where can verify membership quickly P = All languages where can test membership quickly