zoukankan      html  css  js  c++  java
  • Computability 6: Reducibility

    1. Many-One Reducibility

      A problem is a set of numbers in computability theory.

      Problem $A$ is said to be m-reducible to problem $B$ ($Aleq_m B$) iff there exists a total computable function $f$ such that $xin ALeftrightarrow f(x)in B$. This is the so-called m-reduction.

      Given $Aleq_m B$, we have known that:

      (i) if $B$ is recursive, then $A$ must be recursive;

      (ii) if $B$ is r.e., then $A$ must be r.e.;

      (iii) if $A$ is productive, then $B$ must be productive;

      (iv) if $A$ is creative and $B$ is r.e., then $B$ must be creative.

      Problem $A$ is r.e. iff $Aleq_m K$. An r.e. set is m-complete if every r.e. set is m-reducible to it. Thus, $K$ is one of m-complete sets.

      (Myhill's Theorem) A set is m-complete iff it is creative.

      Two sets $A$ and $B$ are many-one equivalent ($Aequiv_m B$) iff both $Aleq_m B$ and $Bleq_m A$ hold. Many-one equivalence is an equivalence relation since it is reflexive, symmetric and transitive. We define the equivalence class of a problem $A$ based on $equiv_m$ as $d_m(A)={B ext{ | } ext{ }Aequiv_m B}$, which is known as m-degree.

      Given two m-degrees $mathbf{a}$ and $mathbf{b}$, we further define $mathbf{a}leq_mmathbf{b}$ iff $(exists A_1in mathbf{a})(exists B_1inmathbf{b})(A_1leq_m B_1) $ and $(forall A_2inmathbf{a})(forall B_2inmathbf{b})(B_2 leqslant_m A_2) $. This is a partial order on m-degrees since it is transitive and irreflexive.

      In the picture above, $o={varnothing}$, $n={mathbb{N}}$, $mathbf{0}_m={A ext{ | }A ext{ is recursive}}$, and $mathbf{0}_m'=d_m(K)$. All m-degrees form a join-semilattice since for any $mathbf{a}$ and $mathbf{b}$, if we pick $Ainmathbf{a}$ and $Binmathbf{b}$, there will exist $d_m(Aoplus B)$ as the least upper bound of $mathbf{a}$ and $mathbf{b}$. About lattice, we give the following picture as a refresher.

      

    2. Polynomial-Time Reducibility

      A function $f$ is polynomial-time computed by a program $P$ iff there exists some constants $c$ and $k$ such that for any instance $n$, $f(n)$ is computed by $P(n)$ within $ccdot n^k$ steps.

      A problem is polynomial-time decidable iff it is polynomial-time partially decidable.

      A problem $A$ is poly-reducible to another problem $B$ ($Aleq_P B$) iff there exists a polynomial-time total computable function $f$ such that $A(n)Leftrightarrow B(f(n))$.

      A decision problem is a P problem iff there is a polynomial-time algorithm to solve it.

      A decision problem belongs to NP iff there is a polynomial-time certifier for it. A certifier checks a certificate related to the problem. A P problem must be an NP problem, but whether P=NP is still unknown (probably not).

      An NP-Hard problem is a problem to which any NP problem is poly-reducible. An NP-Complete problem is a problem that belongs to both NP and NP-Hard. From the definition of poly-reducibility, we can deduce that if $Aleq_P B$:

      (1) $B$ belongs to NPC implies $A$ belongs to NP;

      (2) if $A$ is NPC and $B$ is NP, then $B$ is NPC.

      P=NP iff there exists an NPC problem that is polynomial-time solvable. Here are some famous NPC problems:

     

    References:

      1. Cutland, Nigel. Computability: an introduction to recursive function theory[M]. Cambridge: Cambridge University Press, 1980

      2. Cormen, T. H. et al. Introduction to Algorithms [M] .  北京:机械工业出版社, 2006-09

  • 相关阅读:
    注意力机制的命名实体识别
    tfidf_CountVectorizer 与 TfidfTransformer 保存和测试
    转载:UML学习(三)-----序列图(silent)
    转载:UML学习(二)-----类图(silent)
    转载:UML学习(一)-----用例图 (silent)
    转载:Practical UML™: A Hands-On Introduction for Developers
    转载:gc的概念,如果A和B对象循环引用,是否可以被GC?
    转载:Java高并发,如何解决,什么方式解决
    转载:消息队列应用场景
    转载:详解Java 自动装箱与拆箱的实现原理
  • 原文地址:https://www.cnblogs.com/DevinZ/p/4539855.html
Copyright © 2011-2022 走看看