Documente Academic
Documente Profesional
Documente Cultură
Introduction
NP-Hardness Proof
In this section we prove that the CDDWT problem is NP-hard by showing that
the corresponding decision problem is NP-complete. This decision problem can
be stated as follows: Given an instance Ji , pi , wi , di = d(1 i n) of the
CDDWT problem and a positive number P
y > 0, is there a processing order
n
= ((1), (2), ..., (n)) such that f () = i=1 w(i) T(i) y ?
To show that the decision problem of the CDDWT problem is NP-complete,
we use the NP-complete equal size 2-partition problem for our reduction. The
equal size 2-partition problem can be stated
P2t as follows: Given a set of 2t positive
integers A = {ai , a2 , ..., a2t } such that i=1 ai = 2B
there a partition
Pis even, is P
of A into A1 and A2 such that |A1 | = |A2 | = t and aiAi ai = aiA2 ai = B ?
Lemma 2.1 Suppose li , l2 , ..., lm are positive numbers. Then,
0<
m
X
li ) 2
li lj (
i=1
1ijm
1
m(m + 1)F 2 + (m + 1)F L <
2
Pm
i=1 li .
Then,
(F + li )(F + lj )
1ijm
1
m(m + 1)F 2 + (m + 1)F L + L2
2
Proof.
X
1
(F + li )(F + lj ) = m(m + 1)F 2 + (m + 1)F L +
2
1ijm
li lj
1ijm
The reduction can be done in polynomial time. We show in the following that
the instance of the equal size 2-partition problem has a solution if and only if
the instance of the decision problem has a solution.
Firts,Pif there is P
a partition of A into A1 and A2 such that | A1 |=| A2 |= t
and nAi ai = aiA2 ai = B, we define a processing order satisfying the
following conditions:
{J(i) |1 i t} = {Ji |ai Ai };
J(t+1) = Jn ;
{J(i) |t + 2 i n} = {Ji |ai A2 };
Since
t
X
p(i) =
ai Ai
i=1
pi =
aiA1
T(t+1+i)
1 i t.
j=1
Hence
n
X
f () =
w(i) T(i)
1=t+1
= T(t+1) (
n
X
i=t+1
= B3 +
n
X
w(i) ) +
P(i) w(j)
t+2ijn
P(i) +
i=t+2
P(i) P(j)
t+2ijn
a(i) =
i=t+a
ai = B,
aiA2
we can get
n
X
P(i) = d.
i=t+2
1ijt
pi < d,
when|S| < t;
pi > d,
when|S| > t.
JiS
X
JiS
pi =
JiS
JiS
pi =
JiS
P
Remark 2 There is no subset S {J1 , J2 , ..., J2t } such that JiS
P pi = d. In
fact, by Remark 1, if there is a subset {J1 , J2 , ..., J2t } such that JiS pi = d,
then |S| = t.
Since
X
JiS
pi =
JiS
= d 2B + 2
X
JiS
ai
JiS
ai
P
We
P have JiS
Pai = B. Define A1 = {ai |Ji S}. Then, |A1 | = |S| = t
and aiAi ai = JiS ai = B. This is contrary to our hypothesis that the
instance of the equal size 2-partition problem has no solution.
Now we begin to prove that the instance of the decision problem has no solution.
To do this, we only need to prove that f () > y for any processing order .
Given a processing order there are two possibilities for Jn , i.e. either Cn d
or Cn > d.
Case 1. Cn d.
Without loss of generality, we can suppose that Jn is the last job under
which does not cause tardiness. According to Remark 1, there are two possible
subcases:
either n = (t + 1) or n = (t).
Pt+2
If n = (t + 1), then T(t+2) > 2B 3 2B + 1 because C(t+2+i) = i=1 P(i) >
1 + (t + 1)(2B 3 ) = d + 2B 3 2B + 1. Denote li = 2a(t+2+i) , 1 i t 1, L =
Pt1
Pt1
3
i=1 li . From the fact that T(t+2) +
i=1 p(t+2+i) = d + 1 = 2tB + 2B + 1,
3
we have
1. Noting that d,pi (1 i 2t) are all even,
Pn T(t+2) + L = 2B + 2B + P
n
and i=t P(i) d + 1. we have i=t+2 P(i) d + 2. Hence, according to
Lemma 2.2, we have
f () =
n
X
w(i) T(i)
i=t+2
= T(t+2) (
n
X
i=t+2
= T(t+2) (
w(i) ) +
n
X
P(t+2+i) W(t+2+j)
1ijt1
P(i) ) +
i=t+2
T(t+2) (d + 2) +
P(t+2+i) P(t+2+j)
1ijt1
(2B 3 + li )(2B 3 + lj )
1ijt1
3
f () =
n
X
w(i) T(i)
i=t+1
= T(t+1) (
n
X
i=t+1
= T(t+1) (
n
X
w(i) ) +
P(t+1+i) w(t+1+j)
1ijt
P(t+i) ) +
i=t+1
P(t+1+i) P(t+1+j)
1ijt
(2B 3 + li )(2B 3 + lj )
1ijt
3
(j) = (j),
for
i < i0 ;
for
j > j0 ;
for
i0 k j0
(i0) = (j0) = n;
(k + 1) = (k),
for
i < i0 ;
T (j) = T(j) ,
for
j > j0 ;
T (k+1) = T(k) + 1,
for
i 0 k j0
Hence
f ( ) f () =
j01
X
k=i0
j01
X
p(k) B 3 (1 + T(i0) +
k=i0
j01
X
p(k) )
k=i0+1
p(i0) B 3 (1 + T(i0) )
2B 3 + 2a(i0) B 3 (1 + 2)
< 4B B 3 < 0
Conclusion Remarks
The general weighted tardiness problem has three sets of parameters: processing times, weights, and due dates. There are 8 variations, depending on which
(maybe any) of these parameters are common for all jobs. The complexity of
the 8 cases are shown as follows.
(1)The (general) weighted tardiness problem is NP-hard.
(2)The weighted tardiness problem with common weight is NP-hard.
(3)The weighted tardiness problem with common due date is NP-hard.
(4)The weighted tardiness problem with common processing time is in class P.
(5)The weighted tardiness problem with common weight and common due date
is in class P.
(6)The weighted tardiness problem with common weight and common processing time is in class P.
(7)The weighted tardiness problem with common due date an common processing time is in class P.
(8)The weighted tardiness problem with common parameters is clearly in class
P.