Strassen algorithm is an algorithm for matrix multiplication, named after the German mathematician Volker Strassen, who published it in 1969 under the title "Gaussian Elimination is not Optimal" (Numerische Mathematik, 13, 354–356; submitted December 1968). It was the first algorithm shown to multiply matrices asymptotically faster than the classical (naive) method, and its discovery is widely regarded as a founding result of algebraic complexity theory.
Overview
For two n × n matrices over a ring, the classical algorithm performs on the order of n³ scalar multiplications. Strassen's method reduces the asymptotic cost to roughly
- O(n^log₂7) ≈ O(n^2.807),
since log₂ 7 ≈ 2.8074. The algorithm is a divide-and-conquer method that exploits a scheme for multiplying 2 × 2 block matrices using only 7 multiplications instead of the usual 8, at the cost of additional additions and subtractions.
The algorithm works over any ring (supports addition, subtraction, and multiplication), but it does not apply to structures such as min-plus "tropical" semirings or Boolean matrix multiplication, where the classical algorithm remains in use.
Algorithm
Given matrices A, B, and C = AB, each is partitioned into four equally sized blocks:
A = [[A₁₁, A₁₂], [A₂₁, A₂₂]], B = [[B₁₁, B₁₂], [B₂₁, B₂₂]], C = [[C₁₁, C₁₂], [C₂₁, C₂₂]].
The naive block method computes C₁₁ = A₁₁B₁₁ + A₁₂B₂₁, etc., requiring 8 block multiplications. Strassen instead defines seven products:
- M₁ = (A₁₁ + A₂₂)(B₁₁ + B₂₂)
- M₂ = (A₂₁ + A₂₂)B₁₁
- M₃ = A₁₁(B₁₂ − B₂₂)
- M₄ = A₂₂(B₂₁ − B₁₁)
- M₅ = (A₁₁ + A₁₂)B₂₂
- M₆ = (A₂₁ − A₁₁)(B₁₁ + B₁₂)
- M₇ = (A₁₂ − A₂₂)(B₂₁ + B₂₂)
The result blocks are then recovered as:
- C₁₁ = M₁ + M₄ − M₅ + M₇
- C₁₂ = M₃ + M₅
- C₂₁ = M₂ + M₄
- C₂₂ = M₁ − M₂ + M₃ + M₆
The seven multiplications can be applied recursively to the sub-blocks, giving the recurrence T(n) = 7T(n/2) + Θ(n²), whose solution yields the exponent log₂7.
In Strassen's original formulation the seven products were labeled I–VII, with the same structure presented as a "process of elimination" over the 2 × 2 case. The 1969 paper additionally observed that analogous constructions yield algorithms for matrix inversion, solving systems of linear equations, and computing determinants, all requiring fewer than a constant multiple of n^log₂7 arithmetic operations. This showed, contrary to the earlier optimality result of Klyuyev and Kokovkin-Shcherbak for row-and-column operations, that Gaussian elimination is not optimal in the general algebraic model.
Complexity and the matrix multiplication exponent
Let ω denote the infimum of exponents achievable by matrix multiplication algorithms. Strassen's result established ω ≤ log₂7 ≈ 2.807. This initiated a long line of research (Pan, Bini–Capovani–Lotti–Romani, Schönhage, Coppersmith–Winograd, Stothers, Vassilevska Williams, Le Gall, and others) that has progressively lowered the upper bound; by the mid-2010s the best known bounds were approximately 2.3728639. The optimal exponent remains unknown, and determining whether ω = 2 is a major open problem in theoretical computer science. The best known lower bound is still only of the form 3n² − o(n²).
Practical considerations
Although asymptotically superior, Strassen's algorithm carries a larger constant factor and requires extra additions and temporary storage, and it exhibits somewhat reduced numerical stability compared with the classical method. Implementations therefore typically switch to conventional multiplication for sub-matrices below a hardware- and implementation-dependent threshold. Reported crossover points have varied widely, with some studies finding that even a single recursive step is unprofitable on modern architectures until matrix sizes reach several hundred to over a thousand, while other optimized implementations (including non-square and blocked variants) have reported gains at smaller sizes. Strassen's method is cache-oblivious, and its cache-miss behavior under an idealized cache model has been analyzed.
Since Strassen's original scheme, variants with reduced addition counts have been developed, notably by Winograd (1971) and later by Karstadt and Schwartz (2017) and Schwartz and Vaknin (2023), maintaining seven multiplications while reducing the number of block additions.
Significance
The algorithm is a standard topic in algorithms curricula and is credited with opening the field of fast matrix multiplication. Volker Strassen received the Cantor Medal (1999), the Paris Kanellakis Theory and Practice Award (2003, with Miller, Rabin, and Solovay), and the Knuth Prize (2008) for his contributions to algorithm design.
See also
- Computational complexity of matrix multiplication
- Coppersmith–Winograd algorithm
- Bilinear complexity (tensor rank of matrix multiplication)