Complexity results for scheduling tasks in fixed intervals on
two types of machines
Citation for published version (APA):
Nakajima, K., Hakimi, S. L., & Lenstra, J. K. (1982). Complexity results for scheduling tasks in fixed intervals on two types of machines. SIAM Journal on Computing, 11(3), 512-520. https://doi.org/10.1137/0211040
DOI:
10.1137/0211040
Document status and date: Published: 01/01/1982 Document Version:
Publisher’s PDF, also known as Version of Record (includes final page, issue and volume numbers) Please check the document version of this publication:
• A submitted manuscript is the version of the article upon submission and before peer-review. There can be important differences between the submitted version and the official published version of record. People interested in the research are advised to contact the author for the final version of the publication, or visit the DOI to the publisher's website.
• The final author version and the galley proof are versions of the publication after peer review.
• The final published version features the final layout of the paper including the volume, issue and page numbers.
Link to publication
General rights
Copyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners and it is a condition of accessing publications that users recognise and abide by the legal requirements associated with these rights. • Users may download and print one copy of any publication from the public portal for the purpose of private study or research. • You may not further distribute the material or use it for any profit-making activity or commercial gain
• You may freely distribute the URL identifying the publication in the public portal.
If the publication is distributed under the terms of Article 25fa of the Dutch Copyright Act, indicated by the “Taverne” license above, please follow below link for the End User Agreement:
www.tue.nl/taverne Take down policy
If you believe that this document breaches copyright please contact us at: openaccess@tue.nl
providing details and we will investigate your claim.
COMPLEXITY RESULTS FOR SCHEDULING TASKS
INFIXED
INTERVALS
ON
TWOTYPES
OFMACHINES*
K. NAKAJIMA,t S. L. HAKIMI,, AND J. K. LENSTRA
Abstract. Supposethatnindependent tasks aretobe scheduledwithoutpreemption on anunlimited
number ofparallelmachines of twotypes: inexpensiveslow machinesand expensive fastmachines.Each
task requires a given processing time ona slow machine or agivensmaller processingtime on a fast machine.Wemaketwodifferentfeasibility assumptions: (a)each task hasaspecified processing interval, thelength ofwhich isequaltothe processingtimeonaslow machine;(b)each taskhasaspecified starting
time.Foreitherproblem type, wewish to find a feasiblescheduleof minimum total machine cost. Itis
shown that bothproblems are NP-hardinthe strong sense. Theseresults arecomplemented by polynomial algorithms forsomespecial cases.
Keywords, parallel machines,tasks, release dates, deadlines, computational complexity, NP-hardness, polynomial algorithm
1. Introduction. Webeginby considering the following problem.
Suppose
there are ntasksT,
T,
and an unlimited number of identicalparallelmachines. Each taskT.
requiresagivenprocessing timep and istobe executedwithout interruptionbetween agivenrelease date
r
and a given deadlined
r
+
pi.The tasksare independent in the sense that there are no precedence constraints between them. Each machine can execute any task, but no more than one at a time. The problem is to find the minimum number ofmachines neededtoexecute all tasksaswell as acorresponding schedule of the tasks on the machines.Thisproblemisknown asthe"fixedjob scheduleproblem"
[6]
andas the "channel assignment problem"[8], [9],
[10].
Ithas applications in such diverse areasasvehiclescheduling
[2],
[15],
machine scheduling[6,
[8],
and computer wiring[8], [9], [10].
As
a special case ofDilworth’s chaindecompositionproblem, it is solvable inO(n
2)
time by the staircase rule of Ford and Fulkerson
[3,
p.65]
andby the step-function methodof GertsbakhandStern[6].
Hashimoto andStevens
[9],
[10]
presentedsome interesting graph theoretical approaches to the problem and proposed anO(n2.)
algorithm, for which Kernighan, Schweikert and Persky
[12]
gave anO(n
logn)
implementation. Recently,Gupta,
Lee andLeung
[8]
independently developed adifferent
O(n
logn)
algorithm and also showed that any solution method for the problem requiresf(nlogn)
time.In
thispaperwe willconsider a natural generalization of thisproblemwhichhas potential applications in the scheduling areas mentioned above. Again, there are nindependent tasks T1," ’,
Tn,
but there are two types of machines: slow machinesofcost C and
fast
machines ofcost C>
C.
Each taskT.
requires a processingtime pi on a slow machine orq(<p)
on a fast machine and is to be executed withoutinterruption between its release date
r
anditsdeadlined
=r
+
p. It is assumed that all numerical problem data are integers.In
a feasible schedule, the tasks assigned *Receivedby theeditorsJuly30,1979, andin final revisedform September9, 1981.Thisresearch wassupportedinpart by theNational Science Foundationunder grant ENG79-09724.f ComputerScienceDivision,DepartmentofElectricalEngineering,TexasTech University, Lubbock,
Texas79409. FormerlyatDepartment of ElectricalEngineering and Computer Science, Northwestern University,Evanston,Illinois60201.
tDepartmentof ElectricalEngineering andComputerScience, Northwestern University,Evanston,
Illinois60201.
MathematischCentrum,Amsterdam, the Netherlands. 512
SCHEDULING TASKS IN FIXED INTERVALS 513
to slow machines have to start at their release dates in order to meet their
dead-lines.
For
the tasksT
assigned to fast machines, we make two different feasibility assumptions:(a) VST
(variablestartingtimes):T.
maystart atanytime intheinverval[r.,
dj qj];(b)
FST(fixed
startingtimes):T.
hasto start at timer.
A
schedule using m slowmachineandmrfastmachines has totalcostrnSC +
rnrC
.
For
either problem type,we wish to find a feasible schedule ofminimum total cost.In
2 we show that the VST problem is NP-hard[1], [4],
[5], [11],
even if all release dates areequal.In
3weextend our techniquestoprove that theFSTproblemis NP-hard in the case of arbitrary release dates; the case of equal release dates is
trivially solvable in
O(n)
time. The NP-hardness results are"strong" [4], [5]
in the sense thatthey hold even withrespect to aunary encoding of the data; this implies that there exists nopseudopolynomial algorithm for these problems unless f9W.
In
4 and 5 we considerthe special case that q 1, ] 1,...,n.We
presentO(n
logn)
algorithms for theVSTproblemwithequal release dates and for theFSTproblemwitharbitrary releasedates, respectively.
TABLE
Summaryofcomplexity results
p.arbitrary q.arbitrary
r.
arbitrary NP-hard ( 2) Open VST rjequal NP-hard ( 2) O(nlogn) ( 4) rjarbitrary NP-hard O(nlogn) FST ( 3) O(n) ( 5) O(n)r.
equal (3) (3)These results represent an almost complete complexity classification of the
problemclass under consideration, as demonstrated by Table 1. 2. NP-hardness of theVSTproblem.
THEOREM 1. The VST problemis NP-hardin the strongsense,even
if
allreleasedates areequal.
Our
proofholds for the case thatCr/C
3 andpffq
3, ] 1,.,
n.Theorem1 dominates apreviousresult,stating that the
VST
problemisNP-hard inthe strong sense if the release dates are arbitrary,Cr/C
is anarbitraryconstantbetween 1 and7,andpffqi 4,j
1,...,
n[17].
Proof of
Theorem 1.We
have to show that a problem which is known to beNP-complete in the strong sense is (pseudopolynomially) reducible to the
VST
problem.
Our
starting pointwillbethe following problem[5,
p.224,[SP15]]:
3-PARTITION: Given a set $
{1,..., 3t}
and positive integers al,’ ’,a3t,b with4X-b
<
a
<
1/2b,/"
S,
ands
a
tb,does thereexist apartition of Sinto disjoint 3-element subsetsSl,,
St
such thatY’4s,
ai b, 1,,
t?Given any instance of 3-PARTITION, we construct, in (pseudo-) polynomial time,acorresponding instance of theVSTproblemwithequal release dates as follows"
1. The costcoefficients are definedby
C
1, Cr 3. 2. There are 4t tasks:a-tasks
T.,j S,
withr
0,p
6a,
q
2a,
We claim that 3-PARTITION has a solution if and only if there exists a feasible
schedulewithtotalcost at most
C*
3t.Suppose
that3-PARTITION hasa solution{$1, ’,St}.
Itispossibleto construct a feasible schedule for all tasks on fast machinesM(,...,
M,
r as follows (cf. Fig.1)"
foreach e{1,.
,
t},
machineM
processes the three tasksT.,
] Si, in non’de-creasing order ofq
value in the interval[0, 2b],
and the taskT
b in[2b, 3b];
notethatthe startingtimeof each task falls withinthe requiredinterval. Thetotalcostof thisschedule isequalto tC
r=
C*.
Conversely, suppose that there exists a feasible schedule withtotalcost at most
C*=
3t. No slow machine can process more than one task. No fast machine canprocess more than four tasks, since the completion time of the fourth task will be larger than 2b and the starting time ofa fifth task should be no larger than 2b. Let
there be m slow machines and mr fast machines.
We
have, by the hypothesis,m
+
3mr<-3tand,by the above arguments,m >-4t-4mr.
Thefirstinequality implies thatmr-<_ and thetwotogether imply thatmr>_- t.We
conclude thatmr t. Itfollows that there arenoslowmachinesand fast machines, each processing four tasks.Instance of 3-PARTITION"
,t 3; b 25; ] 2 3 4 5 6 7 8 9
t, 7 7 7 8 8 8 9 10 11 Solution’ {{1,2,9}, {3,4,8},{5,6,7}}
Corresponding VST schedule on t fast machines"
FXG. 1. Illustrationo[thetranfformationinTheorem 1.
None of these fast machines can processmore than one b-task, since otherwise
the completion time of the fourth task would be larger than 3b.
It
follows that theithfastmachineprocessesexactlyoneb-task andthree a-tasks
T,/"
E$i, withs,
q’
-<2b.Since
Y.s
q’
2tb,wehaveY.s,
q
2b, 1,..,
t.Thecollection{$1,",
St}
constitutesasolutionto3-PARTITION. F13. NP-hardnessofthe
FST
problem.THEOREM2. The FSTproblemisNP-hardin thestrongsense.
THEOREM3. The FST problemissolvablein
O(n
timeif
all release datesareequal. OurNP-hardnessproofholds for the case thatCr/C
(t
+
2)/(t
+
1)
andpi/qiz,] 1,...,n, where and z are input variables. Theorem 2 is. still true if
Cr/C
isan arbitraryconstantbetween2 and 3 andp/q
2,]
1,..,
n[16];
the proofof thisfurther refinement is quiteinvolved.Theorem3 shows that the NP-hardness result cannot beextendedtothe case of equal releasedates, unlessSCHEDULING TASKS IN FIXED INTERVALS 515
Proof of
Theorem 2.We
will start from the following strongly NP-complete problem[5,
p.224,[SP17]]:
NUMERICAL
MATCHING WITH TARGET
SUMS. Givena set${1,
,
t}
and positive integers al,"’,a,, bl,... ,bt, c,"’,ct with
Yis(ai+bi)=Y.gsCi,
do thereexistpermutationsaand/3
of$suchthata(i)+
b,)
ci, S?We may assume without loss of generality that a <...
<
at,b <’"<
bt
andca <
<
ct.Further,wewill assumethatforanyinstance of thisproblem thereexists apositive integer z such thatz
<aa
<
<at
<2z<ba
<
<bt
<3z<ca
<
<ct
<5z.(If
this doesnothold, thendefinez max{at
+
1,bt +
1}
and set ag ag+
z,bi
be +
2z,cg cg
+
3z,S.) We
will usethenotation$’={1,.
,
t-1}.
Givenany instance of
NUMERICAL
MATCHINGWITH TARGET
SUMSweconstruct,in(pseudo-)polynomial time,acorresponding instanceof the
FST
problemasfollows:
1. Thecostcoefficients aredefinedby C
+
1, Cr+
2. 2. Thereare2tz+
tasks:a-tasks
T,
$, b-tasksTg,
hS,
S, c-tasksTT,
S,
d-tasksTi,
hS’,
6S,
withr
O,
withri
ah, withr
ci, withri
2z+
zbi, P zai, q ai,pbhi
zbi,qi
bi,Z3 2
pi=3
q=3z,
d 3 d 2
phi Z qhi Z
We claimthat NUMERICAL MATCHING
WITH
TARGETSUMS has a solution ifand onlyifthereexists a feasibleschedulewithtotalcost at mostC*
3+
z+
t.Suppose
that thematching problemhasa solution(a,/3).
Itispossibletoconstruct afeasible schedule for all taskson fastmachines
M{,
$, andz-
slow machinesM,g,
heS’,
eS,
asfollows(cf.
Fig.2)"
for each e $,machineM{
processesthetasksb
2]
T(g),
T(i)(i), Ti
in the intervals[0, a(i)], [a(i),
a(i)+ bt3(/)],
[ci,ci+
3z(note
thata(i)
+
b,(i) ci), and each of the t-1 machinesMShi, hS’,
processes one of the t-1 tasksT,i,
hS-{a(-(i))},
in[ah,
ah+
zbi] and one of the t-1 tasksT’i,
hS’,
in[2z
+
zbi,2z+
zbi
+
z3]
(notethat ah< 2Z).
The total cost of thisschedule is equal totCf
+
(t
2-t)CC*.
Conversely, suppose that there exists afeasible schedule with total cost at most
C*.
Wemake the following propositions.PROPOSITION 1.
Two
a-tasksarenotassignedtothesamemachine.Proof.
Each a-taskisprocessedduring theinterval[0,
z].
PROPOSITION 2.
Two
b-tasksarenotassignedtothesame machine.Proof.
Eachb-task is processedduring the interval[2z,
3z].
PROPOSITION 3.
Two
c- ord-tasksarenotassignedtothesamemachine.Proof.
Eachc- ord-taskis processedduring theinterval[32
"2+
z, 3z2+
32’].
PROPOSITION4.
An
a-taskandab-taskarenotassignedtothesameslowmachine.Proof.
On a slow machine, each a- or b-task is processed during the interval[2z-l,z+z].
PROPOSITION5.
A
b-taskandac-taskarenotassignedtothesameslowmachine.Proof.
On a slow machine, each b- or c-task is processed during the interval[5z
1, 2z+
2z+
1].
All tasks are assignedto at most machines,since
(t
z+
1)C >
C*.
Propositions1, 2 and 3 imply that there are exactly 2 machines, each processing at most one
Instance of NUMERICAL
MACHING
WITH TARGET SUMS" t 3; z 4; i Solution-2 3 5 6 7 91011 14 16 18 2 3 2 3Corresponding FST schedule on t fast machines and
Z2_Z
slowmachines-0 5 14 0 6 16 0 7 6 7 5 5 62
c’48
T 64c’48
T 2 18 66 42 44 108 4344 45 48 47 48%’
II
49 52 50 52T11
"64T2
"64-]
108T22
"64 112 1 2 116 116FIG. 2. IllustrationofthetransformationinTheorem 2.
most fast ones,since
(t
2-t-1)C
+
(t
+
1)cf>
C*.
Propositions4and 5 imply thatthere are exactly fast machines, each processing one a-task, one b-task and one
c-task; hence, there are exactly 2- slow machines, each processing one b-task and
oned-task.
We
denote the fast machines byM,(,
ES,
and thet=-t
slow machines byMShi,
heS’,
eS. It may be assumed thatT7
is assigned toM(,
eS,
andThd
to Mhi, hS’,
S. There exists a permutation a of S such thatT<i)
is assigned toMfi,
isS.Letusdefinethesizeof
Taxi
as bi,itsprocessingtime on afast machine. Thesizeof a b-task on
M/f
is at most ci-a(i), and the size of a b-task onMhi
is at most[(2z
+
zbi-a)/zJ
bi.
Thesum of these upper bounds over allmachines isequal tos
(c- a(i))
+
s’,
sb
,s
b, which is the totalsizeof all b-tasks. It follows thatalltheseupperbounds are actually achieved.More
explicitly, for each sS,
thereexists anindex/3(i) Ssuchthat
T(i),<i)
isassignedtoM,f.,
and there exists anindexSCHEDULING TASKS IN FIXED INTERVALS 517
M
hi,hS’,
whileb
Tv(i)g is assigned to afast machine. Thisimplies that the functions
/3
and 3’ arepermutations ofS withy(/3(i))= a(i),S.
Since
Tb(g)t(g
leaves no idle time betweenT(i
andT
onM,
we have a(i+
bt(g ci,S.
The pair(a,/3)
constitutes asolutiontothe matching problem.Proof
ol
Theorem 3.In
theFSTproblemwithequalrelease dates, each task hasto start at the same time and therefore each machine can process at most one task.
It follows that an optimal schedule uses n slow machines andhas total cost nC
s.
It isconstructedinO(n)
time.4.
A
well-solvablecase of theVSTproblem.THEOREM4.
In
thecase thatqj 1, 1,.,
n, the VST problemissolvable inO(n
logn)
timeif
allrelease datesareequal.The complexity of the VST problem with all qj 1 and arbitrary release dates remainsunresolved(cf. Table
1).
Proof of
Theorem 4.In
theVST
problemwithequalreleasedates,aslow machine canprocessat most onetask butafastmachinemaybe abletoprocessmore thanone. Letusassume that there arem fast machines, with 0 _<-m<=
n, and letX,
denote themaximum numberout ofthe n unit-time tasks that can be completedintime on these machines.A
schedule usingm fastmachines hasto use n-X,, slow machines;its totalcost is equal to C, mC
+(n-X,)C
.
Itfollows that an optimal schedule has totalcostmino__<,,_<_{C.,}.
For each given value of m, the number X,, and acorresponding schedule on
rh
fastmachines canbefoundby an
O(n
logn)
algorithm from Lawler[14], [7,
p.295].
Straightforward application of this algorithm forrn 0,..,
n would yield an overall optimal schedule inO(n
2log
n)
time.However,
allXo,
’,Xn
togethercanbe determinedbyanO(n
logn)
algorithm,whichconstructsaschedule on n fast machineswiththe property that,for anyvalue of m, the partialscheduleonthefirstrnmachines isanoptimalscheduleonm machines
[13].
This algorithm considers the tasks in order of nondecreasing deadlines and assigns each task to the machine with lowest index onwhich it canbe completed intime.
A
formalstatement is as follows.VST
ALGORITHM (onlyfast
machines, allqi 1, allriO)
Initialize. Reorder the tasks in suchawaythat d -<
=<
d,;setdo
-.
Intro-duce an array x ofsize n and set x,, 0, rn 1,..,
nIx,,
tasks have been assignedtomachineMr,,,
].
Introduce anarray/x of size n
[T
willbe assignedtoMt,
]. Set
rn 1.Iterate.
for j 1 ton dobegin
set m -ifdi_l
<di
then 1 elseifx.
<
d.
then m elsem+
1; settzi m,xm
xm +
1end.
Finalize. Set
Xo*-
0;for m 1 ton dosetX,
X,_+
x,.It can be shown that
X,
is the maximumnumber of tasks that can be completed in time on m fast machines, for m=0,...,n[13].
The algorithm requiresO(n
logn)
time to order the tasks, and
O(n)
time to construct the schedule and to determine the valuesXo,’",X,. It
follows that an overall optimal schedule is obtained inO(n
logn)
time. []Note.
Since x,,_->x,+,
rn 1,..., n-l,X, is a concave function of m, so thatC,
isconvex.A
similarobservation will beexploited in the next section.5.
A
well-solvablecase of theFST
problem.THEOREM 5.
In
thecase thatqi1,/"
1,.,
n, the FST problemis solvableinO(n
logn)
time.The assumption thatallq 1 istoostrong" an analysis of theproofbelow shows thatour algorithm is applicable in the more generalsituation that theq/are bounded from above by the minimum length of the interval between two different adjacent release dates.Although thisrestriction stilllimitsthe practical valueofourresult,we
feel thatthe insight gained might be usefulinthe design of approximation algorithms forthe general
FST
problem.Proof
of
Theorem 5. The development of our algorithm will proceed along the same lines as in the previous section. First, we will assume that there are rn fast machines and we will determine an optimal set of tasks to be scheduled on thesemachines.
Next,
we will compute the minimum number of slow machinesneeded to execute the remaining tasks. Finally,we willdescribe an efficient methodtofind the optimal value of m.We
start by representing the problem data in a convenient way.Suppose
that the release dates assume k different values 1,’",r-k
with 1<’’" <k. For ] 1,...,k, there aren
tasksT1/,..
,
T,
with release dates r0. rnji?i
and deadlinesdl>-...>-d,j. We
have n==1
n
and definen’=max<=<__k{n}.
Thisrepresentation can be obtained by sorting the release dates and the deadlines in
O(n
logn)
timeand applyingabucketsort[1]
toorder the taskswiththesame release date accordingtodeadlines inO(n)
time.Letus nowassumethat thereare rn fast machines
M(,.
,
M,
with0_-< rn -<n’.
For
f=
1,...,k, each of these machines can process exactly one of the tasksT,...,
T.
It is obviously optimal to assignTit
toM
for j 1,..., k and i=1,...,
min{n,
m},
so that the remaining tasks will be as short as possible. Let-,
denote the set of tasks that are not
assigned
to the rn fast machines, where’o
{T1,
,
T,}
and,,
,
and letlm
denote theminimumnumber of slowmachinesneeded to execute these tasks.
A
schedule using rn fast machines has total costCr
mCf+
I,C
s.
Itfollows that an optimal schedule usesm*
fast machines, whereCm.
mino=<,=<,,{
C,,}.
For
each given value of m, the number l,, anda corresponding schedule of the tasks inff, onIm
slow machines can be found inO(n
logn)
time. This problemhasalreadybeen discussed inthe first two paragraphs of 1. The following algorithm is a slightmodification ofthe channel assignment algorithm of
Gupta,
Lee andLeung
[8];
for simplicity, it isstated for thecasethatm 0.FST ALGORITHM (only slow machines)
Initialize. Reorder the tasks in suchawaythat
r
<-<=
r,;determinea permuta-tion 8 of{1,...,
n}
such thatd8(1)=<
<-ds(,).
Introduceastack$ ofsize n and push machineindices 1,...,n onto $in such awaythatrn ison top of rn
+
1,rn 1,..,
n 1. Introduce an arrayh ofsize n[T
willbe assignedto
M
ASet/"
1 1Ierate.
while j-_
n doif
r
<
thenbeginset
A
<-- top element ofS;
pop S; set<--]
+
1 endelsebeginpush
A
ontoS;set <--+
1 end. Finalize. Setlo
<-- maxi_<,{Ai}.
It can be shown that
lo
is the minimum number of slow machines needed to executealltasks. ThealgorithmrequiresO(n
logn)
time toorder thetasks,andO(n)
SCHEDULING TASKS IN FIXED INTERVALS 519
time to construct the schedule and to compute the value
lo.
Since the release dates and the deadlines havealreadybeensorted,each application ofthisalgorithm requires onlyO(n)
time. Straightforward computation of l, for m=0,...,n’
would yield an overall optimal scheduleinO(n
logn+
n’n)
O(n
2)
time.However,
it will be shown below that C, is a convex function of m, and thispropertycan be exploitedto arrive at an
O(n
logn)
algorithm. The convexity of C,impliesthat,ifC,
<
C,/x,thenm*
{0,
,
m},
and elsem*
{m
+
1,...,n’}.
Thus,m*
can be found by a bisection search as follows" for m[n 1,
compute C, and C,/1, reduce the domain ofm*
by a factor of two by eliminating either[0,
m]
or[m+
1,n’],
and repeat theprocedureonthe remaininginterval.The optimal value ofm isfound inat most
[log2 (n’+
1)]
iterations.The entire algorithm requires
O(n
logn)
time to sortthe release dates and thedeadlinesand,foreach ofO(log
n’)
valuesofm,O(n)
timetocompute C,. Itfollows thatan
overalloptimal scheduleisobtainedinO(n
logn)
time.Itremains to beshown that
C,
is aconvexfunction ofm. SinceCm
mC+
l,Cs,
wehavetoprove thatl, is convex,orequivalently that(1)
l,_l-l,>-l,-l,+l, re=l,..., n’-l.We
define the degreeof
overlap ofthe setsuch that [rj, dj). Let
X,(t)
denotethedegreeof overlap of ff, at andx,_l(t)the degree ofoverlapofT,-I
T,
at t,i.e.,X,-l(t) x,_l(t)-X,(t).It
isknown[9]
that(2)
l, maxt{X,,(t)},
m 0,...,n’.
Since the number oftasks
T
,-1-’,
and thelengths of their intervals[r, d)
donotincrease asmincreases, it isalsotruethat
(3)
Xm-l(t)>--X,(t)
all t, m 0,...,n’-
1.Defining
t
suchthatXm(tm)
maxt{Xm(t)},
m 0," ",n’,
and applying(2),
werewrite(1)
asX,-l(t,-l)-X,(t,) >-_X,(t,)-X,+(t,/x).
We
haveforthe left-handsidethatXm-l(tm-1)-Xm(tm)
X,-l(t,-l)-X,-l(tm)+
Xm-l(tm)
>-x,-l(t,).Similarly,wehave for the right-handside that
X,(t,)--Xm+l(t,+l)
X,+l(t,)+
x,(t,)-X,+l(t,/l) <-_x,(t,).Application of
(3)
for t, nowimplies the validity of(1).
Thiscompletesthe proofofTheorem5.
Note. By
meansot
ingenious counting techniques, the above algorithm forcom-puting a single value l, can be extended to an
O(n
logn)
algorithm for computing all lo,’’’, ln, together[13];
whenthe data have alreadybeen sorted,itrequires onlyO(n)
time,asbefore.A
similarresult hasbeenusedin the previoussection.Acknowledgment. The authors gratefully acknowledgeconstructive suggestions byB.
J. Lageweg.
REFERENCES
[1 A. V. AHO, J. E.HOPCROFTANDJ. D. ULLMAN,TheDesignand AnalysisofComputer Algorithms, Addison-Wesley, Reading,MA,1974.
[2] G. B.DANTZIGANDD. R. FULKERSON,Minimizingthe numberoftankerstomeetafixedschedule,
NavalRes.Logist.Quart.,1(1954),pp. 217-222.
[3] L.R. FORD, JR.ANDD. R. FULKERSON,FlowsinNetworks,PrincetonUniversityPress,Princeton,
NJ, 1962
[4] M. R. GAREYAND D. S. JOHNSON, "Strong" NP-completeness results: motivation, examples and implications,J. Assoc. Comput.Mach., 25(1978),pp. 499-508.
[5]
,
Computers and Intractability: A Guide to the Theory ofNP-Completeness, Freeman, San Francisco,1979.[6] I. GERTSBAKHANDH. I. STERN,Minimal resourcesfor fixedand variable job schedules,Oper. Res.,
26(1978),pp. 68-85.
[7] R. L. GRAHAM, E. L. LAWLER, J. K.LENSTRAANDA. H. G.RINNOOYKAN,Optimization and
approximation in deterministic sequencingand scheduling:Asurvey,Ann.DiscreteMath., 5(1979),
287-326.
[8] U. I. GUPTA, D. T. LEE AND J. Y.-T. LEUNG, An optimal solutionfor the channel-assignment problem,IEEETrans. Comput.,C-28(1979),pp. 807-810.
[9] A. HASHIMOTO AND J. E. STEVENS,Path coverofacyclic graphs, ILLIACIV, Document 239, University of Illinois,Urbana,IL,1970.
[10]
.,
Wire routingby optimizingchannelassignmentwithin large apertures, in Proc. 8th DesignAutomationWorkshop(1971),pp. 155-169.
[11] R. M. KARP,Reducibility among combinatorialproblems,inComplexityofComputerComputations,
R. E.MillerandJ.W.Thatcher, eds., PlenumPress, NewYork,1972, pp. 85-103.
[12] B.W. KERNIGHAN, D. G. SCHWEIKERTANDG. PERSKY,Anoptimumchannel-routing algorithm for poIycell layouts ofintegrated circuits, in Proc. 10th Design Automation Workshop, 1973, pp. 50-59.
[13] B. J. LAGEWEG,Personal communication, 1980.
[14] E. L. LAWLER,Sequencingtominimizethe weighted numberoftardy jobs,RAIROInform., 10(1976),
5 Suppl., pp. 27-33.
[15] J. K.LENSTRAANDA. H. G.RINNOOYKAN,Complexityofvehicleroutingand schedulingproblems, Networks, 11(1981),pp. 221-227.
[16] K. NAKAJIMA, Onnonpreemptivemultiprocessorschedulingwithdiscrete startingtimes, Ph.D.
disserta-tion, Department of Electrical Engineering a,nd Computer Science, Northwestern University,
Evanston,IL,1980.
[17] K. NAKAJIMAANDS. L. HAKIMI, On theNP-completenessofa real-time schedulingproblem with
two typesofmachines, inProc. 17th Allerton Conf. Communication, Control, and Computing, UniversityofIllinois,Urbana,IL,1979, pp. 652-658.