Min-Plus Products and Dynamic Programming with Few Violations of the Adjacent Monge Inequalities

Local rewards can introduce negative adjacent mixed differences into a convex transition cost. If a cost array $B$ has $s(B)$ such differences, we express it as a Monge array minus $s(B)$ weighted rectangles and sweep its columns, maintaining the lower envelope of the active rows. For explicit finite $n\times n$ matrices $A,B$ and $L=\lceil\log_2(n+1)\rceil$, we compute $A\otimes B$ and the smallest minimizing index for every entry in $\mathcal{O}(n^2L+ns(B)L^3)$ time and $\mathcal{O}(n^2)$ space, giving near-quadratic time for arbitrary $A$ when $s(B)=\mathcal{O}(n)$, including right factors with $Θ(n^2)$ positive differences. For block costs given by a constant-time Monge oracle and $r$ signed rectangle corrections, the sweep activates each row when its prefix optimum becomes available and computes an optimal contiguous partition in $\mathcal{O}((n+r)L^3)$ time and $\mathcal{O}(n+r)$ working space. The sweep handles convex transitions with interval rules and assigns one rectangle to each internal edge or hyperedge reward in a convex block cost, giving near-linear exact algorithms on sparse inputs for ordered graph modularity, weighted contiguous cluster editing, all-or-nothing HyperLam, and bounded-rank strict hypergraph modularity. Let $c_{\mathrm{APSP}}$ denote the deterministic exponent of all-pairs shortest paths with polynomially bounded integer weights. For fixed $3-c_{\mathrm{APSP}}<α\le1$, any deterministic $\mathcal{O}(n^β)$-time min-plus product algorithm for polynomially bounded integer matrices with $s(B)\le n^{1+α}$ satisfies $β\ge c_{\mathrm{APSP}}-1+α$. The reduction from general integer min-plus multiplication uses right factors obtained from $(j-k)^2$ by at most $n^{1+α}$ interval discounts, with $Θ(n^2)$ positive differences and all remaining differences negative.

Authors

Publication Details

Journal
arXiv
Published
2026-11-25
DOI
https://doi.org/10.48550/arxiv.2611.34733
Primary Topic
Complexity and Algorithms in Graphs
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Min-Plus Products and Dynamic Programming with Few Violations of the Adjacent Monge Inequalities

Yanqiao Chen
arXiv
Complexity and Algorithms in Graphs
preprint

Min-Plus Products and Dynamic Programming with Few Violations of the Adjacent Monge Inequalities

Yanqiao Chen
preprint en

Abstract

Local rewards can introduce negative adjacent mixed differences into a convex transition cost. If a cost array $B$ has $s(B)$ such differences, we express it as a Monge array minus $s(B)$ weighted rectangles and sweep its columns, maintaining the lower envelope of the active rows. For explicit finite $n\times n$ matrices $A,B$ and $L=\lceil\log_2(n+1)\rceil$, we compute $A\otimes B$ and the smallest minimizing index for every entry in $\mathcal{O}(n^2L+ns(B)L^3)$ time and $\mathcal{O}(n^2)$ space, giving near-quadratic time for arbitrary $A$ when $s(B)=\mathcal{O}(n)$, including right factors with $Θ(n^2)$ positive differences. For block costs given by a constant-time Monge oracle and $r$ signed rectangle corrections, the sweep activates each row when its prefix optimum becomes available and computes an optimal contiguous partition in $\mathcal{O}((n+r)L^3)$ time and $\mathcal{O}(n+r)$ working space. The sweep handles convex transitions with interval rules and assigns one rectangle to each internal edge or hyperedge reward in a convex block cost, giving near-linear exact algorithms on sparse inputs for ordered graph modularity, weighted contiguous cluster editing, all-or-nothing HyperLam, and bounded-rank strict hypergraph modularity. Let $c_{\mathrm{APSP}}$ denote the deterministic exponent of all-pairs shortest paths with polynomially bounded integer weights. For fixed $3-c_{\mathrm{APSP}}<α\le1$, any deterministic $\mathcal{O}(n^β)$-time min-plus product algorithm for polynomially bounded integer matrices with $s(B)\le n^{1+α}$ satisfies $β\ge c_{\mathrm{APSP}}-1+α$. The reduction from general integer min-plus multiplication uses right factors obtained from $(j-k)^2$ by at most $n^{1+α}$ interval discounts, with $Θ(n^2)$ positive differences and all remaining differences negative.

arXiv
Complexity and Algorithms in Graphs
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon