Papers
Topics
Authors
Recent
Search
2000 character limit reached

(Min,+) Matrix Multiplication

Updated 17 October 2026
  • (Min, +) matrix multiplication, also known as min-plus multiplication, is a non-traditional matrix multiplication where ordinary addition is replaced by minimization, and multiplication by ordinary addition.
  • Structured input classes, such as bounded-difference matrices, monotone instances, and approximations, admit faster computation methods.
  • Concrete applications include shortest paths in graphs, network data analysis, and algebra.

(min⁡,+)(\min,+) matrix multiplication, also called min-plus, distance, or tropical matrix multiplication, replaces ordinary addition by minimization and ordinary multiplication by addition. For compatible matrices A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m} and B∈(R∪{∞})m×dB\in(\mathbb{R}\cup\{\infty\})^{m\times d}, their product C=A⋆BC=A\star B is defined by

Cij=min⁡1≤k≤m{Aik+Bkj}.C_{ij}=\min_{1\le k\le m}\{A_{ik}+B_{kj}\}.

The operation is matrix multiplication over the tropical semiring (R∪{∞},min⁡,+)(\mathbb{R}\cup\{\infty\},\min,+), whose additive identity is ∞\infty and multiplicative identity is $0$. Unlike ordinary matrix multiplication, the intermediate index kk represents a candidate route, and the product selects the least-cost route. This interpretation makes min-plus multiplication a central primitive for shortest paths, while its general algorithmic complexity remains closely tied to the all-pairs shortest-paths (APSP) problem (Hook, 2017, Williams et al., 2019).

1. Algebraic definition and shortest-path interpretation

In the min-plus semiring,

a⊕b=min⁡(a,b),a⊗b=a+b.a\oplus b=\min(a,b),\qquad a\otimes b=a+b.

Accordingly,

A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}0

The symbol A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}1 denotes an unavailable connection, since A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}2, while A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}3 is the multiplicative identity because A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}4. For square matrices, the usual min-plus power A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}5 represents minimum-weight walks with exactly A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}6 edges.

If A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}7 is the weighted adjacency matrix of a directed graph, with A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}8 for an edge and A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}9 otherwise, then

B∈(R∪{∞})m×dB\in(\mathbb{R}\cup\{\infty\})^{m\times d}0

is the minimum weight of a two-edge walk from B∈(R∪{∞})m×dB\in(\mathbb{R}\cup\{\infty\})^{m\times d}1 to B∈(R∪{∞})m×dB\in(\mathbb{R}\cup\{\infty\})^{m\times d}2. Repeated products encode bounded-edge shortest paths, and repeated squaring or related distance-product constructions yield APSP. Conversely, APSP algorithms can be used to compute min-plus products through standard graph reductions. This establishes the fine-grained equivalence between general min-plus product and APSP emphasized in algorithmic work (Chi et al., 2021).

The operation is associative: B∈(R∪{∞})m×dB\in(\mathbb{R}\cup\{\infty\})^{m\times d}3 because both sides minimize the same sum over pairs of intermediate indices. A minimizing index B∈(R∪{∞})m×dB\in(\mathbb{R}\cup\{\infty\})^{m\times d}4 is called a witness for B∈(R∪{∞})m×dB\in(\mathbb{R}\cup\{\infty\})^{m\times d}5: B∈(R∪{∞})m×dB\in(\mathbb{R}\cup\{\infty\})^{m\times d}6 Witnesses identify the intermediate state through which an optimal path passes and are essential in exact algorithms and applications such as sequence alignment and shortest paths.

Min-plus multiplication should be distinguished from the ordinary product

B∈(R∪{∞})m×dB\in(\mathbb{R}\cup\{\infty\})^{m\times d}7

Ordinary fast matrix multiplication is nevertheless frequently used as a subroutine. Polynomial encodings, Boolean products, modular arithmetic, and rectangular products can transform restricted min-plus instances into ordinary algebraic products while preserving the exact minimum.

2. General complexity and structured algorithmic regimes

The direct algorithm evaluates all triples B∈(R∪{∞})m×dB\in(\mathbb{R}\cup\{\infty\})^{m\times d}8 and takes B∈(R∪{∞})m×dB\in(\mathbb{R}\cup\{\infty\})^{m\times d}9 time for square matrices. A truly subcubic algorithm means a running time C=A⋆BC=A\star B0 for a constant C=A⋆BC=A\star B1. General min-plus multiplication is closely connected to APSP and, in the results summarized here, is not treated as having a general unrestricted truly subcubic algorithm.

Several structured input classes admit faster algorithms. These restrictions affect either the numerical variation of matrix entries or the order structure of rows and columns.

Bounded-difference matrices. A matrix is C=A⋆BC=A\star B2-bounded-difference when adjacent horizontal and vertical entries differ by less than C=A⋆BC=A\star B3: C=A⋆BC=A\star B4 For constant C=A⋆BC=A\star B5, local blocks have controlled variation. Recursive block refinement, candidate sets, random normalization, segment decomposition, polynomial encoding, and rectangular ordinary matrix multiplication yield an exact randomized running time of C=A⋆BC=A\star B6, improving an earlier C=A⋆BC=A\star B7 bound (Chi et al., 2021).

Approximate local rank. A more general theorem assumes that blocks of one input matrix are close in C=A⋆BC=A\star B8 distance to constant-rank integer matrices. If C=A⋆BC=A\star B9 is partitioned into blocks of side Cij=min⁡1≤k≤m{Aik+Bkj}.C_{ij}=\min_{1\le k\le m}\{A_{ik}+B_{kj}\}.0, every block has Cij=min⁡1≤k≤m{Aik+Bkj}.C_{ij}=\min_{1\le k\le m}\{A_{ik}+B_{kj}\}.1-approximate rank at most Cij=min⁡1≤k≤m{Aik+Bkj}.C_{ij}=\min_{1\le k\le m}\{A_{ik}+B_{kj}\}.2, and the entries have polylogarithmic bit complexity, then

Cij=min⁡1≤k≤m{Aik+Bkj}.C_{ij}=\min_{1\le k\le m}\{A_{ik}+B_{kj}\}.3

can be computed in

Cij=min⁡1≤k≤m{Aik+Bkj}.C_{ij}=\min_{1\le k\le m}\{A_{ik}+B_{kj}\}.4

time, where Cij=min⁡1≤k≤m{Aik+Bkj}.C_{ij}=\min_{1\le k\le m}\{A_{ik}+B_{kj}\}.5 is the ordinary matrix-multiplication exponent. The algorithm combines geometric halfspace queries, additive approximation, sampled normalization, small-weight min-plus products, and final halfspace reporting. Its structure is local: different blocks may have unrelated low-rank representations, and Cij=min⁡1≤k≤m{Aik+Bkj}.C_{ij}=\min_{1\le k\le m}\{A_{ik}+B_{kj}\}.6 may be arbitrary (Williams et al., 2019).

Monotone instances. If Cij=min⁡1≤k≤m{Aik+Bkj}.C_{ij}=\min_{1\le k\le m}\{A_{ik}+B_{kj}\}.7 is row-monotone, meaning

Cij=min⁡1≤k≤m{Aik+Bkj}.C_{ij}=\min_{1\le k\le m}\{A_{ik}+B_{kj}\}.8

and its nonnegative integer entries are bounded by Cij=min⁡1≤k≤m{Aik+Bkj}.C_{ij}=\min_{1\le k\le m}\{A_{ik}+B_{kj}\}.9, while (R∪{∞},min⁡,+)(\mathbb{R}\cup\{\infty\},\min,+)0 is arbitrary, the min-plus product can be computed in expected time

(R∪{∞},min⁡,+)(\mathbb{R}\cup\{\infty\},\min,+)1

The method recursively refines coarse approximations, uses polynomial matrix multiplication to identify residue-compatible candidates, and removes modular false positives with segment trees. It also applies to column-monotone matrices and to bounded-difference instances after suitable transformations (Chi et al., 2022).

The favorable monotonicity orientation is significant. If rows of (R∪{∞},min⁡,+)(\mathbb{R}\cup\{\infty\},\min,+)2 are non-decreasing and columns of (R∪{∞},min⁡,+)(\mathbb{R}\cup\{\infty\},\min,+)3 are non-increasing, arbitrary min-plus products can be encoded by adding (R∪{∞},min⁡,+)(\mathbb{R}\cup\{\infty\},\min,+)4 to (R∪{∞},min⁡,+)(\mathbb{R}\cup\{\infty\},\min,+)5 and subtracting (R∪{∞},min⁡,+)(\mathbb{R}\cup\{\infty\},\min,+)6 from (R∪{∞},min⁡,+)(\mathbb{R}\cup\{\infty\},\min,+)7. The added terms cancel in every summand while enforcing the opposite monotonicities. Thus opposite monotonicity alone does not make the problem easier (Lingas et al., 2023).

3. Exact algorithms based on approximation, modular filtering, and witnesses

Many fast algorithms use approximation only as an intermediate device. The final product remains exact.

A typical scaling reduction computes

(R∪{∞},min⁡,+)(\mathbb{R}\cup\{\infty\},\min,+)8

and recursively forms (R∪{∞},min⁡,+)(\mathbb{R}\cup\{\infty\},\min,+)9. If ∞\infty0, then

∞\infty1

so the exact value is one of

∞\infty2

An equality or witness verifier tests the candidates. Recursing over the bit length of the entries gives exact multiplication once the verifier is sufficiently efficient (Saha et al., 14 Oct 2026).

Modular methods identify candidate witnesses. For a proposed output ∞\infty3, one counts indices satisfying

∞\infty4

Polynomial matrix multiplication over a ring such as

∞\infty5

computes these modular counts. A second count excludes matches whose high-order parts are inconsistent. Equality holds exactly when the first count exceeds the second. Monotonicity or block structure then permits the remaining false positives to be enumerated efficiently.

The bounded-difference algorithms use related normalization. After selecting a likely reference index, they form matrices such as

∞\infty6

The normalization preserves minimizing indices and makes relevant values lie in a restricted range. Polynomial encodings or bounded-weight min-plus subroutines then process only the candidate region.

For approximate local low-rank structure, a block of ∞\infty7 can be represented as

∞\infty8

with additive error at most ∞\infty9. For fixed $0$0, the expression

$0$1

is a linear functional in a constant-dimensional geometric space. Finding its minimum becomes a halfspace emptiness or reporting problem. Sampling removes pairs with many possible witnesses, leaving a subcubic number of candidates for exact correction (Williams et al., 2019).

The 2026 thin-matrix approach applies the same approximation-and-verification philosophy without requiring monotonicity or bounded differences. Inner indices are grouped into blocks, and modular tests identify candidate blocks that may contain an exact witness. A thin matrix product theorem computes selected entries of rectangular products whose inner dimension is sufficiently small. The resulting sparse certificate enables deterministic exact multiplication for polynomially bounded integer entries in

$0$2

time, improving the preceding deterministic $0$3 bound (Saha et al., 14 Oct 2026).

4. Monotonicity, subsequences, and convolution

Monotonicity can be exploited more finely than requiring an entire row or column to be monotone. Suppose every row of $0$4 can be decomposed into at most $0$5 position-disjoint monotone subsequences, and every column of $0$6 into at most $0$7 subsequences, with all subsequences using the same direction. Then the product can be computed in

$0$8

time (Lingas et al., 2023).

For each pair of subsequences, a Boolean product identifies whether they share an inner index. If both subsequences are non-decreasing, the minimum of

$0$9

over their common indices occurs at the smallest common index. If both are non-increasing, it occurs at the largest common index. Minimum- or maximum-witness computations therefore recover the best candidate for each subsequence pair. The total cost is dominated by kk0 Boolean extreme-witness computations.

The orientation is again essential. Same-direction monotone subsequences support the matrix-product algorithm, whereas opposite monotonicities can encode unrestricted min-plus multiplication. For convolution, the favorable orientation reverses: if one sequence decomposes into non-decreasing subsequences and the other into non-increasing subsequences, min-plus convolution can be computed in

kk1

time.

For two sequences,

kk2

monotonicity permits recursive residue refinement and polynomial multiplication. The randomized monotone convolution algorithm achieves kk3 time, improving a preceding kk4 bound (Chi et al., 2022). A deterministic version with kk5 time uses the same modular filtering architecture as deterministic monotone matrix multiplication (Jin et al., 8 May 2026).

The deterministic monotone min-plus product algorithm handles rectangular matrices. If

kk6

with row-monotone entries in kk7, its running time is

kk8

For square kk9-bounded matrices this becomes

a⊕b=min⁡(a,b),a⊗b=a+b.a\oplus b=\min(a,b),\qquad a\otimes b=a+b.0

The result matches the previous randomized exponent while removing the random choice of a prime modulus (Jin et al., 8 May 2026).

5. Monge and core-sparse min-plus multiplication

Monge structure gives a different form of tractability. A matrix a⊕b=min⁡(a,b),a⊗b=a+b.a\oplus b=\min(a,b),\qquad a\otimes b=a+b.1 is Monge if

a⊕b=min⁡(a,b),a⊗b=a+b.a\oplus b=\min(a,b),\qquad a\otimes b=a+b.2

Equivalently, its density matrix

a⊕b=min⁡(a,b),a⊗b=a+b.a\oplus b=\min(a,b),\qquad a\otimes b=a+b.3

is entrywise nonnegative.

Monge matrices arise from noncrossing shortest paths in planar graphs. Their min-plus product remains Monge, and the smallest minimizing witnesses are nondecreasing along rows and columns. Consequently, arbitrary a⊕b=min⁡(a,b),a⊗b=a+b.a\oplus b=\min(a,b),\qquad a\otimes b=a+b.4 Monge products can be computed in a⊕b=min⁡(a,b),a⊗b=a+b.a\oplus b=\min(a,b),\qquad a\otimes b=a+b.5 time using SMAWK-based methods.

A Monge matrix is core-sparse when its density matrix has few nonzero entries. Its core consists of triples

a⊕b=min⁡(a,b),a⊗b=a+b.a\oplus b=\min(a,b),\qquad a\otimes b=a+b.6

for nonzero density entries. A condensed representation stores the top row, leftmost column, and core, using a⊕b=min⁡(a,b),a⊗b=a+b.a\oplus b=\min(a,b),\qquad a\otimes b=a+b.7 space for a a⊕b=min⁡(a,b),a⊗b=a+b.a\oplus b=\min(a,b),\qquad a\otimes b=a+b.8 matrix.

For Monge matrices a⊕b=min⁡(a,b),a⊗b=a+b.a\oplus b=\min(a,b),\qquad a\otimes b=a+b.9, A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}00, and A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}01, the core-preservation theorem states

A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}02

and the stronger core-sum inequality is

A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}03

Using condensed representations, core-based matrix oracles, compression, divide-and-conquer on the shared dimension, and a monotone staircase of witnesses, the product can be computed in

A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}04

time. In the square case this is commonly written A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}05, where A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}06 (Gawrychowski et al., 2024).

The same framework supports smallest-witness recovery in logarithmic time. Applications include simple unit-Monge products, longest increasing subsequence reconstruction, and edit distance with integer weights. Simple unit-Monge matrices model unweighted edit distance, longest common subsequence, and longest increasing subsequence; the core-sparse algorithm extends beyond this special class to arbitrary core-sparse Monge matrices.

6. Applications in networks, combinatorics, and algebra

The shortest-path interpretation makes min-plus products natural for graph algorithms. In a graph with nonnegative edge weights, a shortest-path distance matrix A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}07 satisfies

A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}08

because introducing an intermediate vertex cannot improve an already optimal distance. The Kleene star

A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}09

represents all-pairs shortest-path distances when there is no negatively weighted cycle. A negative cycle prevents the intended finite interpretation because repeated traversal produces arbitrarily low path weights (Hook, 2017).

Min-plus low-rank approximation applies the operation to network data. For a distance matrix A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}10, an actual-waypoint approximation chooses vertices A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}11 and forms

A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}12

A virtual-waypoint approximation instead optimizes

A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}13

where the columns of A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}14 represent latent neighborhoods. More generally,

A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}15

is a two-stage latent network in which each output relation is the least-cost route through an intermediate latent state. The approximation error is measured with the ordinary Frobenius norm even though the factorization uses min-plus multiplication. In the dolphin social-network experiment, truncated SVD had lower error at intermediate ranks, while min-plus factors were more directly interpretable as neighborhoods or waypoints (Hook, 2017).

Min-plus multiplication also appears in formal algebra. For a permutation A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}16, define the slipface function

A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}17

For finite permutations,

A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}18

so the Demazure or A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}19-Hecke product is represented by

A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}20

This tropical formulation extends the operation to almost-sign-preserving permutations of the integers. The resulting product is associative, monotone in both factors, and compatible with the relevant Bruhat order. The rank-function interpretation also connects min-plus composition with relative positions of flags and with gluing operations in Brill–Noether theory (Pflueger, 2022).

Algorithmic applications of structured min-plus products include language edit distance, RNA folding, scored parsing for bounded-difference grammars, optimum stack generation, batched range mode, tree edit distance, approximate APSP, jumbled indexing, and Knapsack. The deterministic monotone-product and convolution results remove randomness from several such downstream algorithms while preserving their stated asymptotic bounds (Chi et al., 2022, Jin et al., 8 May 2026).

7. Recent developments and continuing limitations

Improvements in ordinary rectangular matrix multiplication affect min-plus algorithms whenever the latter reduce structured instances to ordinary products. A 2026 result proves

A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}21

for multiplying an A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}22 matrix by an A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}23 matrix. In particular,

A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}24

Substituting this rectangular curve into an existing deterministic min-plus/APSP framework yields a reported A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}25 bound for directed unweighted APSP. The ordinary rectangular result itself is not a standalone min-plus theorem; the improvement is obtained by composing it with a separate min-plus reduction (Uznanski, 7 Oct 2026).

The same distinction applies to structured algorithms generally. A bound for ordinary matrix multiplication, a bound for monotone min-plus multiplication, and a bound for unrestricted min-plus multiplication are different statements. Ordinary products serve as computational subroutines, but the target min-plus output remains an exact minimum unless the problem explicitly concerns approximation.

The principal limitations are structural and arithmetic. Bounded-difference, monotone, approximate-local-rank, and Monge algorithms do not establish a general truly subcubic algorithm for arbitrary real or integer matrices. Several methods require integer entries of bounded magnitude so that residues, prime divisors, and polynomial encodings can be controlled. Constant local rank is essential in the approximate-rank theorem, and excessive approximation error can eliminate its subcubic saving. Core-sparse methods require Monge structure and a small density core.

The general problem therefore remains characterized by a tension between the expressive power of min-plus composition and the absence of a comparably general fast multiplication theory. Structured local variation, monotonicity, witness organization, Monge inequalities, and sparse certificates each expose different mechanisms through which the cubic search over intermediate indices can be reduced. The resulting algorithms cover substantial classes of graph, string, combinatorial, and algebraic problems while leaving unrestricted A∈(R∪{∞})n×mA\in(\mathbb{R}\cup\{\infty\})^{n\times m}26 multiplication and its full APSP consequences as central open algorithmic objectives.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to (Min, +) Matrix Multiplication.