Global Information Lookup Global Information

Matrix chain multiplication information


Matrix chain multiplication (or the matrix chain ordering problem[1]) is an optimization problem concerning the most efficient way to multiply a given sequence of matrices. The problem is not actually to perform the multiplications, but merely to decide the sequence of the matrix multiplications involved. The problem may be solved using dynamic programming.

There are many options because matrix multiplication is associative. In other words, no matter how the product is parenthesized, the result obtained will remain the same. For example, for four matrices A, B, C, and D, there are five possible options:

((AB)C)D = (A(BC))D = (AB)(CD) = A((BC)D) = A(B(CD)).

Although it does not affect the product, the order in which the terms are parenthesized affects the number of simple arithmetic operations needed to compute the product, that is, the computational complexity. The straightforward multiplication of a matrix that is X × Y by a matrix that is Y × Z requires XYZ ordinary multiplications and X(Y − 1)Z ordinary additions. In this context, it is typical to use the number of ordinary multiplications as a measure of the runtime complexity.

If A is a 10 × 30 matrix, B is a 30 × 5 matrix, and C is a 5 × 60 matrix, then

computing (AB)C needs (10×30×5) + (10×5×60) = 1500 + 3000 = 4500 operations, while
computing A(BC) needs (30×5×60) + (10×30×60) = 9000 + 18000 = 27000 operations.

Clearly the first method is more efficient. With this information, the problem statement can be refined as "how to determine the optimal parenthesization of a product of n matrices?" The number of possible parenthesizations is given by the (n–1)th Catalan number, which is O(4n / n3/2), so checking each possible parenthesization (brute force) would require a run-time that is exponential in the number of matrices, which is very slow and impractical for large n. A quicker solution to this problem can be achieved by breaking up the problem into a set of related subproblems.

  1. ^ Cite error: The named reference Schwartz was invoked but never defined (see the help page).

and 22 Related for: Matrix chain multiplication information

Request time (Page generated in 0.8356 seconds.)

Matrix chain multiplication

Last Update:

Matrix chain multiplication (or the matrix chain ordering problem) is an optimization problem concerning the most efficient way to multiply a given sequence...

Word Count : 2644

Matrix multiplication

Last Update:

in linear algebra, matrix multiplication is a binary operation that produces a matrix from two matrices. For matrix multiplication, the number of columns...

Word Count : 6456

Matrix multiplication algorithm

Last Update:

Because matrix multiplication is such a central operation in many numerical algorithms, much work has been invested in making matrix multiplication algorithms...

Word Count : 4327

Computational complexity of matrix multiplication

Last Update:

complexity of matrix multiplication dictates how quickly the operation of matrix multiplication can be performed. Matrix multiplication algorithms are a central...

Word Count : 4178

Dynamic programming

Last Update:

multiplications needed to multiply a chain of matrices from matrix i to matrix j (i.e. Ai × .... × Aj, i.e. i<=j). We split the chain at some matrix k...

Word Count : 9215

Time complexity

Last Update:

this is O ( log k ⁡ n ) {\displaystyle O(\log ^{k}n)} . For example, matrix chain ordering can be solved in polylogarithmic time on a parallel random-access...

Word Count : 5004

Catalan number

Last Update:

of associating n applications of a binary operator, as in the matrix chain multiplication problem). For n = 3, for example, we have the following five...

Word Count : 5839

Determinant

Last Update:

f:\mathbf {R} ^{n}\to \mathbf {R} ^{n}} is the linear map given by multiplication with a matrix A {\displaystyle A} , and S ⊂ R n {\displaystyle S\subset \mathbf...

Word Count : 14131

List of terms relating to algorithms and data structures

Last Update:

algorithms) matched edge matched vertex matching (graph theory) matrix matrix-chain multiplication problem max-heap property maximal independent set maximally...

Word Count : 3134

Jacobian matrix and determinant

Last Update:

vector calculus, the Jacobian matrix (/dʒəˈkoʊbiən/, /dʒɪ-, jɪ-/) of a vector-valued function of several variables is the matrix of all its first-order partial...

Word Count : 3549

Google matrix

Last Update:

otherwise; this is the adjacency matrix of links. A related matrix S corresponding to the transitions in a Markov chain of given network is constructed...

Word Count : 1796

Quaternions and spatial rotation

Last Update:

except the commutative law of multiplication (a familiar example of such a noncommutative multiplication is matrix multiplication). From this all of the rules...

Word Count : 11503

Eigenvalues and eigenvectors

Last Update:

the matrix multiplication A v = λ v , {\displaystyle A\mathbf {v} =\lambda \mathbf {v} ,} where the eigenvector v is an n by 1 matrix. For a matrix, eigenvalues...

Word Count : 13539

Generalized eigenvector

Last Update:

can be performed on square matrices are matrix addition, multiplication by a scalar, and matrix multiplication. These are exactly those operations necessary...

Word Count : 6982

Quaternion

Last Update:

such a way that quaternion addition and multiplication correspond to matrix addition and matrix multiplication. One is to use 2 × 2 complex matrices, and...

Word Count : 12662

Backpropagation

Last Update:

The overall network is a combination of function composition and matrix multiplication: g ( x ) := f L ( W L f L − 1 ( W L − 1 ⋯ f 1 ( W 1 x ) ⋯ ) ) {\displaystyle...

Word Count : 7493

Hill cipher

Last Update:

for this device, which performed a 6 × 6 matrix multiplication modulo 26 using a system of gears and chains. Unfortunately the gearing arrangements (and...

Word Count : 2241

Chain rule

Last Update:

In calculus, the chain rule is a formula that expresses the derivative of the composition of two differentiable functions f and g in terms of the derivatives...

Word Count : 7081

Hessian matrix

Last Update:

In mathematics, the Hessian matrix, Hessian or (less commonly) Hesse matrix is a square matrix of second-order partial derivatives of a scalar-valued function...

Word Count : 3408

Gaussian elimination

Last Update:

a matrix decomposition of the original matrix. The elementary row operations may be viewed as the multiplication on the left of the original matrix by...

Word Count : 4219

Givens rotation

Last Update:

\end{aligned}}} Using these values for c and s and performing the matrix multiplication above yields A2: A 2 ≈ [ 7.8102 4.4813 2.5607 0 − 2.4327 3.0729...

Word Count : 2514

Jordan normal form

Last Update:

So the lead vector generates the chain via multiplication by A − λI. Therefore, the statement that every square matrix A can be put in Jordan normal form...

Word Count : 6853

PDF Search Engine © AllGlobal.net