We show that the minimal dimension of a linear realization over the (m
ax,+) semiring of a convex sequence is equal to the minimal size of a
decomposition of the sequence as a supremum of discrete affine maps. T
he minimal-dimensional realization of any convex realizable sequence c
an thus be found in linear time. The result is based on a bound in ter
ms of minors of the Hankel matrix.