Min-plus matrix multiplication explained

Min-plus matrix multiplication, also known as distance product, is an operation on matrices.

Given two

n x n

matrices

A=(aij)

and

B=(bij)

, their distance product

C=(cij)=A\starB

is defined as an

n x n

matrix such that

cij=

n
min
k=1

\{aik+bkj\}

. This is standard matrix multiplication for the semi-ring of tropical numbers in the min convention.

This operation is closely related to the shortest path problem. If

W

is an

n x n

matrix containing the edge weights of a graph, then

Wk

gives the distances between vertices using paths of length at most

k

edges, and

Wn

is the distance matrix of the graph.

References

See also