Hostname: page-component-848d4c4894-cjp7w Total loading time: 0 Render date: 2024-07-02T19:42:05.902Z Has data issue: false hasContentIssue false

Greedy algorithms for optimal computing of matrix chain products involving square denseand triangular matrices

Published online by Cambridge University Press:  14 March 2011

Faouzi Ben Charrada
Affiliation:
University of Tunis El Manar, Faculty of Sciences of Tunis, Campus Universitaire 2092 Manar II, Tunis, Tunisia; f.charrada@gnet.tn; zwawi_sana@yahoo.fr; zaher.mahjoub@fst.rnu.tn
Sana Ezouaoui
Affiliation:
University of Tunis El Manar, Faculty of Sciences of Tunis, Campus Universitaire 2092 Manar II, Tunis, Tunisia; f.charrada@gnet.tn; zwawi_sana@yahoo.fr; zaher.mahjoub@fst.rnu.tn
Zaher Mahjoub
Affiliation:
University of Tunis El Manar, Faculty of Sciences of Tunis, Campus Universitaire 2092 Manar II, Tunis, Tunisia; f.charrada@gnet.tn; zwawi_sana@yahoo.fr; zaher.mahjoub@fst.rnu.tn
Get access

Abstract

This paper addresses a combinatorial optimization problem (COP), namely a variant of the (standard) matrix chain product (MCP) problem where the matrices are square and either dense (i.e. full) or lower/upper triangular. Given a matrix chain of length n, we first present a dynamic programming algorithm (DPA) adapted from the well known standard algorithm and having the same O(n3) complexity. We then design and analyse two optimal O(n) greedy algorithms leading in general to different optimal solutions i.e. chain parenthesizations. Afterwards, we establish a comparison between these two algorithms based on the parallel computing of the matrix chain product through intra and inter-subchains coarse grain parallelism. Finally, an experimental study illustrates the theoretical parallel performances of the designed algorithms.

Type
Research Article
Copyright
© EDP Sciences, ROADEF, SMAI, 2011

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

References

A.K. Chandra, Computing matrix products in near-optimal time. IBM Research Report, RC 5625 (1975).
Chin, F.Y., An O(n) algorithm for determining a near-optimal computation order of matrix chain products. Commun. ACM 21 (1978) 544549. CrossRef
T.H. Cormen, C.E. Leicerson, R.L. Rivest and C. Stein, Introduction à l'Algorithmique. Dunod (2002).
M. Cosnard and D. Trystram, Algorithmes et Architectures Parallèles. InterEditions (1993).
H. El-Rewini and M. Abd-El-Bar, Advanced Computer Architecture and Parallel Processing. Wiley (2005).
S. Ezouaoui, F. Ben Charrada and Z. Mahjoub, O(n) instances of the matrix chain product problem solved in linear time, in Proc. of ROADEF'09, Nancy, France (2009).
S.S. Godbole, An efficient computation of matrix chain products. IEEE Trans. Comput. C-22 (1973) 864–866.
Hu, T.C. and Shing, M.T., Computation of matrix chain products. Part I. SIAM J. Comput. 11 (1982) 362373. CrossRef
Hu, T.C. and Shing, M.T., Computation of matrix chain products. Part II. SIAM J. Comput. 13 (1984) 229251. CrossRef
V. Kumar, A. Grama, A. Gupta and G. Karypis, Introduction to Parallel Computing – Design and Analysis of Algorithms. The Benjamin/Cummings Pub. Co. (1994).
S. Lakshmivarahan and S.K. Dhall, Analysis and Design of Parallel Algorithms – Arithmetic and Matrix problems. Mc Graw Hill (1990).
Lee, H., Kim, J., Hong, S.J. and Lee, S., Processor allocation and task scheduling of matrix chain products on parallel systems. IEEE Trans. Parallel Distrib. Syst. 14 (2003) 314.
Z. Mahjoub and F. Karoui-Sahtout, Maximal and optimal degrees of parallelism for a parallel algorithm, in Proc. of Transputers'94, IOS Press (1994) 220–233.
Santoro, N., Chain multiplication of matrices of approximately or exactly the same size. Commun. ACM 27 (1984) 152156. CrossRef
Schoor, A., Fast algorithms for sparse matrix multiplication. Inform. Process. Lett. 15 (1982) 8789. CrossRef
J. Takche, Complexities of special matrix multiplication problems. Comput. Math. Appl. 12 (1988) 977–989.