
Local Alignment (with Affine Gap Weights) L 459
The algorithm assigns a job j to a poor machine in
M(j), if such a machine exists. Otherwise, j is assigned to
the machine in M(j) with the most recent windfall time.
The analysis makes use of the fact that at most
p
m ma-
chines can be rich simultaneously.
Note that for small values of m (m 5), the compet-
itive ratio of the greedy algorithm is still best possible, as
shown in [1]. In this paper it was shown that these bounds
are (m +3)/2form =3; 4; 5. It is not difficult to see that
for m = 2, the best bound is 2.
Unrelated Machines
The most extreme difference occurs for unrelated ma-
chines. Unlike the case of permanent tasks, where an upper
bound of O(log m) can be achieved [3], it was shown in [2]
that any algorithm has a competitive ratio of ˝(m/log m).
Note that a trivial algorithm, which assigns each job to the
machine where it has a minimum load, has competitive
ratio of at most m [3].
Applications
A similar model is known for the bin packing problem as
well. In this problem, the sequence consists of arrivals and
departures items of sizes in (0; 1]. The goal is to keep a par-
tition of the currently existing items into subsets (bins),
where the sum of items in each subset is at most 1. The
cost is the maximum number of bins ever used simultane-
ously. This problem was studied in [13,14].
In [10], an hierarchical model was studied. This is
a special case of restricted assignment where for each job
j, M(j) is a prefix of the machines. They showed that even
for temporary tasks an algorithm of constant competitive
ratio exists for this model.
In [6], which studied resource augmentation in load
balancing, temporary tasks were considered as well. Re-
source augmentation is a type of analysis where the on-
line algorithm is compared to an optimal offline algorithm
which has less machines.
Open Problems
Small gaps still remain for both uniformly related ma-
chines, and for unrelated machines. For unrelated ma-
chines is could be interesting to find if there exists an al-
gorithm of competitive ratio o(m), or whether the simple
algorithm stated above has optimal competitive ratio (up
to a multiplicative factor).
Cross References
See List Scheduling for more information on identical
machines and [15].
Recommended Reading
1. Armon,A.,Azar,Y.,Epstein,L.,Regev,O.:On-linerestrictedas-
signment of temporary tasks with unknown durations. Inf. Pro-
cess. Lett. 85(2), 67–72 (2003)
2. Armon,A.,Azar,Y.,Epstein,L.,Regev,O.:Temporarytasksas-
signment resolved. Algorithmica 36(3), 295–314 (2003)
3. Aspnes, J., Azar, Y., Fiat, A., Plotkin, S., Waarts, O.: On-line load
balancing with applications to machine scheduling and virtual
circuit routing. J. ACM 44, 486–504 (1997)
4. Azar, Y., Broder, A.Z., Karlin, A.R.: On-line load balancing. Theor.
Comput. Sci. 130, 73–84 (1994)
5. Azar, Y., Epstein, L.: On-line load balancing of temporary tasks
on identical machines. SIAM J. Discret. Math. 18(2), 347–352
(2004)
6. Azar, Y., Epstein, L., van Stee, R.: Resource augmentation in load
balancing. J. Sched. 3(5), 249–258 (2000)
7. Azar, Y., Kalyanasundaram, B., Plotkin, S., Pruhs, K., Waarts, O.:
On-line load balancing of temporary tasks. J. Algorithms 22(1),
93–110 (1997)
8. Azar, Y., Naor, J., Rom, R.: The competitiveness of on-line as-
signments. J. Algorithms 18, 221–237 (1995)
9. Bar-Noy, A., Freund, A., Naor, J.: New algorithms for related ma-
chines with temporary jobs. J. Sched. 3(5), 259–272 (2000)
10. Bar-Noy, A., Freund, A., Naor, J.: On-line load balancing in
a hierarchical server topology. SIAM J. Comput. 31, 527–549
(2001)
11. Bartal,Y.,Fiat,A.,Karloff,H.,Vohra,R.:Newalgorithmsforan
ancient scheduling problem. J. Comput. Syst. Sci. 51(3), 359–
366 (1995)
12. Berman, P., Charikar, M., Karpinski, M.: On-line load balancing
for related machines. J. Algorithms 35, 108–121 (2000)
13. Chan, W.-T., Wong, P.W.H., Yung, F.C.C.: On dynamic bin pack-
ing: an improved lower bound and resource augmentation
analysis. In: Proc. of the 12th Annual International Confer-
ence on Computing and Combinatorics (COCOON2006), 2006,
pp. 309–319
14. Coffman, E.G., Garey, M.R., Johnson, D.S.: Dynamic bin packing.
SIAM J. Comput. 12(2), 227–258 (1983)
15. Graham, R.L.: Bounds for certain multiprocessing anomalies.
Bell Syst. Tech. J. 45, 1563–1581 (1966)
16. Ma, Y., Plotkin, S.: Improved lower bounds for load balancing
of tasks with unknown duration. Inf. Process. Lett. 62, 31–34
(1997)
Local Alignment
(with Affine Gap Weights)
1986; Altschul, Erickson
STEPHEN F. ALTSCHUL
1,2
,BRUCE W. ERICKSON
1
,
H
ENRY LEUNG
2
1
The Rockefeller University,
New York, NY, USA
2
Department of Applied Mathematics,
MIT, Cambridge, MA, USA