Abstract
By restricting weight functions to satisfy the quadrangle inequality or the inverse quadrangle inequality, significant progress has been made in developing efficient sequential algorithms for the least-weight subsequence problem [10], [9], [12], [16]. However, not much is known on the improvement of the naive parallel algorithm for the problem, which is fast but demands too many processors (i.e., it takesO(log2 n) time on a CREW PRAM with n3/logn processors). In this paper we show that if the weight function satisfies the inverse quadrangle inequality, the problem can be solved on a CREW PRAM in O(log2 n log logn) time withn/log logn processors, or in O(log2 n) time withn logn processors. Notice that the processor-time complexity of our algorithm is much closer to the almost linear-time complexity of the best-known sequential algorithm [12].
Similar content being viewed by others
References
R. J. Anderson and G. L. Miller, Deterministic Parallel List Ranking,Proceedings of A WOC '88, Lecture Notes in Computer Science, Vol. 319, Springer-Verlag, Berlin, 1988, pp. 81–90.
A. Aggarwal, M. Klawe, S. Moran, P. Shor, and R. Wilber, Geometric Applications of a Matrix-Searching Algorithm,Algorithmica,2 (2) (1987), 195–208.
A. Aggarwal and J. Park, Notes on Searching in Multidimensional Arrays,Proceedings of the 29th Annual IEEE Symposium on Foundations of Computer Science, 1988, pp. 497–512.
M. J. Atallah, S. R. Kosaraju, L. L. Larmore, G. L. Miller, and and S.-H. Teng, Constructing Tress in Parallel,Proceedings of the 1989 ACM Symposium on Parallel Algorithms and Architectures, 1989, pp. 421–431.
R. P. Brent, The Parallel Evaluation of General Arithmetic Expressions,Journal of the Association for Computing Machinery,21 (1974), 201–208.
D. Eppstein, Sequence Comparison with Mixed Convex and Concave Costs,Journal of Algorithms,11 (1) (1990), 85–101.
D. Eppstein, Z. Galil, R. Giancarlo, and G. Italiano, Sparse Dynamic Programming,Proceedings of the First ACM-SIAM Symposium on Discrete Algorithms, 1990, pp. 513–522.
S. Fortune and J. Wyllie, Parallelism in Random Access Machines,Proceedings of the Tenth Annual ACM Symposium on Theory of Computing, 1978, pp. 114–118.
Z. Galil and R. Giancarlo, Speeding up Dynamic Programming with Applications to Molecular Biology,Theoretical Computer Science,64 (1989), 107–118.
D. S. Hirschberg and L. L. Larmore, The Least Weight Subsequence Problem,SIAM Journal on Computing,16 (1987), 628–638.
R. Karp and V. Ramachandran, A Survey of Parallel Algorithms for Shared Memory Machines, inHandbook of Theoretical Computer Science, Vol. A (J. van Leeuwen, ed.), North-Holland, Amsterdam, 1990, pp. 869–941.
M. M. Klawe and D. J. Kleitman, An Almost Linear Algorithm for Generalized Matrix Searching,SIAM Journal of Discrete Mathematics,3(1), (1990), 81–97.
R. E. Ladner and M. J. Fischer, Parallel Prefix Computation,Journal of the Association for Computing Machinery,27(4) (1980), 831–838.
G. L. Miller and J. H. Reif, Parallel Tree Contraction and Its Applications,Proceedings of the 26th Annual IEEE Symposium on Foundations of Computer Science, 1985, pp. 496–503.
W. Rytter, Notes on Efficient Parallel Computations for Some Dynamic Programming,Theoretical Computer Science,59 (1988), 297–307.
R. Wilber, The Concave Least Weight Subsequence Problem Revisited,Journal of Algorithms,9(3) (1988), 418–425.
F. F. Yao, Efficient Dynamic Programming Using Quadrangle Inequalities,Proceedings of the 12th ACM Symposium on Theory of Computing, 1980, pp. 429–435.
Author information
Authors and Affiliations
Additional information
Communicated by Takao Nishizeki.
Rights and permissions
About this article
Cite this article
Lam, T.W., Chan, Kf. Finding least-weight subsequences with fewer processors. Algorithmica 9, 615–628 (1993). https://doi.org/10.1007/BF01190159
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF01190159