Definitioncore
Max-plus algebra
Also called max-plus semiring, maxplus algebra.
The reals with minus infinity, where addition is max and multiplication is +. Matrix powers give longest paths, and timed synchronization becomes a linear system.
Max-plus algebra is the set with the operations and . In this algebra, max plays the role of addition and ordinary addition plays the role of multiplication. Matrix products then compute longest paths in a weighted directed graph. Systems where an event waits for the last of several earlier events, such as a machine that starts when both of its input parts have arrived, become linear: . This is the basis of the timed event graph model and of the max-plus eigenvalue theorem. The min-plus algebra, with min and , is the same structure under ; it computes shortest paths and is the subject of min-plus matrix multiplication.
Definition
The max-plus semiring is with
where for every . It satisfies these laws for all :
- is associative and commutative, with zero element : .
- is associative and commutative, with unit element : .
- distributes over : , because .
- is absorbing for : .
- is idempotent: .
A semiring with an idempotent addition is called a dioid. Each has the multiplicative inverse , so is an idempotent semifield. The order is the usual order of the reals. Powers are .
Matrices. For and ,
The identity matrix has on the diagonal and elsewhere. Matrix is associative and distributes over , but it is not commutative.
The graph of a matrix. For a square , the precedence graph has the nodes and an arc from to with weight whenever . (This follows Baccelli et al. 1992 and Heidergott et al. 2006; some books reverse the arcs.) By induction on ,
and if there is no such path. is irreducible if is strongly connected.
The star. and . If every circuit of has weight at most 0, a longest path can skip every circuit, so the series stops: and is the weight of a longest path from to . If some circuit has positive weight, the entries on it grow without bound. When the star is finite, the equation has the least solution .
Examples and non-examples
Scalars. , , , , and .
A matrix and its powers. Take
Its graph has a loop at node 1 with weight 3, a loop at node 2 with weight 4, an arc with weight 7 and an arc with weight 2. Then
Entry is the circuit of weight , which beats twice the loop at node 1 (). Further powers are and . The growth of 9 every two steps is the maximum cycle mean , as the max-plus eigenvalue theorem says.
A star. Let . Its circuits have weights , and , all at most 0, so and (the diagonal is already 0).
A linear recurrence. With , the recurrence gives , , . Read as the time of the -th event at node : each event waits for the latest of its predecessors plus a delay. This is the timed event graph reading.
Non-examples.
- without has no zero element for , so it is not a semiring in the sense above, and matrices cannot express a missing arc.
- is not a ring: no element except has an additive inverse. If , then . So the equation has a solution only when , and every is a solution when . Methods that need subtraction, such as Gaussian elimination, do not carry over.
- is the bottleneck algebra. It is a dioid too, but its matrix products compute widest paths, not longest paths.
- The min-plus semiring is not a different theory: maps it onto . The max-times semiring on the nonnegative reals is also isomorphic, through .
Related definitions
- Max-plus eigenvalue theorem: an irreducible matrix has exactly one eigenvalue, its maximum cycle mean, which Karp's algorithm computes.
- Timed event graph: the class of timed Petri nets whose firing times obey .
- Min-plus matrix multiplication and Floyd-Warshall: the min-plus product and the star of a matrix give all pairs shortest paths. The star above is the same computation in max-plus form.
- Longest path problem and critical path method: on an acyclic graph, the longest paths from the max-plus star give the earliest start times of a project.
- Discrete event system: the general model class; max-plus models cover the part where all choices are fixed and only synchronization remains.
References
- François Baccelli, Guy Cohen, Geert Jan Olsder and Jean-Pierre Quadrat, Synchronization and Linearity, An Algebra for Discrete Event Systems, Wiley, 1992, the chapter on max-plus algebra (dioids, matrices over R_max, the precedence graph and the star operation)
- Bernd Heidergott, Geert Jan Olsder and Jacob van der Woude, Max Plus at Work, Princeton University Press, 2006, Chapter 1, Max-Plus Algebra
- Raymond Cuninghame-Green, Minimax Algebra, Lecture Notes in Economics and Mathematical Systems 166, Springer, 1979, the algebra of max and plus on matrices, and the connection with longest paths
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag E2XSG7 Edit this page History Report an error Markdown