Bracket a chain of matrix products to do the fewest multiplications, from tables of every sub-chain filled by length.
This interactive visualization needs JavaScript.