Matrix Chain Multiplication and Polygon Triangulation Revisited and Generalized

04/05/2021
by   Thong Le, et al.
0

The matrix-chain multiplication problem is a classic problem that is widely taught to illustrate dynamic programming. The textbook solution runs in θ(n^3) time. However, there is a complex O(n log n)-time method <cit.>, based on triangulating convex polygons, and a description without proofs or implementation detail, of a much simpler O(n^2)-time method <cit.>. There is also a linear-time approximation algorithm with a small worst-case error bound <cit.>. In this paper, we make five contributions both to theory and pedagogy: 1) We simplify the approach in <cit.>, and provide complete, correct proofs and implementation details, to establish the O(n^2)-time bound. We believe that this exposition is simple enough for classroom use. 2) We extend the O(n^2)-time bound to a natural class of polygon-triangulation problems that generalizes the original polygon-triangulation problem in <cit.>. 3) We show that the worst-case running time of the method in <cit.>, and of our version, is Θ(n^2). 4) We show that in a natural variant of the original polygon-triangulation problem, the approximation method of <cit.> does not achieve the same error bound, but does achieve an error bound about twice the original bound. 5) We detail empirical testing, showing that on random data our variant runs in Θ(n log n) time, while the approach in <cit.> empirically takes Θ(n^2) time. Software for these tests is posted on the web.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/01/2021

Almost Tight Approximation Algorithms for Explainable Clustering

Recently, due to an increasing interest for transparency in artificial i...
research
05/18/2023

On k-means for segments and polylines

We study the problem of k-means clustering in the space of straight-line...
research
06/25/2021

Extensions of the Maximum Bichromatic Separating Rectangle Problem

In this paper, we study two extensions of the maximum bichromatic separa...
research
02/18/2022

Worst-Case to Average-Case Reductions via Additive Combinatorics

We present a new framework for designing worst-case to average-case redu...
research
11/23/2020

Speeding up decimal multiplication

Decimal multiplication is the task of multiplying two numbers in base 10...
research
04/24/2023

On the Performance of a Novel Class of Linear System Solvers and Comparison with State-of-The-Art Algorithms

We present a comprehensive computational study of a class of linear syst...
research
09/06/2023

Improved Outlier Robust Seeding for k-means

The k-means is a popular clustering objective, although it is inherently...

Please sign up or login with your details

Forgot password? Click here to reset