Abstract
An ambulance system consists of a collectionS={s 1,...sm} of emergency centers in a metric spaceM. Each emergency centers i has a positive integral capacityc i to denote, for example, the number of ambulances at the center. There aren = Σ m i = 1 c i patients requiring ambulances at different timest j and every patient is associated with a numberb j, the longest time during which the patient can wait for ambulance. An online algorithmA will decide which emergency center sends an ambulance to serve a request for ambulance from a patient at some time. If algorithmA sends an ambulance ins i to serve a patientr j, then it must be observed thatd i,j/v<bj, whered i,j is the distance between emergency centers i and patientr j, andv is the velocity of ambulance. A fault of algorithmA is such that to a request for ambulance at some timet j withj≤n, for everyi withd i,j/v<bj, there is no ambulance available ins i. The cost of an algorithmA is the number of faultsA makes. This paper gives two algorithmsB andC, whereB is the local greedy algorithm andC is a variant of balancing costs, and proves that bothB andC have no bounded competitive ratios. Moreover, given any sequence σ of requests for ambulances without optimal faults, the cost ofC on σ is less than or equal to [n/3] and that ofB is less than or equal to [n/2].
Similar content being viewed by others
References
Manasse M, McGeoch L A, Sleator D. Competitive algorithms for server problems.J. Algorithm, 1990, 11: 208–230.
Irani S, Rubinfeld R. A competitive 2-server algorithm.Information Processing Letters, 1991, 39: 85–91.
Kalyanasundaram B, Pruhs K. Online weighted matching.J. Algorithm, 1993, 14: 478–488.
Koutsoupias E, Papadimitriou C. On thek-server conjecture. InProc. 25th Symposium on Theory of Computing, 1994, pp.507–511.
Irani S, Karlin A R. Online computation. InApproximation Algorithms for NP-Hard Problems, Hochbaum D S (ed.), PWS Publishing Company, 1997, pp.521–564.
Author information
Authors and Affiliations
Corresponding author
Additional information
The project was partially supported by the National Natural Science Foundation of China (No.69673017).
SUI Yuefei was born in 1963. He received the Ph.D. degree in mathematics from the Institute of Software, The Chinese Academy of Sciences in 1988. He is a professor of the Institute of Software, The Chinese Academy of Sciences. His current research interests include recursion theory, theory of computability, complexity of computation, and rough set theory.
Rights and permissions
About this article
Cite this article
Sui, Y. Two online algorithms for the ambulance systems. J. Comput. Sci. & Technol. 16, 176–181 (2001). https://doi.org/10.1007/BF02950422
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF02950422