Theorem 2.25

Proof

Using the notion of polynomial-time Turing reducibility, it is not hard to show that the search problem of TSP that asks for the minimum-cost tour is equivalent to the above decision problem (see Exercise 2.18). Therefore, the search problem of TSP is also NP-hard. In the following, we show that the approximation to TSP is also NP-hard.

For each graph G with a cost function c on its edges, let c02-math-1529 denote the cost of a minimum-cost tour of G. We formulate the problem of approximation to TSP as the following search problem. Let r be a rational number with r ≥ 1.

r-APPROX-TSP: Given a complete graph c02-math-1534 with a cost function c02-math-1535, find a tour of G with the total cost c02-math-1537.

Theorem 2.26

Proof

An important subproblem of TSP is the traveling salesman problem satisfying the triangle inequality, that is, the problem whose cost function c satisfies

equation

for any three vertices c02-math-1569 of the graph G. For instance, if the input graph G is a Euclidean graph in the sense that its vertices are points in an Euclidean space Ek and the cost of an edge is the distance of the two end points in this space, then this cost function satisfies the triangle inequality.

Note that the graph G and its cost function c constructed in the reduction from HC to TSP of Theorem 2.25 do not satisfy the triangle inequality. Yet, it is easy to modify that proof to show that TSP with the triangle inequality restriction on the cost function is still NP-complete (see Exercise 2.17). On the other hand, the story is quite different when we consider the approximation to this restricted version of TSP. Namely, there exists a polynomial-time algorithm that solves the problem r-APPROX-TSP, for all c02-math-1576, on graphs having the triangle inequality. It is an open question whether this bound c02-math-1577 can be improved. Furthermore, if the graph G is a Euclidean graph on the two-dimensional plane E2, then there exist polynomial-time algorithm that solves the problem r-APPROX-TSP, for all r > 1. In the following, we present a polynomial-time approximation algorithm for c02-math-1582-APPROX-TSP on graphs satisfying the triangle inequality. We leave the problem r-APPROX-TSP for graphs on the Euclidean plane as an exercise (Exercise 2.19).

To establish this result, we first review three well-known problems that all are known to have polynomial-time solutions. Let c02-math-1584 be a connected graph. A spanning tree of the graph G is a subgraph c02-math-1586 with the same vertex set V such that T is a tree, that is, T is connected and contains no cycle. For a graph G with a cost function c on edges, the minimum spanning tree problem is to find a spanning tree T of G with the minimum total cost. The existence of a polynomial-time algorithm for the minimum spanning tree problem is well known (see, e.g., Aho, Hopcroft and Ullman (1974)).

Let c02-math-1594 be a complete graph of an even number of vertices and c a cost function on the edges. A matching of the graph G is a partition of the set V into c02-math-1598 subsets each of two vertices. The cost of a matching is the total cost of the edges connecting the vertices in the same subsets of the matching. The minimum matching problem is to find a minimum-cost matching of a given graph G with a cost function c. The minimum matching problem is polynomial-time solvable (Lawler, 1976).

A graph c02-math-1601 is an Eulerian graph if each vertex c02-math-1602 has a positive, even degree. An Eulerian circuit of a graph c02-math-1603 is a path that passes through each edge c02-math-1604 exactly once. The Eulerian circuit problem is to find anEulerian circuit for a given graph. This problem, although similar to the problem HC, has a simple solution in polynomial time. That is, a graph has an Eulerian circuit if and only if it is an Eulerian graph. In addition, there is a polynomial-time algorithm finding an Eulerian tour of any given Eulerian graph (Liu, 1968).

Now we are ready for the following result:

Theorem 2.27

Proof
image

Figure 2.3 (a) An Eulerian circuit; (b) a shortcut.

In the above, we have considered three variations of the problem TSP, namely, TSP on arbitrary graphs, TSP on graphs that satisfy the triangle inequality, and TSP on graphs on the Euclidean plane. We have seen that the optimization versions of these three variations of TSP are all NP-complete, but their approximation versions belong to three different complexity classes. Let us review these three complexity classes of approximation problems.

The first class consists of approximation problems that are NP-hard for all approximation ratios r > 1. The problem APPROX-TSP on arbitrary graphs belongs to this class.

The second class consists of approximation problems for each of which there exists a constant r0 such that the problem is NP-hard for all approximation ratios c02-math-1667 and is polynomial-time solvable for c02-math-1668. The problem APPROX-TSP on graphs satisfying the triangle inequality is a candidate of problems in the second class. We will see in Chapter 11 more approximation problems that belong to the first and second classes.

The third class consists of all approximation problems that are polynomial-time solvable for all ratios r > 1. Problems in the third class can be further classified into two subclasses. A problem may have, for each k ≥ 1, a polynomial-time algorithm Ak for the approximation ratio c02-math-1672, such that the runtime of the algorithm Ak is polynomial in the input size but superpolynomial in the parameter k. We say such a problem has a polynomial-time approximation scheme (PTAS). The problem APPROX-TSP on graphs on the Euclidean plane belongs to this subclass. A problem with a PTAS, although considered as polynomial-time approximable, is not feasibly solvable when we need good approximation with a small ratio r ≈ 1. Instead, we would like to have a fully polynomial-time approximation Scheme (FPTAS) A that takes a problem instance and an approximation parameter k as inputs and outputs an approximate solution with the approximation ratio c02-math-1678 in time polynomial in the instance size and the parameter k. Such a scheme would be the best we can expect, short of proving c02-math-1680. In the following, we demonstrate that the approximation version of the knapsack problem has an FPTAS.

KNAPSACK (KS): Given a list of positive integer pairs c02-math-1681, c02-math-1682 and an integer c02-math-1683, find the set c02-math-1684 that maximizes c02-math-1685, subject to the condition of c02-math-1686.

Intuitively, we say each ci is the cost of item i and vi is the value of item i, and the problem KS is to maximize the total value while keeping the total cost below a given bound B. The approximation version of the optimization problem KNAPSACK, called APPROX-KS, is to find, for a given list L, a given integer B, and a given rational r > 1, an index set c02-math-1695, such that c02-math-1696 and c02-math-1697, where c02-math-1698 is the maximum solution VI with respect to input (L,B). It is clear that the sum of subset problem SS is a subproblem of KS and, hence, KS is NP-hard.

Theorem 2.28

Proof

Remark

Exercises

2.1 A binary relation c02-math-1856 is called polynomially honest if there exists a polynomial function p such that c02-math-1858 only if c02-math-1859 and c02-math-1860. A function c02-math-1861 is polynomially honest if the relation c02-math-1862 is polynomially honest. Prove that c02-math-1863 is in NP if and only if c02-math-1864 for some polynomially honest function c02-math-1865.

2.2 For any set B, define c02-math-1867. Assume that c02-math-1868 such that for each x, c02-math-1870 for some polynomially honest relation c02-math-1871. Prove that c02-math-1872 and c02-math-1873. Under what conditions does the relation c02-math-1874 hold?

  1. a. Prove that if c02-math-1875, then c02-math-1876.
  2. Prove that if c02-math-1877, then c02-math-1878.

2.4 Assume that A is NP-complete and c02-math-1880. Prove that if c02-math-1881, then c02-math-1882 is NP-complete. What can you say about the complexity of c02-math-1883 if A and B are not known to be disjoint?

2.5 Prove that a nonempty finite set is NP-complete if and only if c02-math-1886.

2.6 Assume that set A has the following property: There exist a set c02-math-1888 and two polynomial functions p,q, such that for any string c02-math-1890, c02-math-1891 if and only if there are at least c02-math-1892 strings y of length c02-math-1894 satisfying c02-math-1895. Prove that c02-math-1896.

2.7 Let Fx be the Boolean formula constructed from an input x of length 2n in the proof of Cook's theorem and c02-math-1900 be the 3-CNF formula obtained from Fx by the reduction of Corollary 2.13. Show that the clauses of the formula c02-math-1902 can be labeled as c02-math-1903 so that the function c02-math-1904 is computable in time polynomial in n.

2.8 Prove that a DNF formula can be switched in polynomial time to a CNF formula, with possibly more variables, preserving satisfiability.

2.9 Prove that if c02-math-1906, then there is no polynomial-time algorithm that switches a CNF formula to a DNF formula preserving satisfiability.

2.10 Define 2-SAT to be the problem of determining whether a given 2-CNF formula, which is a CNF formula with each clause having at most two literals, is satisfiable. Prove that 2-SAT is in P.

2.11 For each of the following problems, prove that it is NP-complete.

  1. 1-IN-3-3SAT: Given a 3-CNF formula, determine whether there is a Boolean assignment that assigns the value TRUE to exactly one literal of each clause.
  2. NOT-ALL-EQUAL-3SAT: Given a 3-CNF formula, determine whether there is a Boolean assignment that assigns the value TRUE to at least one and at most two literals of each clause.
  3. 3-DIMENSIONAL MATCHING (3DM): Given three disjoint sets A,B, and C; each of n elements; and a set c02-math-1910, determine whether there is a subset c02-math-1911 of size n such that no two elements of T agree in any of three coordinates.
  4. SUBGRAPH ISOMORPHISM: Given two graphs G and H, determine whether G has a subgraph that is isomorphic to graph H.
  5. SET SPLITTING: Given a finite set S and a collection C of subsets of S, determine whether there is a partition of S into two subsets S1 and S2, such that no subset T in C is contained in either S1 or S2.

2.12 Formally define the notion of the computation of a function-oracle DTM and the notion of a function-oracle DTM computing a partial function g relative to a total function f.

2.13 Prove that if A is computable by an oracle TM M using oracle B, such that c02-math-1933 is bounded by a polynomial function p, then c02-math-1935. (That is, c02-math-1936 via some other oracle machine M1 that halts in polynomial time for all oracles.)

2.14 The polynomial-time Turing reducibility is often called an adaptive reducibility because the c02-math-1938th query made by an oracle machine M on an input x may depend on the answers to the first k queries. A nonadaptive version of the polynomial-time Turing reducibility works as follows: The oracle machine must determine all the queries it wants to ask before the first query is made, and then it presents all queries to the oracle together. Such a reducibility is called a polynomial-time truth-table reducibility and denoted by c02-math-1942. Formally, we define c02-math-1943 if there exists a function c02-math-1944 and a set c02-math-1945 such that for any x, c02-math-1947 if and only if c02-math-1948, where c02-math-1949 and χB is the characteristic function of set B.

  1. Prove that c02-math-1952.
  2. Prove that there exist sets A,B, such that c02-math-1954 but c02-math-1955.
  3. Prove that there exist sets C,D, such that c02-math-1957 but c02-math-1958.

2.15 An oracle TM M is called a positive oracle machine if for all oracles X, Y, c02-math-1962 implies c02-math-1963. We say that A is polynomial-time positive Turing reducible to B, denoted by c02-math-1966, if c02-math-1967 via a positive oracle machine M.

  1. Prove that NP is closed under the c02-math-1969-reducibility, that is, c02-math-1970 and c02-math-1971 imply c02-math-1972.
  2. Show that there exist sets A,B, such that c02-math-1974 but c02-math-1975.

2.16

  1. a. Using the first type of space measure for oracle TMs (i.e., the space measure that includes the space in the query tape), show that there exists a set A that is not log-space Turing reducible to itself.
  2. Using the second type of space measure for oracle TMs (i.e., the space measure that excludes the query tape while requiring the query tape to be write only), show that there exist sets A,B, such that c02-math-1978, c02-math-1979, but A is computable by a polynomial-space-bounded oracle machine with respect to the oracle B, that is, PSPACE is not closed under the polynomial-space Turing reducibility.
  3. Using the second type of space measure for oracle TMs, show that the polynomial-space Turing reducibility does not satisfy the transitivity property (and, hence, should not be called a reducibility).

2.17 Prove that the problem TSP on graphs that satisfy the triangle inequality is still NP-complete.

2.18 In this exercise, we consider the decision problem EXACT-TSP that asks, for a given weighted graph G and an integer K, whether the cost of a minimum-cost tour of G is exactly K and the search problem MIN-TSP that asks for a minimum-cost tour of a given weighted graph G.

  1. Show that EXACT-TSP is c02-math-1987-equivalent to TSP.
  2. Show that MIN-TSP is c02-math-1988-equivalent to TSP.
  3. The notion of polynomial-time many-one reducibility can be extended to functions. Namely, we say function ϕ is polynomial-time many-one reducible to function ψ if there exist two polynomial-time computable functions f and g such that for each x, c02-math-1994. Let MAX-3SAT be the problem that asks, for a given 3-CNF formula and a given weight function on clauses, to find the Boolean assignment that maximizes the weight of satisfied clauses. Show that MAX-3SAT is c02-math-1995-complete for the class c02-math-1996.
  4. Prove that MIN-TSP is c02-math-1997-complete for the class c02-math-1998 by reducing MAX-3SAT to MIN-TSP.

2.19 Prove that r-APPROX-TSP is polynomial-time solvable for all r > 1 when it is restricted to graphs on the two-dimensional Euclidean plane.

2.20 For each of the following optimization problems, first define a decision version of the problem, then prove that the search version is c02-math-2001-equivalent to the decision version and that the decision version is NP-complete.

  1. GRAPH COLORING (GCOLOR): Given a graph c02-math-2002, find a (coloring) function c02-math-2003 that uses the minimum number k of colors such that c02-math-2005 for any two adjacent vertices c02-math-2006.
  2. BIN PACKING (BP): Given a list of rational numbers c02-math-2007, with c02-math-2008, for each c02-math-2009, find a partition L into k parts c02-math-2012 such that the sum of each part Li, c02-math-2014, is at most 1 and the number k of parts is minimized.
  3. SHORTEST COMMON SUPERSTRING (SCS): Given a list of strings c02-math-2017 over a finite alphabet Σ, find the shortest string t such that each si is a substring of t.
  1. a. Prove that c02-math-2022-APPROX-GCOLOR is NP-hard.
  2. Prove that APPROX-BP has a PTAS.
  3. Prove that 3-APPROX-SCS is solvable in polynomial time.

2.22 In this problem, we explore the similarity between the computation of an NTM and the computation of an oracle DTM. Assume that M1 is an NTM in which each nondeterministic move has exactly two choices. Then, we can construct an oracle DTM M2 to simulate M1 as follows: On any input x, c02-math-2027 simulates c02-math-2028 deterministically; when M1 makes a nondeterministic move, M2 asks the oracle H whether y is in H, where y is a string encoding the computation of c02-math-2035 up to this point. It follows the first choice if and only if the answer to the query is YES.

  1. Assume that M1 is a polynomial-time NTM. Prove that there exists an oracle c02-math-2037 such that foreach x, c02-math-2039 if and only if c02-math-2040 accepts x in polynomial time.
  2. We say M2 is a robust oracle machine if for any oracle H, c02-math-2044, that is, the set of strings accepted by M2 does not depend on the oracle. Show that a set A is computable by a robust oracle machine M with the property that relative to some oracle H, c02-math-2049 always halts in polynomial time, if and only if c02-math-2050.

2.23 Determine the complexity of the following problem: Given a set of points on the first quadrant of the rectilinear plane (the plane with the rectilinear metric: c02-math-2051), find a minimum total-edge-length-directed tree rooted at the origin that connect the given points with edges in direction either to the right or upward.

When I feel like exercising,I just lie down until the feeling goes away.

—Robert M. Hutchins

Historical Notes

Many-one and Turing reducibilities are major tools in recursion theory. Rogers (1967) contains a complete treatment of these topics. The first natural NP-complete problem, SAT, was proved by Cook (1971), who used the polynomial-time Turing reducibility. Karp (1972) proved more natural NP-complete problems, including the problems VC, CLIQUE, IS, HC, IP, SS, PARTITION, KS, 3DM, and GCOLOR, under the polynomial-time many-one reducibility. Levin (1973) independently proved the NP-completeness of the tiling problem. Garey and Johnson (1979) collected several hundred NP-complete problems. They also included a discussion on the proof techniques to establish NP-completeness results. The problem TSP has been studied widely in literature. The approximation algorithm for TSP satisfying the triangle inequality is from Christofides (1976). The PTAS for TSP on two-dimensional Euclidean plane (Exercise 2.19) is from Arora (1996). The FPTAS for KS is from Ibarra and Kim (1975). Fora complete treatment of approximation algorithms, see Du, Ko, and Hu (2012).

The fact that 2-SAT is polynomial-time solvable was proved in Cook (1971). A number of variations of 3-SAT, including 1-IN-3-SAT and NOT-ALL-EQUAL-3SAT, are shown to be NP-complete in Schaefer (1978a). The problem SET SPLITTING was proved to be NP-complete by Lovasz (1973). Different notions of polynomial-time reducibilities have been compared in Ladner et al. (1975). Exercise 2.14 is taken from Ladner et al. (1975). The two models of space-bounded oracle machines discussed in Section 2.4 and other modifications have been studied by Ladner and Lynch (1976), Orponen (1983), Ruzzo et al. (1984), Buss (1986), and Wilson (1988). The nonapproximability results on GCOLOR can be found in Garey and Johnson (1976), Lund and Yannakakis (1994), and Khanna et al. (1993). Karmarkar and Karp (1982) gave a PTAS for BIN PACKING. See also Coffman et al. (1985) for a survey on BIN PACKING. The problem SHORTEST COMMON SUPERSTRING was first proved to be NP-complete by Maier and Storer (1977). The ratio-3 approximation algorithm was given by Blum et al. (1991), who also showed, by the results of Chapter 11, that r-APPROX-SCS is NP-hard for some r > 1. Exercise 2.22 is from Schöning (1985) and Ko (1987).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.211.92