English

On the Parenthesisations of Matrix Chains: All are Useful, Few Are Essential

Discrete Mathematics 2025-04-08 v2

Abstract

The product of a matrix chain consisting of nn matrices can be computed in Cn1C_{n-1} (Catalan's number) different ways, each identified by a distinct parenthesisation of the chain. The best algorithm to select a parenthesisation that minimises the cost runs in O(nlogn)O(n \log n) time. Approximate algorithms run in O(n)O(n) time and find solutions that are guaranteed to be within a certain factor from optimal; the best factor is currently 1.1551.155. In this article, we first prove two results that characterise different parenthesisations, and then use those results to improve on the best known approximation algorithms. Specifically, we show that (a) each parenthesisation is optimal somewhere in the problem domain, and (b) exactly n+1n + 1 parenthesisations are essential in the sense that the removal of any one of them causes an unbounded penalty for an infinite number of problem instances. By focusing on essential parenthesisations, we improve on the best known approximation algorithm and show that the approximation factor is at most 1.1431.143.

Keywords

Cite

@article{arxiv.2303.17352,
  title  = {On the Parenthesisations of Matrix Chains: All are Useful, Few Are Essential},
  author = {Francisco López and Lars Karlsson and Paolo Bientinesi},
  journal= {arXiv preprint arXiv:2303.17352},
  year   = {2025}
}

Comments

19 pages, 1 figure, 3 tables. Accepted for publication in Springer's Journal of Combinatorial Optimization