Computational complexity of matrix multiplication: Difference between revisions

Content deleted Content added
Reverted 1 edit by Jerzy.Respondek (talk): Rv COI / citespammer
Schoolbook algorithm: factual error, that algorithm hs no case distinctions
Tags: Mobile edit Mobile web edit
Line 59:
'''output''' ''C'' (as A*B)
 
This [[algorithm]] requires, in the [[worst-case complexity|worst case]], {{tmath|n^3}} multiplications of scalars and {{tmath|n^3 - n^2}} additions for computing the product of two square {{math|''n''×''n''}} matrices. Its [[computational complexity]] is therefore {{tmath|O(n^3)}}, in a [[model of computation]] where field operations (addition and multiplication) take constant time (in practice, this is the case for [[floating point]] numbers, but not necessarily for integers).
 
=== Strassen's algorithm ===