Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Springer Nature Link
Log in

Approximating the discrete time-cost tradeoff problem with bounded depth

  • Full Length Paper
  • Series B
  • Open access
  • Published:

You have full access to thisopen access article

Mathematical Programming Submit manuscript

Abstract

We revisit the deadline version of the discrete time-cost tradeoff problem for the special case of bounded depth. Such instances occur for example in VLSI design. The depth of an instance is the number of jobs in a longest chain and is denoted byd. We prove new upper and lower bounds on the approximability. First we observe that the problem can be regarded as a special case of finding a minimum-weight vertex cover in ad-partite hypergraph. Next, we study the natural LP relaxation, which can be solved in polynomial time for fixedd and—for time-cost tradeoff instances—up to an arbitrarily small error in general. Improving on prior work of Lovász and of Aharoni, Holzman and Krivelevich, we describe a deterministic algorithm with approximation ratio slightly less than\(\frac{d}{2}\) for minimum-weight vertex cover ind-partite hypergraphs for fixedd and givend-partition. This is tight and yields also a\(\frac{d}{2}\)-approximation algorithm for general time-cost tradeoff instances, even ifd is not fixed. We also study the inapproximability and show that no better approximation ratio than\(\frac{d+2}{4}\) is possible, assuming the Unique Games Conjecture and\(\text {P}\ne \text {NP}\). This strengthens a result of Svensson [21], who showed that under the same assumptions no constant-factor approximation algorithm exists for general time-cost tradeoff instances (of unbounded depth). Previously, only APX-hardness was known for bounded depth.

Similar content being viewed by others

Use our pre-submission checklist

Avoid common mistakes on your manuscript.

1Introduction

The (deadline version of the discrete) time-cost tradeoff problem was introduced in the context of project planning and scheduling more than 60 years ago [16]. An instance of thetime-cost tradeoff problem consists of a finite setV of jobs, a partial order\((V,\prec )\), a deadline\(T>0\), and for every jobv a finite nonempty set\(S_v \subseteq {\mathbb {R}}_{\ge 0}^2\) of time/cost pairs. An element\((t,c) \in S_v\) corresponds to a possible choice of performing jobv with delayt and costc. The task is to choose a pair\((t_v,c_v) \in S_v\) for each\(v \in V\) such that\(\sum _{v \in P}t_v \le T\) for every chainP (equivalently: the jobs can be scheduled within a time interval of lengthT, respecting the precedence constraints), and the goal is to minimize\(\sum _{v \in V} c_v\).

The partial order can be described by an acyclic digraph\(G=(V,E)\), where\((v,w) \in E\) if and only if\(v \prec w\). Every chain of jobs corresponds to a path inG, and vice versa.

De et al. [6] proved that this problem is strongly NP-hard. Indeed, there is an approximation-preserving reduction from vertex cover [11], which implies that, unless\(\text {P}=\text {NP}\), there is no 1.3606-approximation algorithm [8]. Assuming the Unique Games Conjecture and\(\text {P}\ne \text {NP}\), Svensson [21] could show that no constant-factor approximation algorithm exists.

Even though the time-cost tradeoff problem has been extensively studied due to its numerous practical applications, only few positive results about approximation algorithms are known. Skutella [20] described an algorithm that works if all delays are natural numbers in the range\(\{0,\ldots ,l\}\) and returns anl-approximation. If one is willing to relax the deadline, one can use Skutella’s bicriteria approximation algorithm [20]. For a fixed parameter\(0<\mu <1\), it computes a solution in polynomial time such that the optimum cost is exceeded by a factor of at most\(\frac{1}{1-\mu }\) and the deadlineT is exceeded by a factor of at most\(\frac{1}{\mu }\). Unfortunately, for many applications, including VLSI design, relaxing the deadline is out of the question.

The instances of the time-cost tradeoff problem that arise in the context of VLSI design usually have a constant upper boundd on the number of jobs in any chain [5]. In these instances the jobs correspond to gates in a Boolean circuit. Gate delays can be accelerated by choosing a smaller threshold voltage, at the cost of a higher power consumption. These instances have bounded depth due to a given target frequency of the chip, which can only be achieved if the logic depth is bounded. For this important special case, we will describe better approximation algorithms.

The special case\(d=2\) reduces to weighted bipartite matching and can thus be solved optimally in polynomial time. However, already the case\(d=3\) is strongly NP-hard [6]. The case\(d=3\) is even APX-hard, because Deǐneko and Woeginger [7] devised an approximation-preserving reduction from vertex cover in cubic graphs (which is known to be APX-hard [2]).

On the other hand, it is easy to obtain ad-approximation algorithm: either by applying the Bar-Yehuda–Even algorithm for set covering [3,5] or (for fixedd) by simple LP rounding; see the end of Sect. 3.

As we will observe in Sect. 3, the time-cost tradeoff problem with depthd can be viewed as a special case of finding a minimum-weight vertex cover in ad-partite hypergraph. Lovász [19] studied the unweighted case and proved that the natural LP has integrality gap\(\frac{d}{2}\). Aharoni et al. [1] showed this ratio for more general unweighted hypergraphsFootnote1 by randomly rounding a given LP solution. Guruswami et al. [13] proved that approximating the vertex cover problem ind-partite hypergraphs with a better ratio than\(\frac{d}{2}-1+\frac{1}{2d}\) is NP-hard, and better than\(\frac{d}{2}\) is NP-hard if the Unique Games Conjecture holds.

2Results and outline

In this paper, we first reduce the time-cost tradeoff problem with depthd to finding a minimum-weight vertex cover in ad-partite hypergraph. Then we simplify and derandomize the LP rounding algorithm of Lovász [19] and Aharoni et al. [1] and show that it works for general nonnegative weights. This yields a simple deterministic\(\frac{d}{2}\)-approximation algorithm for minimum-weight vertex cover ind-partite hypergraphs for a givend-partition and a given LP solution. This implies a\(\frac{d}{2}\)-approximation algorithm for the time-cost tradeoff problem ifd is bounded by a constant, in particular if\(d\le 4\). For generald, we develop a slightly stronger bound for rounding the LP solution, making up for the fact that the vertex cover LP can only be solved approximately unlessd is fixed. This will imply our first main result:

Theorem 1

There is a polynomial-time\(\frac{d}{2}\)-approximation algorithm for the time-cost tradeoff problem, whered denotes the depth of the instance.

The algorithm is based on rounding an approximate solution to the vertex cover LP. The basic idea is quite simple: we partition the jobs into levels and carefully choose an individual threshold for every level, then we accelerate all jobs for which the LP solution is above the threshold of its level. For\(d\ge 5\) we get a solution that costs at most\((1-\Theta (\frac{1}{n}))\frac{d}{2}\) times the LP value, which is essentially best possible since the integrality gap tends to\(\frac{d}{2}\) as\(n\rightarrow \infty \); see [1] and Sect. 3. The small improvement over our simple\(\frac{d}{2}\) rounding algorithm compensates for solving the LP only approximately.

The results by [13] suggest that this approximation guarantee is essentially best possible for general instances of the vertex cover problem ind-partite hypergraphs. Still, better algorithms might exist for special cases such as the time-cost tradeoff problem. However, we show that much better approximation algorithms are unlikely to exist even for time-cost tradeoff instances. More precisely, we prove:

Theorem 2

Let\(d \in {\mathbb {N}}\) with\(d \ge 2\) and\(\rho <\frac{d+2}{4}\) be constants. Assuming the Unique Games Conjecture and\(\text {P}\ne \text {NP}\), there is no polynomial-time\(\rho \)-approximation algorithm for time-cost tradeoff instances with depthd.

This gives strong evidence that our approximation algorithm is best possible up to a factor of 2. To obtain our inapproximability result, we leverage Svensson’s theorem on the hardness of vertex deletion to destroy long paths in an acyclic digraph [21] and strengthen it to instances of bounded depth by a novel compression technique.

Section 3 introduces the vertex cover LP and explains why the time-cost tradeoff problem with depthd can be viewed as a special case of finding a minimum-weight vertex cover in ad-partite hypergraph. In Sect. 4 we describe our approximation algorithm, which rounds a solution to this LP. Then, in Sects. 5 and 6 we prove our inapproximability result.

3The vertex cover LP

Let us define thedepth of an instance of the time-cost tradeoff problem to be the number of jobs in the longest chain in\((V,\prec )\), or equivalently the number of vertices in the longest path in the associated acyclic digraph\(G=(V,E)\). We write\(n=|V|\), and the depth will be denoted byd throughout this paper.

First, we note that one can restrict attention to instances with a simple structure, where every job has only two alternatives and the task is to decide which jobs to accelerate. This has been observed already by Skutella [20]. The following definition describes the structure that we will work with.

Definition 3

An instanceI of the time-cost tradeoff problem is callednormalized if for each job\(v \in V\) the set of time/cost pairs is of the form\(S_v=\{(0,c),(t,0)\}\) for some\(c,t \in {\mathbb {R}}_+ \cup \{\infty \}\).

In a normalized instance, every job has only two possible ways of being executed. The slow execution is free and the fast execution has a delay of zero. Therefore, the time-cost tradeoff problem is equivalent to finding a subset\(F \subseteq V\) of jobs that are to be executed fast. The objective is to minimize the total cost of jobs inF. Note that for notational convenience we allow one of the alternatives to have infinite delay or cost, but of course such an alternative can never be chosen in a feasible solution of finite cost, and it could be as well excluded.

We call two instancesI and\(I'\) of the time-cost tradeoff problemequivalent if any feasible solution toI can be transformed in polynomial time to a feasible solution to\(I'\) with the same cost and vice-versa. We include a proof of Skutella’s observation for sake of completeness.

Proposition 4

(Skutella [20]) For any instanceI of the time-cost tradeoff problem one can construct an equivalent normalized instance\(I'\) of the same depth in polynomial time.

Proof

Letv be a job of instanceI with\(S_v=\{(t_1,c_1),\)\(\ldots ,(t_r,c_r)\}\). By sorting and removing dominated pairs, we may assume\(t_1< \ldots < t_r\) and\(c_1> \ldots > c_r\).

To construct\(I'\), we replacev by\(r+1\) copies\(v_0,v_1,\ldots ,v_r\) ofv, each with the same predecessors and successors asv. We define\(S_{v_i}:=\{(0,c_i-c_{i+1}),(t_{i+1},0)\}\), where\(c_0:= \infty \),\(c_{r+1}:=0\), and\(t_{r+1}:=\infty \).

As the slow alternatives of the copies\(v_i\) have increasing delay ini, an optimum solution always sets consecutive jobs\(v_j,v_{j+1},\ldots v_r\) to the fast solution. As the last slow solution has infinite delay and the first one has infinite cost,\(1\le j \le r\). Then the total cost atv is given by\(\sum _{i=j}^r \left( c_i-c_{i+1}\right) =c_j-c_{r+1}=c_j\). As accelerated jobs have delay 0, the longest path through a copy ofv is determined by\(v_{j-1}\), which has delay\(t_j\).

Note that it is easy to convert the corresponding solutions of both instances into each other in polynomial time.\(\square \)

The structure of only allowing two execution times per job gives rise to a useful property, as we will now see. As noted above, for a normalized instanceI the solutions correspond to subsets of jobs\(F \subseteq V\) to be accelerated. Consider the clutter\({\mathcal {C}}\) of inclusion-wise minimal feasible solutions toI. Denote by\({\mathcal {B}}=\text {bl}({\mathcal {C}})\) the blocker of\({\mathcal {C}}\), i.e., the clutter over the same ground setV whose members are minimal subsets of jobs that have nonempty intersection with every element of\({\mathcal {C}}\).

Let\(T > 0\) be the deadline of our normalized time-cost tradeoff instance. Furthermore, let\(t_v\) denote the slow delay of executing job\(v \in V\) and\(c_v\) denote the cost of accelerating it to delay 0. By the properties of a normalized instance, the elements of\({\mathcal {B}}\) are the minimal chains\(P \subseteq V\) with\(\sum _{v \in P}t_v > T\). The well-known fact that\(\text {bl}(\text {bl}({\mathcal {C}}))={\mathcal {C}}\) [9,14] immediately implies the next proposition, which also follows from an elementary calculation.

Proposition 5

A set\(F \subseteq V\) is a feasible solution to a normalized instanceI of the time-cost tradeoff problem if and only if\(P \cap F\ne \emptyset \) for all\(P \in {\mathcal {B}}\).\(\square \)

Therefore, our problem is to find a minimum-weight vertex cover in the hypergraph\((V, {\mathcal {B}})\). If our time-cost tradeoff instance has depthd, this hypergraph isd-partiteFootnote2 and ad-partition can be computed easily:

Proposition 6

Given a time-cost tradeoff instance with depthd, we can partition the set of jobs in polynomial time into sets\(V_1,\ldots ,V_d\) (calledlayers) such that\(v \prec w\) implies that\(v \in V_i\) and\(w \in V_j\) for some\(i<j\). Then,\(|P\cap V_i| \le 1\) for all\(P \in {\mathcal {B}}\) and\(i=1,\ldots ,d\).

Proof

Such a partition can be found by constructing the acyclic digraph\(G=(V,E)\) with\((v,w)\in E\) if and only if\(v\prec w\) and setting\(V_i:=\{v \in V: l(v)=i\}\), wherel(v) denotes the maximum number of vertices in any path inG that ends inv.\(\square \)

This also leads to a simple description as an integer linear program. The feasible solutions correspond to the vectors\(x \in \{0,1\}^V\) with\(\sum _{v \in P}x_v \ge 1\) for all\(P \in {\mathcal {B}}\). We consider the following linear programming relaxation, which we call thevertex cover LP:

$$\begin{aligned}&\text {minimize: } \quad \quad \sum _{v \in V} c_v \cdot x_v \nonumber \\&\text {subject to: } \quad \quad \sum _{v \in P} x_v\ge 1 \quad \quad ~~\text {for all } P \in {\mathcal {B}} \nonumber \\&\qquad \qquad \quad \quad \qquad x_v\ge 0 \qquad \qquad ~~\text {for all } v \in V. \end{aligned}$$
(1)

Let\(\text {LP}\) denote the value of this linear program (for a given instance). Unless P=NP, one cannot solve this linear program exactly in polynomial time:

Proposition 7

If the vertex cover LP (1) can be solved in polynomial time for normalized time-cost tradeoff instances, then\(\text {P}=\text {NP}\).

Proof

By the equivalence of optimization and separation [12], it suffices to show that the separation problem is NP-hard. In fact, we show that deciding whether a given vectorx is infeasible for a given instance is NP-complete. To this end, we transform thePartition problem, which is well known to be NP-complete: given a list\(a_1,\ldots ,a_n\) of positive integers, is there a subset\(I\subseteq \{1,\ldots ,n\}\) with\(\sum _{i\in I}a_i=\sum _{i\notin I}a_i\)? Given an instance\(a_1,\ldots ,a_n\) ofPartition, construct a normalized time-cost tradeoff instance withn jobs\(v_{i}\) (\(i=1,\ldots ,n\)), where\(v_{i}\prec v_{i'}\) whenever\(i<i'\). The fast execution time is 0 for all jobs, and the slow execution time is\(a_i\) for\(v_{i}\). The deadline is\(T:=\frac{A-1}{2}\), where\(A=\sum _{i=1}^n a_i\). Let\(x_{v_{i}}:=\frac{2a_i}{A+1}\). Thenx is a feasible solution to the LP if and only if for all subsets\(I\subseteq \{1,\ldots ,n\}\)\(\sum _{i\in I}a_i \le T\) or\(\sum _{i\in I} x_{v_{i}}\ge 1\), which means\(\sum _{i\in I}a_i \le \frac{A-1}{2}\) or\(\sum _{i\in I}a_i \ge \frac{A+1}{2}\), or equivalently\(\sum _{i\in I}a_i\ne \frac{A}{2}\).\(\square \)

However, we can solve the LP up to an arbitrarily small error; in fact, there is a fully polynomial approximation scheme (as essentially shown by [15]):

Proposition 8

For normalized instances of the time-cost tradeoff problem whose depth is bounded by a constant, the vertex cover LP (1) can be solved in polynomial time. For general normalized instances and any given\(\epsilon >0\), a feasible solution of cost at most\((1+\epsilon )\text {LP}\) can be found in time bounded by a polynomial inn and\(\frac{1}{\epsilon }\).

Proof

If the depth is bounded by a constantd, the number of constraints is bounded by the polynomial\(n^d\), so the first statement follows from any polynomial-time linear programming algorithm.

Otherwise, we solve the LP up to a factor\(1+\epsilon \) for any given\(0<\epsilon \le 1\) as follows. Implement an approximate separation oracle by first rounding up the components of a given vectorx to integer multiples of\(\frac{\epsilon }{2d}\) and then applying dynamic programming (similar to the knapsack problem) to check whether\(\sum _{v\in P} \frac{\epsilon }{2d} \lceil \frac{2d x_v}{\epsilon }\rceil \ge 1\) for all\(P\in {\mathcal {B}}\). If not, the oracle returns the violated constraint\(\sum _{v\in P} x_v\ge 1\). This oracle requires\({\mathcal {O}}(\frac{dn^2}{\epsilon })\) time.

Run the ellipsoid method with this oracle. It computes an optimum solutionx to a relaxed linear program that contains only the constraints returned by the approximate separation oracle. Hencex has cost at most\(\text {LP}\). Moreover,\((1+\epsilon )x\) is a feasible solution to the original LP (1) because for every\(P\in {\mathcal {B}}\) we have\(\frac{\epsilon }{2}+\sum _{v\in P} x_v \ge \sum _{v\in P} \bigl ( x_v+\frac{\epsilon }{2d} \bigr ) \ge 1\), implying\((1+\epsilon )\sum _{v\in P} x_v \ge (1+\epsilon )(1-\frac{\epsilon }{2}) \ge 1\).\(\square \)

We remark that thed-partite hypergraph vertex cover instances given by [1] can be also considered as normalized instances of the time-cost tradeoff problem; see Fig. 1. This shows that the integrality gap of LP (1) is at least\(\frac{d}{2}\).

Fig. 1
figure 1

For\(d=3\), the figure shows an instance of thed-partite hypergraph vertex cover problem given by [1], which can also be interpreted as a normalized instance of the time-cost tradeoff problem. We have a set\(V=\{(i,j) \,|\, i=1,\ldots , d,\, j=0,\,\ldots ,k\}\) of\(n=d(k+1)\) jobs for some\(k \in {\mathbb {N}}\), with\((i,j)\prec (i',j')\) whenever\(i< i'\). The deadline is given by\(T=\frac{dk}{2}\). The slow variant of job (ij) has delayj without any cost. By paying a cost of 1 the delay drops to 0. The above figure illustrates this for\(d=3\). One can easily verify that assigning vertex (ij) a fractional value of\(x_{(i,j)}=\frac{j}{T}\) is feasible with total cost\(k+1\). Let\(\tau _i\) be the number of vertices in\(V_i=\{(i,0), \ldots , (i,k)\}\) that an optimum solution accelerates. The delay of the slowest job in leveli is then at least\(k-\tau _i\), and we conclude that\(\sum _{i=1}^d (k-\tau _i) \le T\) and hence\(\sum _{i=1}^d\tau _i \ge d k -T = \frac{dk}{2}\). Therefore the integrality gap is at least\(\frac{d k/2}{k+1} \xrightarrow [k \rightarrow \infty ]{} \frac{d}{2}\)

Since\(|P|\le d\) for all\(P\in {\mathcal {B}}\), the Bar-Yehuda–Even algorithm [3] can be used to find an integral solution to the time-cost tradeoff instance of cost at most\(d\cdot \text {LP}\), and can be implemented to run in polynomial time because for integral vectorsx there is a linear-time separation oracle [5]. Ad-approximation can also be obtained by rounding up all\(x_v\ge \frac{1}{d}\).

In the following we will improve on this. From now on, we assume that we are given ad-partition of a hypergraph and an LP solution; for time-cost tradeoff instances we get this from Propositions 6 and 8.

4Rounding fractional vertex covers ind-partite hypergraphs

In this section, we show how to round a fractional vertex cover in ad-partite hypergraph\((V,{\mathcal {B}})\) with givend-partition\(\{V_1,\dots ,V_d\}\) and costs\(c_v\ge 0\) for\(v \in V\). Together with the results of the previous section, this yields an approximation algorithm for time-cost tradeoff instances and will prove Theorem 1.

Our algorithm does not need an explicit list of the edge set of the hypergraph, which is interesting ifd is not constant and there can be exponentially many hyperedges. The algorithm only requires the vertex set, ad-partition, and a feasible solution to the LP (a fractional vertex cover). For normalized instances of the time-cost tradeoff problem such a fractional vertex cover can be obtained as in Proposition 8, and ad-partition by Proposition 6.

Our algorithm is based on two previous works for the unweightedd-partite hypergraph vertex cover problem. For rounding a given fractional solution, Lovász [19] obtained a deterministic polynomial-time\((\frac{d}{2}+\epsilon )\)-approximation algorithm for any\(\epsilon >0\). Let us quickly sketch his idea.

First, Lovász showed that for all integers\(d\ge 2\) and\(w \ge 0\) there exists a matrix\(A_{d,w}=(a_{ij})_{i=1,\ldots ,d,j=0,\ldots ,w}\), with the properties:

  • each row of\(A_{d,w}\) is a permutation of\(\{0,\ldots ,w\}\) and

  • the sum of each column is at most\(\le \lceil \frac{dw}{2} \rceil \).

Now, for a fractional solutionx to thed-partite hypergraph vertex cover problem, a (large) constantC is chosen, such that\(x_v C \in {\mathbb {N}}\). The idea is to set\(w=\lfloor 2(C-1)/d \rfloor \). Then, for every\(j \in \{0,\ldots ,w\}\) we may obtain a feasible cover by rounding all\(x_v\) for\(v \in V_i\) to 1 if and only if\(x_v C > a_{ij}\) (where\(V_1,\ldots ,V_d\) is the givend-partition of our hypergraph). A simple analysis shows that returning the cheapest such cover is a\(\frac{d}{2}\frac{C}{C-1}\) approximation, which converges to\(\frac{d}{2}\) for\(C \rightarrow \infty \).

Based on this, Aharoni et al. [1] described a randomized recursive algorithm that works in more general unweighted hypergraphs. We simplify their algorithm ford-partite hypergraphs, which will allow us to obtain a deterministic polynomial-time algorithm that also works for the weighted problem and always computes a\(\frac{d}{2}\)-approximation. At the end of this section, we will slightly improve on this guarantee in order to compensate for an only approximate LP solution.

We will first describe the algorithm in the even simpler randomized form; then we will derandomize it. To compute the random thresholds, and to allow efficient derandomization later, Like Lovász’s, our algorithm computes a threshold for each layer to determine whether a variable\(x_v\) is rounded up or down. we will use a probability distribution with the following properties.

Lemma 9

There is a probability distribution that selects\(x \in [0, \frac{2}{9}], y \in [\frac{2}{9}, \frac{4}{9}], z \in [\frac{4}{9},\frac{6}{9}]\), such that\(x+y+z=1\) andxyz are uniformly distributed in their respective intervals.

Proof

Generate three random numbers in base 3,\(a=0.a_1a_2a_3,\ldots \),\(b=0.b_1b_2b_3,\ldots \),\(c=0.c_1c_2c_3,\ldots \), by randomly sampling digits\(\{a_i,b_i,c_i\}=\{0,1,2\}\) (that is, we select a random permutation of\(\{0,1,2\}\) to be thei-th digit of the three numbers). Let\(x'\) be the smallest number,\(y'\) the second smallest, and\(z'\) the largest number ofabc. It is easy to see, that\(x' \in [0, \frac{1}{3}]\),\(y' \in [\frac{1}{3},\frac{2}{3}]\) and\(z' \in [\frac{2}{3}, 1]\). Also by construction\(x'+y'+z'=\frac{3}{2}\). Setting\(x=\frac{2}{3}x', y=\frac{2}{3}y', z=\frac{2}{3}z'\) yields the desired result.\(\square \)

We remark that for implementing an algorithm that samples from this distribution, a different construction is more suitable. For example, one may start by selecting\(x \in [0, \frac{2}{9}]\) randomly, and then use a case distinction as illustrated in Fig. 2 to selecty randomly in a suitable subset of\([\frac{2}{9}, \frac{4}{9}]\). Finally, we may set\(z=1-x-y\). It is easy to verify that this also achieves the claimed properties.

Fig. 2
figure 2

Selecting a pair (xy) by uniformly sampling a point in the yellow area gives an example of how to choose random numbersxy (and\(z=1-x-y\)) as in Lemma 9

For our proof we will need to slightly generalize this distribution to an arbitrary number of elements.

Lemma 10

For any\(d \ge 2\), there is a probability distribution that selects\(a_1,\ldots ,a_d\), such that\(\sum _{i=1}^d a_i=1\) and\(a_i\) is uniformly distributed in\([\frac{2(i-1)}{d^2}, \frac{2i}{d^2}]\). For anyij such that\(|i-j| \ge 3\), the random variables corresponding to\(a_i\) and\(a_j\) are independent.

Proof

For\(d=2\) we can just choose\(a_1\) uniformly in\([0,\frac{1}{2}]\) and set\(a_2=1-a_1\). The case\(d=3\) follows from Lemma9. In general, note that the sum of the expectations of the\(a_i\) is\(\sum _{i=1}^d \frac{2i-1}{d^2}= 1\). Hence we can partition\(1,\ldots ,d\) into groups of two or three and apply the above with appropriate scaling and shifting.

More precisely, ifd is odd, we choosexyz according to Lemma9 and set\(a_1=\frac{9x}{d^2}\),\(a_2=\frac{9y}{d^2}\), and\(a_3=\frac{9z}{d^2}\). Then the remaining number of indices is even, and we group them into pairs; for indicesi and\(i+1\) we choose\(a_i\) uniformly in\([\frac{2(i-1)}{d^2}, \frac{2i}{d^2}]\) and set\(a_{i+1}:=\frac{4i}{d^2}-a_i\).\(\square \)

Theorem 11

Letx be a fractional vertex cover in ad-partite hypergraph\((V,{\mathcal {B}})\) with givend-partition. Let\(c_v \ge 0 \) for\(v \in V\). There is a randomized linear-time algorithm that computes an integral solution\({\bar{x}}\) of expected cost\({\mathbb {E}}[\sum _{v\in V}c_v\cdot {\bar{x}}_v] \le \frac{d}{2} \sum _{v\in V}c_v\cdot x_v\).

Proof

Let\(V_1,\ldots ,V_d\) be the givend-partition of our hypergraph\((V,{\mathcal {B}})\), so\(|P \cap V_i|\le 1\) for all\(i=1,\ldots ,d\) and every hyperedge\(P\in {\mathcal {B}}\). We write\(l(v)=i\) if\(v\in V_i\) and call\(V_i\) alayer of the given hypergraph.

Now consider the following randomized algorithm, which is also illustrated in Fig. 3: Choose a random permutation\(\sigma :\{1,\ldots ,d\}\rightarrow \{1,\ldots ,d\}\) and choose random numbers\(a_i\) uniformly distributed in\(\bigl [ \frac{2(\sigma (i)-1)}{d^2}, \frac{2\sigma (i)}{d^2} \bigr ]\) for\(i=1,\ldots ,d\) such that\(\sum _{i=1}^d a_i=1\), as constructed in Lemma 10. Then, for all\(v\in V\), set\(\bar{x}_v:=1\) if\(x_v\ge a_{l(v)}\) and\({\bar{x}}_v:=0\) if\(x_v<a_{l(v)}\).

To show that\({\bar{x}}\) is a feasible solution, observe that any hyperedge\(P\in {\mathcal {B}}\) has\(\sum _{v\in P} x_v\ge 1 = \sum _{i=1}^d a_i \ge \sum _{v\in P} a_{l(v)}\) and hence\(x_v\ge a_{l(v)}\) for some\(v\in P\).

It is also easy to see that the probability that\({\bar{x}}_v\) is set to 1 is exactly\(\min \{1,\frac{d}{2}x_v\}\). Indeed, if\(x_v\ge \frac{2}{d}\), we surely set\({\bar{x}}_v=1\). Otherwise,\(x_v\in \bigl [ \frac{2(j-1)}{d^2}, \frac{2j}{d^2} \bigr ]\) for some\(j\in \{1,\ldots ,d\}\); then we set\({\bar{x}}_v=1\) if and only if\(\sigma (l(v))<j\) or (\(\sigma (l(v))=j\) and\(a_{l(v)}\le x_v\)), which happens with probability\(\frac{j-1}{d} + \frac{1}{d} (x_v-\frac{2(j-1)}{d^2})\frac{d^2}{2}=\frac{d}{2}x_v\). Hence the expected cost\({\mathbb {E}}[\sum _{v\in V}c_v\cdot {\bar{x}}_v]\) is at most\(\frac{d}{2} \sum _{v\in V}c_v\cdot x_v\).\(\square \)

Fig. 3
figure 3

A sketch of thresholds\(a_1,\ldots ,a_5\) chosen by our randomized algorithm in Theorem 11 for the case\(d=5\). The circles represent vertices in the hypergraph, drawn by their position in the partition and the value of their corresponding variable in the LP. Suppose the permutation\((\sigma (1),\ldots ,\sigma (5))=(3,5,2,1,4)\) is chosen. Then the thresholds\(a_i\) are randomly chosen in the light blue intervals\(\bigl [ \frac{2(\sigma (i)-1)}{d^2}, \frac{2\sigma (i)}{d^2} \bigr ]\); moreover, the thresholds\(a_1,a_3,a_4\) are chosen independently of the thresholds\(a_2,a_5\), as indicated by their color. The points above the thresholds are filled; these variables are rounded up to 1, while the empty circles represent variables that are rounded down to 0. Finally, the figure also shows “slack” values\(s_1,\ldots ,s_5\), telling how much each threshold could be lowered without changing the solution returned by our algorithm. These will play a key role to improve the approximation guarantee in Theorem13

Now we derandomize this algorithm and show how to implement it in polynomial time.

Theorem 12

Letx be a fractional vertex cover in ad-partite hypergraph\((V,{\mathcal {B}})\) with givend-partition. Let\(c_v \ge 0 \) for\(v \in V\). There is a deterministic algorithm that computes an integral solution\({\bar{x}}\) of cost\(\sum _{v\in V}c_v\cdot {\bar{x}}_v \le \frac{d}{2} \sum _{v\in V}c_v\cdot x_v\) in time\({\mathcal {O}}(n^3)\).

Proof

We follow the notation of the previous proof. For a fixed value\(\sigma (i)=j\) and a random choice of\(a_i \in \bigl [ \frac{2(j-1)}{d^2}, \frac{2j}{d^2} \bigr ]\) we have the expected cost

$$\begin{aligned} {\mathbb {E}}\left[ {\bar{x}}_v \mid \sigma (i)=j \right] = \left\{ \begin{array}{ll} 0 &{}\quad \text {if } x_v < \frac{2(j-1)}{d^2}\\ x_v-\frac{2(j-1)}{d^2} \cdot \frac{d^2}{2} &{}\quad \text {if } x_v \in \bigl [ \frac{2(j-1)}{d^2}, \frac{2j}{d^2} \bigr ]\\ 1 &{}\quad \text {if } x_v > \frac{2j}{d^2} \end{array}\right. \end{aligned}$$

Let\(\rho (i,j):=\sum _{v \in V_i}c_v\cdot {\mathbb {E}}\left[ {\bar{x}}_v \mid \sigma (i)=j \right] \) be the total expected cost of layeri if we assign\(\sigma (i)=j\) in the random permutation. We compute a permutation\(\sigma \) that minimizes the total expected cost\(\sum _{i=1}^d \rho (i,\sigma (i))\); this is a minimum-cost perfect matching problem in a complete bipartite graph with\(d+d\) vertices. Hence this step can be implemented with a running time of\({\mathcal {O}}(d^3)\) [10,22].

Therefore, we may now assume that the permutation\(\sigma \) is fixed. The probability distribution described in Lemma 10 chooses the values\(a_i\) for\(i \in \{1,\ldots ,d\}\) independently for groups of two or three layers, with fixed sum\(S_I:=\sum _{i\in I}a_i\) for each such groupI. Setting\(a'_i=\max \{x_v:v\in V_i,\,x_v < a_i\}\), we see that the result in groupI depends only on the numbers\(a'_i\) (\(i\in I\)) and that there are less than\(n^3\) possibilities. Among all choices of the\(a'_i\) (\(i\in I\)) with\(\sum _{i\in I}a'_i<S_I\), we can thus choose an optimum one (with minimum\(\sum _{i\in I}\sum _{v\in V_i: x_v>a'_i}c_v\)) in\({\mathcal {O}}(n^3)\) time.\(\square \)

It is easy to improve the running time in Theorem 12 to\({\mathcal {O}}(d^3+n^2/d^2)\), but this is not important since already for time-cost tradeoff instances solving the LP dominates the overall running time of our approximation algorithm.

Since the vertex cover LP can be solved only approximately (Proposition 8), this would only yield an approximation ratio of\(\frac{d}{2}+\epsilon \) for the time-cost tradeoff problem (unlessd is fixed). In order to obtain a true\(\frac{d}{2}\)-approximation algorithm (and thus prove Theorem 1), we need a slightly stronger bound, which we derive next. Again, we first describe an improved randomized algorithm and then derandomize it.

Theorem 13

Let\(d\ge 4\). Letx be a fractional vertex cover in ad-partite hypergraph\((V,{\mathcal {B}})\) with givend-partition. Let\(c_v \ge 0 \) for\(v \in V\). There is a randomized linear-time algorithm that computes an integral solution\({\bar{x}}\) of expected cost\(\sum _{v\in V}c_v\cdot {\bar{x}}_v \le (\frac{d}{2}-\frac{d}{64n}) \sum _{v\in V}c_v\cdot x_v\).

Proof

First we choose the permutation\(\sigma \) and thresholds\(a_1,\ldots ,a_d\) with\(\sum _{i=1}^d a_i=1\) randomly as above such that the thresholds are independent except within groups of two or three. For\(i\in \{1,\ldots ,d\}\) denote theslack of leveli by\(s_i:=\min \{\frac{1}{d}, a_i,\, a_i - \max \{x_v: v\in V_i,\, x_v<a_i\}\}\). The slack is always non-negative. Lowering the threshold\(a_i\) by less than\(s_i\) would yield the same solution\({\bar{x}}\). The reason for cutting off the slack at\(\frac{1}{d}\) will become clear only below.

Next we randomly select one level\(\lambda \in \{1,\ldots ,d\}\). Let\(\Lambda \) be the corresponding group (cf. Lemma 10), i.e.,\(\lambda \in \Lambda \subseteq \{1,\ldots ,d\}\),\(|\Lambda |\le 3\), and\(a_i\) is independent of\(a_{\lambda }\) whenever\(i\notin \Lambda \). Now raise the threshold\(a_{\lambda }\) to\(a'_{\lambda }=a_{\lambda }+\sum _{i\notin \Lambda } s_i\). Set\(a'_i=a_i\) for\(i\in \{1,\ldots ,d\}\setminus \{\lambda \}\).

As before, for all\(v\in V\), set\({\bar{x}}_v:=1\) if\(x_v\ge a'_{l(v)}\) and\({\bar{x}}_v:=0\) if\(x_v<a'_{l(v)}\). We first observe that\({\bar{x}}\) is feasible. Indeed, if there were any hyperedge\(P\in {\mathcal {B}}\) with\(x_v<a'_{l(v)}\) for all\(v\in P\), we would get\(1 \le \sum _{v\in P} x_v < \sum _{v\in P:l(v)\notin \Lambda } (a_{l(v)} - s_{l(v)}) + \sum _{v\in P:l(v)\in \Lambda } a'_{\lambda } \le \sum _{i\notin \Lambda } (a_i - s_i) +\sum _{i\in \Lambda \setminus \{\lambda \}} a_i + a'_{\lambda } = \sum _{i=1}^d a_i = 1\), a contradiction.

We now bound the expected cost of\({\bar{x}}\). Let\(v\in V\). With probability\(\frac{d-1}{d}\) we have\(l(v)\not =\lambda \) and, conditioned on this, an expectation\({\mathbb {E}}\left[ {\bar{x}}_v \mid \lambda \not =l(v)\right] = \frac{d}{2}\min \{x_v,\frac{2}{d}\}\le \frac{d}{2}x_v\) as before. Now we condition on\(l(v)=\lambda \) and in addition, for anyS with\(0\le S\le \frac{d-2}{d}\), on\(\sum _{i\notin \Lambda } s_i=S\); note that\(a_{\lambda }\) is independent ofS. The probability that\({\bar{x}}_v\) is set to 1 is\(\frac{d}{2}\max \{0,\,\min \{x_v-S,\frac{2}{d}\}\} \le \frac{x_v}{\frac{2}{d}+S} \le \frac{d}{2}(1-S)x_v\) in this case. In the last inequality we used\(S\le \frac{d-2}{d}\), and this was the reason to cut off the slacks. In total we have for all\(v\in V\):

$$\begin{aligned} {\mathbb {E}}\left[ {\bar{x}}_v\right]&= \frac{d-1}{d} \cdot {\mathbb {E}}[{\bar{x}}_v \mid \lambda \not =l(v)] \\&\quad + \frac{1}{d} \cdot \int _{0}^{\frac{d-2}{d}} {\mathbb {P}}\left[ \sum _{i\notin \Lambda } s_i=S \mid \lambda =l(v)\right] \cdot {\mathbb {E}}\left[ {\bar{x}}_v \mid \lambda =l(v),\, \sum _{i\notin \Lambda } s_i=S \right] \text { d}S \\&\le \frac{d-1}{d} \cdot \frac{d}{2}x_v + \frac{1}{d} \cdot \int _{0}^{\frac{d-2}{d}} {\mathbb {P}}\left[ \sum _{i\notin \Lambda } s_i=S \mid \lambda =l(v)\right] \cdot \frac{d}{2}(1-S)x_v \text { d}S \\&\le \frac{d}{2} \left( 1 - \frac{1}{d} \int _{0}^{\frac{d-2}{d}} {\mathbb {P}}\left[ \sum _{i\notin \Lambda } s_i=S \mid \lambda =l(v)\right] \cdot S \text { d}S \right) \cdot x_v \\&= \frac{d}{2} \left( 1 - \frac{1}{d} \cdot {\mathbb {E}}\left[ S \mid \lambda =l(v)\right] \right) x_v. \end{aligned}$$

Let\(\Lambda [v]\) be the the set\(\Lambda \) in the event\(\lambda =l(v)\). We estimate

$$\begin{aligned} {\mathbb {E}}\left[ S\mid \lambda =l(v)\right] = \sum _{i\notin \Lambda (v)} {\mathbb {E}}\left[ s_i\right] \ge \sum _{i\notin \Lambda (v)} \frac{1}{d(n_i+1)} \ge \frac{(d-3)^2}{d(n+d)} \ge \frac{d}{32n}. \end{aligned}$$

Here\(n_i=|V_i|\), and the first inequality holds because\({\mathbb {E}}\left[ s_i\right] \) is maximal if\(\{x_v:v\in V_i\}=\{\frac{2j}{d(n_i+1)}: j=1,\ldots ,n_i\}\). We conclude\({\mathbb {E}}\left[ \sum _{v\in V}c_v\cdot {\bar{x}}_v\right] \le ( \frac{d}{2} - \frac{d}{64n} ) \sum _{v\in V}c_v\cdot x_v\).\(\square \)

Let us now derandomize this algorithm. This is easier than before because we can afford to lose a little again.

Theorem 14

Let\(d\ge 4\). Letx be a fractional vertex cover in ad-partite hypergraph with givend-partition. There is a deterministic algorithm that computes an integral solution\({\bar{x}}\) of cost\(\sum _{v\in V}c_v\cdot {\bar{x}}_v \le (\frac{d}{2}-\frac{d}{128n}) \sum _{v\in V}c_v\cdot x_v\) in time\({\mathcal {O}}(n^3)\).

Proof

Let again\(\text {LP}=\sum _{v\in V}c_v\cdot x_v\) denote the LP value. We first round down the costs to integer multiples of\(\frac{d\,\text {LP}}{128 n^2}\) by setting\(c'_v:= \lfloor \frac{128 n^2 c_v}{d\,\text {LP}} \rfloor \frac{d\,\text {LP}}{128 n^2}\) for\(v\in V\). Then we compute the best possible choice of threshold values\(a_i\) for\(i \in \{1, \ldots , d\}\) such that\(\sum _{j=1}^d a_j \le 1\) and\(\sum _{j=1}^d \sum _{v \in V_j, x_v \ge a_j}c'_v\) is minimized. This is a simple dynamic program (like for the knapsack problem) that runs in\({\mathcal {O}}(n^3)\) time. By Theorem 13 there is such a solution with cost\(\sum _{j=1}^d \sum _{v \in V_j, x_v \ge a_j}c'_v \le \sum _{j=1}^d \sum _{v \in V_j, x_v \ge a_j}c_v \le ( \frac{d}{2} - \frac{d}{64n} ) \text {LP}\). Hence the solution that we find costs\(\sum _{j=1}^d \sum _{v \in V_j, x_v \ge a_j}c_v < \sum _{j=1}^d \sum _{v \in V_j, x_v \ge a_j}c'_v + n\frac{d\,\text {LP}}{n^2} \le ( \frac{d}{2} - \frac{d}{64n} ) \text {LP} + \frac{d\,\text {LP}}{128n}\) as required.\(\square \)

As explained above, together with Propositions 6 and8 (with\(\epsilon =\frac{1}{128n}\)), Theorem14 implies Theorem 1.

5Inapproximability

Guruswami et al. [13] proved that approximating the vertex cover problem ind-partite hypergraphs with a better ratio than\(\frac{d}{2}\) is NP-hard under the Unique Games Conjecture. We show that even for the special case of time-cost tradeoff instances, the problem is hard to approximate by a factor of\(\frac{d+2}{4}\).

Note that this is really a special case: for example the 3-partite hypergraph with vertex set\(\{1,2,3,4,5,6\}\) and hyperedges\(\{1,4,6\}, \{2,3,6\}\), and\(\{2,4,5\}\) does not result from a time-cost tradeoff instance of depth 3 with our construction.Footnote3

Let us briefly sketch a technique of [13] and explain why it does not serve our purpose. Let\(d\ge k \ge 2\) be integers. One can reduce the vertex cover problem ink-uniform hypergraphs, i.e., for hypergraphs\(H=(U,F)\) such that\(|e|=k\) for all\(e \in F\), to thed-partite case. The idea is to taked disjoint copies of the vertex setU as the vertex set of a new hypergraphG. For every hyperedge\(e \in F\), the hypergraphG contains all hyperedges\(e'\) that contain exactly one copy of every vertex ine and at most one vertex of any of thed copies ofU. Clearly this hypergraphG isd-partite. It is easy to see that any optimal solution inG must contain either no or at least\(d-k+1\) of the copies of a vertex and there is always a vertex cover of size\(d\cdot \text {OPT}\), where\(\text {OPT}\) denotes the size of an optimum vertex cover inH. By a result of Khot and Regev [17], the vertex cover problem ink-uniform hypergraphs is NP-hard to approximate with a factor of\(k-\epsilon \) under the Unique Games Conjecture. Therefore, for any\(d \ge 4\), by letting\(k=\lceil \frac{d+1}{2} \rceil \), we obtain ad-partite hypergraph vertex-cover instance. From this, one can conclude that these instances do not admit a\(\frac{d}{4}\)-approximation algorithm (assuming the Unique Games Conjecture and P\(\ne \)NP). However, as indicated above, these instances are more general than those resulting from time-cost tradeoff instances of depthd. Nevertheless we will use some of these ideas below.

In this and the next section, we will show Theorem 2, which is our main inapproximability result. Instead of starting fromk-uniform hypergraphs, we devise a reduction from the vertex deletion problem in acyclic digraphs, which Svensson [21] called DVD.Footnote4 Letk be a positive integer; then\(\text {DVD}(k)\) is defined as follows: given an acyclic digraph, compute a minimum-cardinality set of vertices whose deletion destroys all paths withk vertices. This problem is easily seen to admit ak-approximation algorithm:

Lemma 15

For all\(k\ge 1\),\(\text {DVD}(k)\) admits ak-approximation algorithm.

Proof

Find a maximal set of vertex-disjoint paths, each withk vertices, and take the set of all their vertices.\(\square \)

Svensson proved that anything better than this simple approximation algorithm would solve the unique games problem:

Theorem 16

([21]) Let\(k \in {\mathbb {N}}\) with\(k \ge 2\) and\(\rho <k\) be constants. Let\(\text {OPT}\) denote the size of an optimum solution for a given\(\text {DVD}(k)\) instance. Assuming the Unique Games Conjecture it is NP-hard to compute a number\(l \in {\mathbb {R}}_+\) such that\(l \le \text {OPT} \le \rho l\).

This is the starting point of our proof. Svensson [21] already observed that\(\text {DVD}(k)\) can be regarded as a special case of the time-cost tradeoff problem. Note that this does not imply Theorem 2 because the hard instances of\(\text {DVD}(k)\) constructed in the proof of Theorem16 have unbounded depth even for fixedk. (Recall that thedepth of an acyclic digraph is the number of vertices in a longest path.) The following is a variant (and slight strengthening) of Svensson’s observation.

Fig. 4
figure 4

The transformation in Lemma 17. An instance of\(\text {DVD}(k)\) is transformed into an equivalent instance of the time-cost tradeoff problem. Jobs with fixed execution time are depicted as blue squares

Lemma 17

Any instance of\(\text {DVD}(k)\) (for anyk) can be transformed in linear time to an equivalent instance of the time-cost tradeoff problem, with the same depth and the same optimum value.

Proof

Let\(G=(V,E)\) be an instance of\(\text {DVD}(k)\), an acyclic digraph, say of depthd. Let\(l(v)\in \{1,\ldots ,d\}\) for\(v\in V\) such that\(l(v)<l(w)\) for all\((v,w)\in E\). Let\(J:=\{(v,i): v\in V,\, i\in \{1,\ldots ,d\}\}\) be the set of jobs of our time-cost tradeoff instance. Job (vi) must precede job (wj) if (\(v=w\) and\(i<j\)) or (\((v,w)\in E\) and\(l(v)\le i <j\)). Let\(\prec \) be the transitive closure of these precedence constraints. For\(v\in V\), the job (vl(v)) is calledvariable and has a fast execution time 0 at cost 1 and a slow execution time\(d+1\) at cost 0. All other jobs arefixed; they have a fixed execution timed at cost 0. The deadline is\(d^2+k-1\). A sketch of this construction is given in Fig. 4.

We claim that any set of variable jobs whose acceleration constitutes a feasible solution of this time-cost tradeoff instance corresponds to a set of vertices whose deletion destroys all paths inG withk vertices, and vice versa. Indeed, the total delay of a chain in the time-cost tradeoff instance is at most\((d-1)(d+1)\) unless the chain contains a job in each level and contains no variable job that is accelerated, in which case the total delay is\(d^2 + j\), wherej is the number of variable jobs in the chain. These chains with total delay\(d^2+j\) correspond to the paths withj vertices inG.\(\square \)

Therefore a hardness result for\(\text {DVD}(k)\) for bounded depth instances transfers to a hardness result for the time-cost tradeoff problem with bounded depth. We will show the following strengthening of Theorem 16:

Theorem 18

Let\(k,d \in {\mathbb {N}}\) with\(2\le k \le d\) and\(\rho <\frac{k(d+1-k)}{d}\) be constants. Let\(\text {OPT}\) denote the size of an optimum solution for a given\(\text {DVD}(k)\) instance. Assuming the Unique Games Conjecture it is NP-hard to compute a number\(l \in {\mathbb {R}}_+\) such that\(l \le \text {OPT} \le \rho l\).

It is easy to see that Theorem 18 and Lemma 17 imply Theorem 2. Indeed, let\(d\in {\mathbb {N}}\) with\(d\ge 2\) and\(\rho <\frac{d+2}{4}\), and suppose that a\(\rho \)-approximation algorithm\({\mathcal {A}}\) exists for time-cost tradeoff instances of depthd. Let\(k:=\lceil \frac{d+1}{2}\rceil \) and consider an instance of\(\text {DVD}(k)\) with depthd. Transform this instance to an equivalent time-cost tradeoff instance by Lemma17 and apply algorithm\({\mathcal {A}}\). This constitutes a\(\rho \)-approximation algorithm for\(\text {DVD}(k)\) with depthd. Since\(\rho <\frac{d+2}{4}\le \frac{k(d+1-k)}{d}\), Theorem18 then implies that the Unique Games Conjecture is false or\(\text {P}=\text {NP}\).Footnote5

It remains to prove Theorem 18, which will be the subject of the next section.

6Reducing vertex deletion to constant depth

In this section we prove Theorem18. The idea is to reduce the depth of a digraph by transforming it to another digraph with small depth but related vertex deletion number. Let\(k,d\in {\mathbb {N}}\) with\(2\le k\le d\), and letG be a digraph. We construct an acyclic digraph\(G^d\) of depth at mostd by taking the tensor product with the acyclic tournament ond vertices:\(G^d=(V^d,E^d)\), where\(V^d=V\times \{1,\ldots ,d\}\) and\(E^d=\{((v,i),(w,j)) : (v,w)\in E \text { and } i<j\}\). It is obvious that\(G^d\) has depthd. An example of this construction is depicted in Fig. 5. Here is our key lemma:

Fig. 5
figure 5

A directed path\(P_4\) and the graph tensor product with the acyclic tournament on 4 vertices. The colored vertices show a solution to the vertex deletion problems with\(k=2\)

Lemma 19

LetG be an acyclic directed graph and\(k,d\in {\mathbb {N}}\) with\(2\le k\le d\). If we denote by\(\text {OPT}(G,k)\) the minimum number of vertices ofG hitting all paths withk vertices, then

$$\begin{aligned} (d+1-k)\cdot \text {OPT}(G,k) \ \le \ \text {OPT}(G^d,k) \ \le \ d \cdot \text {OPT}(G,k). \end{aligned}$$
(2)

Lemma 19, together with Theorem16, immediately implies Theorem18: assuming a\(\rho \)-approximation algorithm for\(\text {DVD}(k)\) instances with depthd, with\(\rho <\frac{k(d+1-k)}{d}\), we can compute\(\text {OPT}(G,k)\) up to a factor less thank for any digraphG. By Theorem 16, this would contradict the Unique Games Conjecture or\(\text {P}\not =\text {NP}\).

Before we prove Lemma 19, let us give two examples that show that the bounds in (2) are sharp for alld andk, for infinitely many acyclic digraphs.

For the lower bound, consider the acyclic tournament\(D_n\) on the vertices\(1,\ldots ,n\). Obviously,\(\text {OPT}(D_n,k)=n-k+1\). Moreover,\(\text {OPT}(D_n^d,k) \le (d+1-k)(n-k+1)\) because\(\{(i,j): i=1,\ldots ,n-k+1,\, j=1,\ldots , d+1-k\}\) is a feasible solution for\(\text {DVD}(D_n^d,k)\).

Fig. 6
figure 6

Construction ofrd vertex-disjoint paths, each withk vertices, in\(P_{(r+1)k-1}^d\) for\(r=3\),\(d=5\), and\(k=3\). The edge sets corresponding to paths are highlighted in red

For the upper bound, consider the directed path\(P_n\) on the vertices\(1,\ldots ,n\), where\(n=(r+1)k-1\) for some\(r \in {\mathbb {N}}\). Obviously\(\text {OPT}(P_n,k)=r\) because\(\{k,2k,\ldots ,rk\}\) is a feasible solution. To show\(\text {OPT}(P_n^d,k) \ge rd\), we findrd vertex-disjoint paths in\(P_n^d\), each withk vertices: for\(i=1,\ldots ,r\) and\(j=1,\ldots ,d\), the vertex set of the\((di-d+j)\)-th path arises from\(\{(ki,j),(ki+1,j+1),\ldots ,(ki+k-1,j+k-1)\}\) by replacing\((s,d+t)\) by\((s-k+t,t)\) for all\(s,t\ge 1\). See Fig. 6.

We remark that the left inequality in (2) holds also for general (not necessarily acyclic) digraphs. However, for general digraphs it may be that\(\text {OPT}(G^d,k)>d \cdot \text {OPT}(G,k)\).

Finally, we prove Lemma 19.

Proof

(Lemma 19) LetG be an acyclic digraph. The upper bound in (2) is trivial: for any set\(W\subseteq V\) that hits allk-vertex paths inG we can take\(X:=W\times \{1,\ldots ,d\}\) to obtain a solution to the\(\text {DVD}(k)\) instance\(G^d\).

To show the lower bound, we fix a minimal solutionX to the\(\text {DVD}(k)\) instance\(G^d\). LetQ be a path in\(G^d\) with at mostk vertices. We write\(\text {start}(Q)=i\) ifQ begins in a vertex (vi). We define\({\mathcal {Q}}\) as the set of paths in\(G^d\) with exactlyk vertices. For\(Q\in {\mathcal {Q}}\) let\(\text {lasthit}(Q)\) denote the last vertex ofQ that belongs toX. For\(x\in X\) we define

$$\begin{aligned} \varphi (x) := \max \{\text {start}(Q): Q\in {\mathcal {Q}},\, \text {lasthit}(Q) = x\}. \end{aligned}$$

Note that this is well-defined due to the minimality ofX, and\(1\le \varphi (x) \le d+1-k\) for all\(x\in X\).

We will show that for\(j=1,\ldots ,d+1-k\),

$$\begin{aligned} S_j := \{v\in V: (v,i)\in X \text { and } \varphi ((v,i))=j \text { for some } i\in \{1,\ldots ,d\}\} \end{aligned}$$

hits allk-vertex paths inG. This shows the lower bound in (2) because then\(\text {OPT}(G,k)\le \min _{j=1}^{d+1-k} |S_j| \le \frac{|X|}{d+1-k}\).

LetP be a path inG withk vertices\(v_1,\ldots ,v_k\) in this order. Considerd “diagonal” copies\(D_1,\ldots ,D_d\) of (suffixes of)P in\(G^d\): the path\(D_i\) consists of the vertices\((v_s,s+i-k),\ldots ,(v_k,i)\), where\(s=\max \{1,k+1-i\}\). Note that the paths\(D_1,\ldots ,D_{k-1}\) have fewer thank vertices.

We show that for each\(j=1,\ldots ,d+1-k\), at least one of these diagonal paths contains a vertex\(x\in X\) with\(\varphi (x)=j\). This implies that\(S_j\cap P\not =\emptyset \) and concludes the proof.

First,\(D_d\) contains a vertex in\(x\in X\) with\(\varphi (x)=d+1-k\), namely\(\text {lasthit}(D_d)\). Now we show for\(i=1,\ldots ,d-1\) and\(j=1,\ldots ,d-k\):

Claim: If\(D_{i+1}\) contains a vertex\(x\in X\) with\(\varphi (x)=j+1\), then\(D_i\) contains a vertex\(x'\in X\) with\(\varphi (x')\ge j\).

This Claim implies the theorem because\(D_1\) consists of a single vertex\((v_k,1)\), and if it belongs toX, then\(\varphi ((v_k,1))=1\).

To prove the Claim (see Fig. 7 for an illustration), let\(x=(v_h,l(x))\in X\cap D_{i+1}\) and\(\varphi (x)\ge j+1\), and letx be the last such vertex on\(D_{i+1}\). We have\(\varphi (x)\ge \text {start}(D_{i+1})\) for otherwise we have\(\text {start}(D_{i+1})>1\), so\(D_{i+1}\) containsk vertices and we should have chosen\(x=\text {lasthit}(D_{i+1})\); note that\(\varphi (\text {lasthit}(D_{i+1}))\ge \text {start}(D_{i+1})\).

Let\(Q\in {\mathcal {Q}}\) be a path attaining the maximum in the definition of\(\varphi (x)\). So\(\text {start}(Q)=\varphi (x)\) and\(\text {lasthit}(Q)=x\). Supposex is thep-th vertex ofQ; note that

$$\begin{aligned} p \ \le \ 1+l(x)-\varphi (x) \end{aligned}$$
(3)

becauseQ starts on level\(\varphi (x)\), rises at least one level with every vertex, and reaches levell(x) at itsp-th vertex.

Now consider the following path\(Q'\). It begins with part of the diagonal\(D_i\), namely\((v_{h+1-p},l(x)-p),\ldots ,(v_h,l(x)-1)\), and continues with the\(k-p\) vertices from the part ofQ afterx. Note that by (3)

$$\begin{aligned} l(x)-p\ge \varphi (x)-1 \ge \max \{j,\text {start}(D_{i+1})-1\} \ge \max \{1,\text {start}(D_i)\}, \end{aligned}$$

so\(Q'\) is well-defined.

The second part of\(Q'\) does not contain any vertex fromX because\(\text {lasthit}(Q)=x\). Hence\(x':= \text {lasthit}(Q')\) is in the diagonal part of\(Q'\), i.e., in\(D_i\). By definition,\(\varphi (x')\ge \text {start}(Q')=l(x)-p \ge j\).\(\square \)

Fig. 7
figure 7

A visualization of the proof idea of the central Claim in the proof of Lemma 19. The Claim asserts that if\(D_{i+1}\) contains a vertex\(x\in X\) with\(\varphi (x)=j+1\), then\(D_i\) contains a vertex\(x'\in X\) with\(\varphi (x')\ge j\). The upper diagonal\(D_{i+1}\) is colored in light green, the lower diagonal\(D_i\) is depicted in dark green. We start by selecting a pathQ with\(\text {lasthit}(Q) \in D_{i+1}\) and\(\text {start}(Q)=j+1\). This path is depicted on the left; the vertex\(x=\text {lasthit}(Q)\) is highlighted in red. We construct a path\(Q'\) (shown on the right) such that\(x'=\text {lasthit}(Q') \in D_{i}\) and\(\text {start}(Q') = \text {start}(Q)-1\). This path\(Q'\) results from appending the end of pathQ to an appropriate subpath of the next lower diagonal\(D_i\)

7Conclusion

We showed a simple\(\frac{d}{2}\)-approximation algorithm for (the deadline version of the discrete) time-cost tradeoff problem, whered is the depth. We used a reduction to the minimum-weight vertex cover problem ind-partite hypergraphs and devised a deterministic algorithm that rounds a solution to the vertex cover LP. For this more general problem, it was known [13] that no better approximation ratio is possible, assuming the Unique Games Conjecture and\(\text {P}\not =\text {NP}\). We proved that — with the same assumptions — no better approximation ratio than\(\frac{d+2}{4}\) is possible for time-cost tradeoff instances. Closing the gap between\(\frac{d+2}{4}\) and\(\frac{d}{2}\) remains an open problem.

Notes

  1. They assume a partition\(\{V_1,\dots ,V_k\}\) of the vertex set and integers\(p_1,\dots ,p_k\) with\(\sum _{i=1}^kp_i=d\) such that every hyperedge contains at most\(p_i\) vertices of\(V_i\) for\(i=1,\dots ,k\).

  2. A hypergraph\((V, {\mathcal {B}})\) isd-partite if there exists a partition\(V = V_1{\dot{\cup }}V_2\dots {\dot{\cup }}V_d\) such that\(|P\cap V_i| \le 1\) for all\(P \in {\mathcal {B}}\) and\(i \in \{1,\dots , d\}\). We call\(\{V_1,\dots , V_d\}\) ad-partition. We do not require the hypergraph to bed-uniform.

  3. Assume we have an instance of the time-cost tradeoff instance on the same vertex set such that the minimal chains requiring speedup correspond to precisely these hyperedges. For\(v \in \{1,2,3,4,5,6\}\) let\(l(v) \in \{1,2,3\}\) denote the layer of jobv. Note that jobs 2, 4, and 6 must belong to distinct layers. Since the pairs (1, 2), (3, 4), and (5, 6) are symmetric (any permutation of these pairs yields an automorpishm of\((V,{\mathcal {B}})\)), we may assume without loss of generality\(l(2)<l(4)<l(6)\). Then\(l(1)=l(2)=1\),\(l(3)=l(4)=2\), and\(l(5)=l(6)=3\).

    But then\(\{1,4,5\}\) and\(\{2,4,6\}\) are chains, and their total delay equals the total delay of the chains\(\{1,4,6\}\) and\(\{2,4,5\}\). Since the latter two chains exceed the deadline, at least one of the former two chains must also exceed the deadline. This is a contradiction since neither\(\{1,4,5\}\) nor\(\{2,4,6\}\) nor any subset is in\({\mathcal {B}}\).

  4. An undirected version of this problem has been calledk-path vertex cover [4],vertex cover\(P_k\) [23], ork-path transversal [18] and admits an\({\mathcal {O}}(\log k)\)-approximation ifk is bounded by a constant [18].

  5. In fact, this proof shows that the threshold in Theorem 2 can be taken\(\frac{1}{4d}\) larger for oddd; e.g., there is no\(\rho \)-approximation algorithm for\(\rho <\frac{4}{3}\) for\(d=3\).

References

  1. Aharoni, R., Holzman, R., Krivelevich, M.: On a theorem of Lovász on covers in\(r\)-partite hypergraphs. Combinatorica16(2), 149–174 (1996)

    Article MathSciNet MATH  Google Scholar 

  2. Alimonti, P., Kann, V.: Some APX-completeness results for cubic graphs. Theoret. Comput. Sci.237(1–2), 123–134 (2000)

    Article MathSciNet MATH  Google Scholar 

  3. Bar-Yehuda, R., Even, S.: A linear-time approximation algorithm for the weighted vertex cover problem. J. Algorithms2(2), 198–203 (1981)

    Article MathSciNet MATH  Google Scholar 

  4. Brešar, B., Kardoš, F., Katrenič, J., Semanišin, G.: Minimum\(k\)-path vertex cover. Discret. Appl. Math.159(12), 1189–1195 (2011)

    Article MathSciNet MATH  Google Scholar 

  5. Daboul, S., Held, S., Vygen, J., Wittke, S.: An approximation algorithm for threshold voltage optimization. Trans. Des. Autom. Electron. Syst.23(6), 68 (2018)

    Google Scholar 

  6. De, P., Dunne, E.J., Ghosh, J.B., Wells, C.E.: Complexity of the discrete time-cost tradeoff problem for project networks. Oper. Res.45(2), 302–306 (1997)

    Article MathSciNet MATH  Google Scholar 

  7. Deǐneko, V.G., Woeginger, G.J.: Hardness of approximation of the discrete time-cost tradeoff problem. Oper. Res. Lett.29(5), 207–210 (2001)

    Article MathSciNet MATH  Google Scholar 

  8. Dinur, I., Safra, S.: On the hardness of approximating minimum vertex cover. Ann. Math.162(1), 439–485 (2005)

    Article MathSciNet MATH  Google Scholar 

  9. Edmonds, J., Fulkerson, D.R.: Bottleneck extrema. J. Combin. Theory8(3), 299–306 (1970)

    Article MathSciNet MATH  Google Scholar 

  10. Edmonds, J., Karp, R.M.: Theoretical improvements in algorithmic efficiency for network flow problems. J. ACM19, 248–264 (1972)

    Article MATH  Google Scholar 

  11. Grigoriev, A., Woeginger, G.J.: Project scheduling with irregular costs: complexity, approximability, and algorithms. Acta Informatica41(2), 83–97 (2004)

    Article MathSciNet MATH  Google Scholar 

  12. Grötschel, M., Lovász, L., Schrijver, A.: The ellipsoid method and its consequences in combinatorial optimization. Combinatorica1, 169–197 (1981)

    Article MathSciNet MATH  Google Scholar 

  13. Guruswami, V., Sachdeva, S., Saket, R.: Inapproximability of minimum vertex cover on\(k\)-uniform\(k\)-partite hypergraphs. SIAM J. Discret. Math.29(1), 36–58 (2015)

    Article MathSciNet MATH  Google Scholar 

  14. Isbell, J.R.: A class of simple games. Duke Math. J.25(3), 423–439 (1958)

    Article MathSciNet MATH  Google Scholar 

  15. Karmarkar, N., Karp, R.M.: An efficient approximation scheme for the one-dimensional bin-packing problem. In: Proceedings of the 23rd Annual IEEE Symposium on Foundations of Computer Science, pp. 312–320 (1982)

  16. Kelley, J.E., Walker, M.R.: Critical-path planning and scheduling. In: Proceedings of the AIEE-ACM ’59, pp. 160–173 (1959)

  17. Khot, S., Regev, O.: Vertex cover might be hard to approximate to within\(2-\epsilon \). J. Comput. Syst. Sci.74(3), 335–349 (2008)

    Article MathSciNet MATH  Google Scholar 

  18. Lee, E.: Partitioning a graph into small pieces with applications to path transversal. Math. Program.177, 1–19 (2019)

    Article MathSciNet MATH  Google Scholar 

  19. Lovász, L.: On minmax theorems of combinatorics, Doctoral Thesis (in Hungarian). Mathematikai Lapok26, 209–264 (1975)

    Google Scholar 

  20. Skutella, M.: Approximation algorithms for the discrete time-cost tradeoff problem. Math. Oper. Res.23(4), 909–929 (1998)

    Article MathSciNet MATH  Google Scholar 

  21. Svensson, O.: Hardness of vertex deletion and project scheduling. Theory Comput.9(24), 759–781 (2013)

    Article MathSciNet MATH  Google Scholar 

  22. Tomizawa, N.: On some techniques useful for solution of transportation network problems. Networks1(2), 173–194 (1971)

    Article MathSciNet MATH  Google Scholar 

  23. Tu, J., Zhou, W.: A primal-dual approximation algorithm for the vertex cover P3 problem. Theoret. Comput. Sci.412(50), 7044–7048 (2011)

    Article MathSciNet MATH  Google Scholar 

Download references

Acknowledgements

The authors thank Nikhil Bansal for fruitful discussions at an early stage of this project. We also thank the reviewers for helpful remarks.

Funding

Open Access funding enabled and organized by Projekt DEAL.

Author information

Authors and Affiliations

  1. Research Institute for Discrete Mathematics and Hausdorff Center for Mathematics, University of Bonn, Bonn, Germany

    Siad Daboul, Stephan Held & Jens Vygen

Authors
  1. Siad Daboul

    You can also search for this author inPubMed Google Scholar

  2. Stephan Held

    You can also search for this author inPubMed Google Scholar

  3. Jens Vygen

    You can also search for this author inPubMed Google Scholar

Corresponding author

Correspondence toStephan Held.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visithttp://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Daboul, S., Held, S. & Vygen, J. Approximating the discrete time-cost tradeoff problem with bounded depth.Math. Program.197, 529–547 (2023). https://doi.org/10.1007/s10107-022-01777-9

Download citation

Mathematics Subject Classification

Use our pre-submission checklist

Avoid common mistakes on your manuscript.

Advertisement


[8]ページ先頭

©2009-2025 Movatter.jp