Introduction to mathematical programming
Introduction to mathematical programming
4th Edition
ISBN: 9780534359645
Author: Jeffrey B. Goldberg
Publisher: Cengage Learning
Expert Solution & Answer
Book Icon
Chapter 2.1, Problem 6P

Explanation of Solution

Proving that computing the matrix product AB requires n3multiplications and n3-n2 additions:

When we multiply two n×n matrices A and B, the resultant matrix will also be of the order of n×n.

Therefore, ij element of AB= Scalar product of row i of A and column j of B.

This will constitute n×n=n2 operations. Totally, n such operations have to be done.

Therefore, total number of multiplication operations in multiplying two n×n matrices involve are given below:

n2×n=n3

After this we must do n2 addition operations in first row, then (n1)2 addition operations in second row and so on.

Therefore, the total number of addition operations is given below:

n2+(n1)2+

Blurred answer
Students have asked these similar questions
This question is about the Matrix Chain Multiplication problem. You are given four matrices with the following dimensions.
Using MATLAB or Octave  Consider the following Matrices:                                43  9  74  2        5 6 7               87 35 62 12 A = 1 2 3        B = 15   8  73  9        8 9 0               34  85  9 43 Using single index notation, find the index numbers of the elements in Matrix A that are greater than or equal to 4.
Find Matrix Chain multiplication for following four matrices (M1, M2, M3 and M4) using dynamic programming matrix =              m1       m2     m3       m4 order of matrix= 4*3      3*5      5*2      2*6
Knowledge Booster
Background pattern image
Similar questions
Recommended textbooks for you
Text book image
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole