Manuscript Offprint
arXiv:2610.10503Barely Monotone (min,+)-Convolution in Truly Subquadratic Time
Abstract
The (min, +)-convolution of two sequences A and B of length n is the sequence C with . For bounded inputs, whose entries are integers in , prior work computes it in truly subquadratic time when the inputs are monotone; the algorithm of Chi, Duan, Xie, and Zhang (STOC 2022) takes expected time. We introduce a monotonicity measure ranging from 0 (monotone) to 1/2 (entirely non-monotone): a sequence has monotonicity if it can be partitioned into monotone subsequences, and by the Erdős–Szekeres theorem every sequence has monotonicity at most 1/2. We show that truly subquadratic time is achievable even when just one input is barely monotone, that is, has monotonicity : if A has monotonicity , we compute the convolution in expected time for every bounded B. If B has monotonicity as well, the expected time improves to , which matches the monotone case for ; this algorithm also allows infinite entries placed arbitrarily.
We complement these algorithms with fine-grained reductions. Bounded (min, +)-convolution reduces to bounded monotone (min, +)-convolution of length , so an -time algorithm for monotone inputs would give an -time algorithm for bounded inputs. Similarly, entries bounded by reduce to entries bounded by on sequences of length . We also show that if only has entries in , we can compute the convolution in time, and in time if may also contain .
*University of Maryland. Email: hajiaghayi@gmail.com.
University of Maryland. Email: dannymittal@gmail.com.
Email: saeedreza.seddighin@gmail.com.
1 Introduction
The All-Pairs Shortest Paths (APSP) problem is equivalent, up to subcubic reductions, to computing the (min, +)-product of two matrices [26]. Until recently the fastest known algorithm for both problems ran in time [29], and whether time is possible for some constant had been a central open question for decades; very recently, Alman and Vassilevska Williams [1] gave the first truly subcubic algorithm for APSP with polynomially bounded integer weights. The one-dimensional analogue of the (min, +)-product is the (min, +)-convolution of two sequences and , namely the sequence of length with
The two problems are closely related: as observed by Bremner et al. [7], the (min, +)-convolution of two sequences of length n can be computed with (min, +)-products of matrices. A truly subcubic algorithm for APSP therefore gives a truly subquadratic algorithm for (min, +)-convolution, which has long made the latter a natural intermediate target on the way to faster APSP algorithms. (min, +)-Convolution is also tied by fine-grained reductions to knapsack-type problems, tree sparsity, and other problems [16, 23, 5]. The algorithm of [1] yields a truly subquadratic algorithm for (min, +)-convolution with polynomially bounded integer entries, but with an exponent very close to 2. Structured inputs admit much faster algorithms, and they are the subject of this paper.
If all entries are integers in , the convolution can be computed in time with the fast Fourier transform, in the spirit of the algorithm of Alon, Galil, and Margalit [2] for the matrix case. For , that is, for bounded inputs with entries in , this gives no improvement over the naive algorithm. If, in addition, both sequences are monotone, the problem becomes substantially easier. Chan and Lewenstein [12] gave the first truly subquadratic algorithm for bounded monotone (min, +)-convolution, with expected running time , using additive combinatorics, and showed that the problem is closely related to bounded-difference (min, +)-convolution and to binary jumbled indexing. Chi, Duan, Xie, and Zhang [15] then improved the expected running time to ; we refer to their algorithm as the CDXZ algorithm. Bringmann, Dürr, and Polak [9] extended it to entries in , obtaining expected time , and showed that it suffices for one of the two sequences to be monotone; Jin, Park, Saha, and Xu [22] gave a deterministic version with an overhead. These algorithms have found applications to knapsack problems [8, 9]. The picture is similar for the (min, +)-product, where bounded-difference instances and instances with bounded row- or column-monotone matrices admit truly subcubic algorithms [10, 27, 20, 14, 15, 22].
Structured (min, +)-convolution is also at the heart of our recent work on dynamic problems [21]. There we gave truly sublinear dynamic algorithms for (min, +)-convolution and for (min, +)-matrix multiplication under marginal updates, in which each update changes one input entry by and each query asks for one output entry. For (min, +)-convolution we obtained expected amortized update time and worst-case query time, by combining the structure of bounded inputs with additive combinatorics, even though the values themselves may grow without bound. We also reduced static bounded-difference (min, +)-convolution to this dynamic problem; update and query times of (with initialization time for arbitrary inputs) would improve the exponent 3/2 for bounded-difference inputs. For (min, +)-matrix multiplication we obtained truly sublinear algorithms whenever the updates are not too concentrated on a single row or column, and a matching hardness result based on the OMv conjecture shows that this condition cannot
| Problem | Result | Reference |
| 3.10 | ||
| 3.7 | ||
| monotone with infinities | 3.10 | |
| 3.9 | ||
| 5.3 | ||
| 5.6 | ||
| length and values | 4.2 | |
| monotone | 4.4 | |
| length | 5.1, 5.2 |
Table 1: Summary of our results. Here is the input length, is the length produced by a reduction, and is the monotonicity number; in the value-range reduction, is fixed. Unless stated otherwise, finite entries are integers in , and “arb.” means that may have arbitrary integer or entries. In the third row, the finite entries of each input form a monotone sequence and entries are placed arbitrarily. Las Vegas bounds are expected running times.
be dropped. These results complement classical work on dynamic matrix inverse and dynamic convolution.
All known algorithms for bounded inputs with running time close to , however, rely on monotonicity, or on closely related structure such as bounded differences, of at least one of the sequences. In this paper we ask how much monotonicity is really needed. We measure the distance from monotonicity by the monotonicity number , the minimum number of monotone subsequences into which a sequence can be partitioned. Every sequence of length has monotonicity number , so we may write with and call the monotonicity of ; it ranges from 0 for monotone sequences to for entirely non-monotone ones, and the algorithms above cover only monotone sequences, at the extreme . We show that this is far from necessary: bounded -convolution can be computed in truly subquadratic time even when just one input is barely monotone, that is, has monotonicity . We also study the converse direction, that is, how improvements for monotone inputs can be transferred to less structured ones, and give fine-grained reductions between bounded, monotone, and small-range instances.
Barely monotone sequences. In the monotonicity number , the monotone subsequences need not be contiguous, and their directions may differ. Monotone sequences have monotonicity number 1, and by the Erdős–Szekeres theorem [17] every sequence of length has monotonicity number (Lemma 3.1). Interleaving matters already for two subsequences: -convolution of two bounded sequences with monotonicity number at most 2 contains minimum-witness convolution (Remark 3.2), for which no -time algorithm is known [24], and the reduction of Bringmann,
Dürr, and Polak to the case where both sequences are monotone does not apply. Our main result is the following.
Theorem 1.1 (see Theorems 3.7 and 3.10). Let with mono( and mono( . Then can be computed by a Las Vegas algorithm in expected time
(a) , and
(b) , without any assumption on the monotonicity number of B.
No partition into monotone subsequences needs to be given as part of the input.
Since we may assume , both bounds are at most quadratic up to polylogarithmic factors, and they are truly subquadratic under mild conditions: bound (a) whenever , which holds in particular when both exponents are below , and bound (b) whenever , for every bounded . For , bound (a) matches the bound of CDXZ while allowing any constant number of interleaved monotone parts, and in general the bound is . Bound (a) also holds for sequences with infinite entries (Theorem 3.10), provided that the finite entries can be partitioned into few monotone subsequences. When the finite entries of each sequence are monotone, the infinite entries may be placed arbitrarily and the expected running time is ; this covers both bounded monotone (min, +)-convolution and minimum-witness convolution. Bound (b) is of interest when only is structured: for a constant number of interleaved monotone subsequences in , it gives time for arbitrary bounded , while for monotone an bound is already known (Remark 3.8). A simple reduction (Proposition 3.9) shows that an -time algorithm for mono( and arbitrary bounded would give an -time algorithm for bounded (min, +)-convolution.
Computing the monotonicity number exactly is NP-hard [28], and the 1.71-approximation of Fomin, Kratsch, and Novelli [18] (stated for sequences without repeated values) is too slow for our purposes. A simple greedy algorithm, however, finds a partition into monotone subsequences in time (Lemma 3.1); the extra logarithmic factor in the number of parts is absorbed by our bounds.
One bounded sequence. The standard bound for two sequences with entries in also holds when only A has such entries.
Theorem 1.2 (see Theorem 5.3). Let and let be arbitrary. Then can be computed deterministically in time.
The proof uses the prefix minima of to estimate each of the first output entries up to an additive error of , and then splits the instance into subinstances in which both sequences have a small value range; this is in the spirit of the convolution-and-prediction technique of Bateni et al. [6]. The argument uses that every entry of is finite. Once may contain , we cannot expect time: already for the problem contains minimum-witness convolution, where for sets one asks, for every , for the smallest with . The best algorithms for this problem, and for the (min, +)-convolution of an arbitrary sequence with any -valued mask, take time [4, 11], and no -time algorithm is known even for minimum-witness convolution [24]. Allowing finite entries of in , in addition to , costs only a factor of over this mask case.
Theorem 1.3 (see Theorem 5.6). Let and let be arbitrary, where . Then can be computed deterministically in time.
For comparison, if takes distinct finite values, splitting it into masks gives time [4]; Theorem 1.3 is faster when is larger than .
Reductions. In the other direction, we reduce bounded (min, +)-convolution to bounded monotone (min, +)-convolution. The simplest way to make a sequence monotone is to add a steep linear function, which preserves the convolution up to a known additive term but increases the largest entry to . We limit this growth in the values by increasing the sequence length.
Theorem 1.4 (see Theorem 4.2). Let and let be an integer. In time one can construct non-decreasing sequences of length with entries in , such that can be computed from in time.
With and , both the length and the value bound of the monotone instance are .
Corollary 1.5 (see Corollary 4.4). If bounded monotone (min, +)-convolution of length N can be computed in time for some , then bounded (min, +)-convolution of length n can be computed in time .
A reduction with threshold 3/2 instead of 4/3 would show that any polynomial improvement of the CDXZ algorithm transfers to bounded inputs. Other choices of give a trade-off (Corollary 4.5): for every constant , an -time algorithm for monotone instances of length with entries bounded by would give an -time algorithm for bounded instances of length . A similar trade-off between length and value range applies to bounded inputs without monotonicity.
Theorem 1.6 (see Theorem 5.1). Let and let be an integer. In time one can construct sequences of length with entries in , such that can be computed from in time.
Corollary 1.7 (see Corollary 5.2). Let be a constant. If (min, +)-convolution with entries in can be computed in time for some , then bounded (min, +)-convolution of length can be computed in time .
In particular, a polynomial improvement of the bound of Theorem 1.2 for , even when also has entries in , would give a polynomial improvement for bounded inputs.
Historical perspective. Chan, Vassilevska Williams, and Xu [13] proposed the Strong Min-Plus Convolution Hypothesis, which postulates that bounded (min, +)-convolution requires time. Before [1], our reductions could therefore be read as conditional lower bounds: for bounded monotone instances (Corollary 1.5), for entries bounded by (Corollary 1.7), and for mono(A) 2 and arbitrary bounded B (Proposition 3.9). Since [1] together with the reduction of Bremner et al. gives a truly subquadratic algorithm for bounded (min, +)-convolution, we state these results only as reductions, which relate the exponents of the different variants.
1.2 Technical Overview
Barely monotone sequences. Both algorithms build on the framework of CDXZ [15]. We write with , and similarly for . The coarse convolution restricts the coarse value of an optimal pair for to or . In the basic form of the framework, which we use for bound (b), one multiplies polynomials that record the coarse values only modulo a random prime , keeping the FFT small, and then subtracts the erroneous terms whose coarse values agree with the target only modulo p. For monotone sequences, the indices with the same coarse value form intervals, and erroneous terms can be handled interval by interval. If A is a union of several monotone subsequences, the indices of one subsequence with the same coarse value only form an interval of that subsequence. For bound (b) we process each such group of A against each entry of B with a simple reporting structure; since the groups of one subsequence have disjoint spans, the false positives caused by indices of other subsequences can be charged to the random prime.
For bound (a) we use the bit-by-bit refinement of CDXZ, taking the random prime itself as the splitting scale , so that the coarse sums are computed exactly. Erroneous terms are tracked as segments: maximal intervals of indices , for a fixed output , on which all rounded values of and are constant. A segment whose coarse sum differs from the target is retained near the current minimum only if a fixed integer associated with it is close to a nonzero multiple of , which is unlikely. With interleaved parts, we define segments separately for each pair of parts. To prevent indices of other parts from breaking a segment, we fill the gaps in each part to obtain a filled sequence that is monotone on all of . Subtracting a segment then requires counting the pairs that belong to the two parts, a range-restricted convolution count. We avoid computing most of these counts with an aliasing filter: at every bit level, the polynomial products also record the coarse values modulo a fresh random prime (or when no filtering is needed), and only erroneous segments that agree with the target modulo need to be counted, which we do by scanning them. Larger means larger polynomials but less scanning, and balancing the two at every level gives time for and parts. Nothing in this argument depends on the values at indices outside the parts, which is why infinite entries can be placed arbitrarily.
One bounded sequence. Let with , and let denote the prefix minima of . For we have : the lower bound holds since , and the upper bound is witnessed by the position of the prefix minimum together with an entry of , which is at most . So only entries matter for . For this sketch, assume . We group the outputs by . Each group is an interval of indices, and the relevant entries of lie in the same index interval or the preceding one, within a value window of width . Running the FFT on every group takes time in total, and the outputs are handled by reversing both sequences.
Bounded entries with infinities. We partition the finite entries of into value buckets of width . For each output , the first bucket containing some with determines up to an additive ; only this bucket and the next can contain the optimum. To find the first bucket, we follow the approach for mask convolutions [11]. We group the buckets into blocks, with each large bucket forming its own block. One FFT per block identifies the first relevant block for each output; if that block is small, we scan it. The two relevant buckets are evaluated by brute force if they are small and with a precomputed bounded convolution if they are large. With the total time is .
From bounded to monotone. Adding to makes non-decreasing, but the largest entry can grow to order . Instead, we replace each entry by a block of entries , . Each block is non-decreasing, and since the rounded values are , an offset of between consecutive blocks is enough to make the whole sequence monotone, with entries of order . The rounding loses information, but it can be recovered from the convolution: the minimum of over any consecutive values of equals and hence depends only on (Lemma 4.1). Reading off the appropriate entries of , we learn for every , and these values determine .
Reducing the value range. To go from entries bounded by U to entries bounded by , we split each sequence into layers. Layer keeps the entries in , shifted down by , and replaces every other entry by the dummy value . We pad the layers to length , again with the value , and concatenate them. At the output positions we then see the best contribution of all layer pairs with ; a value below can only come from two genuine entries, so after adding back and minimizing over we recover .
1.3 Related Work
Cygan, Mucha, Wegrzycki, and Włodarczyk [16] and Künnemann, Paturi, and Schneider [23] established fine-grained equivalences between (min, +)-convolution and a number of other problems. Lincoln, Polak, and Vassilevska Williams [24] studied a family of intermediate matrix products and their convolution analogues; for the latter, which include minimum-witness convolution, -time algorithms are known but no -time algorithms. Chan, Vassilevska Williams, and Xu [13] studied the fine-grained complexity of a range of intermediate matrix and convolution problems. Chan and Lewenstein [12] connected binary jumbled indexing to bounded monotone (min, +)-convolution. Amir et al. [3] studied the hardness of jumbled indexing over alphabets of any fixed size , relating it to 3SUM. For the matrix case, the bounded-difference and monotone instances mentioned above arise in algorithms for language edit distance and RNA folding [10], and for range mode and single-source replacement paths [20]. For a survey of fine-grained complexity, see [25].
Organization. After the preliminaries in Section 2, we give our algorithms for barely monotone sequences in Section 3. Section 4 gives the reduction from bounded to bounded monotone (min, +)-convolution, and Section 5 treats value ranges and one bounded sequence, with and without infinite entries. Section 6 describes the history of this work.
2 Preliminaries
We fix notation and the model of computation, and recall two standard tools: bounded (min, +)-convolution via the FFT, and a bound on the probability that a random prime divides a fixed nonzero integer.
For an integer we write , and for integers , an interval used as a set of indices denotes . We write for the indicator of a condition , and . Sequences are indexed from 0, and entries are in unless stated otherwise. For sequences of length and of length , their -convolution is the sequence of length with
with the convention . We say that a pair is a witness for output if and . A sequence is non-decreasing if for all , non-increasing if for all , and monotone if it is either. For a set of indices, a sequence is monotone on if its restriction to (in increasing order of indices) is monotone. The notation suppresses factors polylogarithmic in , and in running-time bounds, stands for .
We work in the word RAM model with words of bits. All finite entries are integers bounded in absolute value by a polynomial in n, so that they fit into words. In Theorems 5.3 and 5.6, only the value range of A is bounded by M; the finite entries of B may range over a polynomially large interval. Randomized algorithms are Las Vegas: they always return the correct answer, and we bound their expected running time.
The following standard FFT lemma uses the technique of Alon, Galil, and Margalit [2]; see also [16, 9].
Lemma 2.1 (Bounded (min, +)-convolution). Let and , and suppose that there are integers and such that every finite entry of lies in and every finite entry of lies in . Then can be computed deterministically in time.
Proof. Consider the bivariate polynomials
The coefficient of in is the number of pairs with and . Hence (and if no such exists). All coefficients are nonnegative integers bounded by . Substituting yields univariate polynomials of degree from which the coefficients of can be read off unambiguously (since , the pair is determined by ), and the product can be computed exactly with the FFT over a suitable prime field (or via fast integer multiplication) in the stated time.
Lemma 2.2. There is an absolute constant such that the following holds. Let . The interval contains at least primes, and if is chosen uniformly at random among them, then for every nonzero integer . Moreover, can be sampled in time.
Proof. By Chebyshev-type estimates (or the prime number theorem), the interval contains at least primes for an absolute constant ; we take . A nonzero integer has at most distinct prime factors that are at least . Hence, using , we get . The primes in can be listed with the sieve of Eratosthenes in time.
3 Barely Monotone Sequences
Both algorithms for barely monotone sequences combine monotone partitions with the framework of CDXZ. We first prove bound (b) of Theorem 1.1, which needs a partition of A only (Section 3.3), and then the more involved bound (a) (Section 3.4).
3.1 Monotone Partitions
A monotone partition of a sequence of length is a partition of its index set such that is monotone on every . Thus mono( ) is the minimum size of a monotone partition.
Lemma 3.1. There is a deterministic algorithm that, given a sequence of length , computes a monotone partition of into at most , parts in time. In particular, .
Proof. The algorithm maintains the set of indices not yet assigned, initially . While , it computes a longest subsequence of that is non-decreasing and a longest one that is non-increasing (each in time [19]), removes the longer of the two from , and makes it a part.
Let . Restricting an optimal monotone partition to shows that can be partitioned into at most monotone subsequences, so one of them has length at least . Hence each iteration leaves at most a fraction of the remaining indices. If , one iteration suffices. Otherwise, after iterations , which is less than for . Thus there are at most iterations. Moreover, by the Erdős–Szekeres theorem [17], every sequence of length contains a monotone subsequence of length at least . While for a threshold , each iteration removes at least elements. Hence, for , the number of iterations that start with is at most . Summing over the at most relevant values of gives at most iterations. Each iteration takes time.
By Lemma 3.1, both algorithms can afford to compute a partition of into parts and, for bound (a), of into parts; since their running times depend polynomially on the number of parts, this loses only polylogarithmic factors.
Remark 3.2. The (min, +)-convolution of two bounded sequences with monotonicity number at most 2 already contains minimum-witness convolution (see Remark 5.7): given , let for and otherwise, and let for and otherwise. Then is constant on and on , is increasing on and constant on , and if and only if some has , in which case is the smallest such .
3.2 The Coarse-Value Framework
We use the framework of CDXZ [15] in the following form. Let with , write , and let be an integer. Write
and let be the coarse convolution.
Lemma 3.3. For every output k and every witness of we have .
Proof. Every pair with has . A pair attaining has , so . A pair with has value at least , so it is not a witness.
Let p be a prime, and consider the trivariate polynomials
For an output and an offset , let be the target, and let
Call a pair with erroneous for if but , and let , where the sum ranges over the pairs that are erroneous for .
Lemma 3.4. For every k, if then
where the inner minimum of an empty set is . Given and all polynomials , the sequence can be computed in time.
Proof. By definition, , where the sum ranges over the pairs with and , all of which have value . So each term of the outer minimum is the minimum value of such a pair, and by Lemma 3.3 some witness of is among these pairs for some . The polynomial has -degree at most , -degree at most and -degree at most , and its coefficients are nonnegative integers at most . By Kronecker substitution it can be computed exactly with the FFT in time, after which every can be read off in time.
It therefore suffices to compute and to enumerate the erroneous pairs. If p is chosen at random, a fixed pair is erroneous only with small probability.
Lemma 3.5. Let be a uniformly random prime in [P, 2P]. For every fixed , and integer with , we have .
Proof. Apply Lemma 2.2 to .
To enumerate erroneous pairs, we use the following reporting structure.
Lemma 3.6. Let , let be an integer, and let . After preprocessing time, the following queries can be answered in time plus time per reported position: given an interval and an integer , report all with and .
Proof. For every residue , store the sorted list of all positions with , and for every entry of a pointer nxt to the next entry of whose X-value differs from its own (or to the end of the list). To answer a query, binary search for the first entry of that is at least , and walk along the list while the current position is at most : if the current position satisfies , follow nxt, which skips only entries of value ; otherwise report and move to the next entry. Every step either reports a position or is a jump that is immediately followed by a reported position or by the end of the walk, so the walk takes at most steps, where is the number of reported positions.
Let be a monotone partition of . For each part , the indices with a fixed value of form a contiguous range of (in increasing index order), because , and hence , is monotone on . We call these ranges the groups of (at scale ); for a group we write for its common coarse value and for its span. The groups have the following properties:
(G1) Every index belongs to exactly one group, and for every group .
(G2) The spans of the groups of a fixed part are pairwise disjoint; hence the sum of the span lengths of all groups is at most mn.
(G3) Each part has at most groups, so there are at most groups in total.
3.3 An Algorithm Using Only One Monotone Partition
Theorem 3.7. Let with , and let . Then can be computed by a Las Vegas algorithm in expected time .
Proof. Using Lemma 3.1, we compute a monotone partition of into parts , where , in time; this is within the claimed bound. The multiplication costs , the queries , and processing the reports an expected ; we choose and to equalize these. Let and , and let be a uniformly random prime in .
The sequences have entries in , so by Lemma 2.1, can be computed in time.
For each , build the structure of Lemma 3.6 on with shift . For every group of , say , every , and every , query the interval with . For every reported output , let ; if , add the term to , and otherwise discard (a false report).
To see that this enumerates exactly the erroneous pairs, let be erroneous for , and let be the group containing , say . Then , and since , the output is reported by the query for ; as the term is added. Conversely, every added term corresponds to a pair with by (G1), so , and the query guarantees that is erroneous for . Each pair is considered only in the query for the unique group containing , so every erroneous pair is added exactly once. By Lemma 3.4, the algorithm is correct for every choice of .
The polynomial multiplication takes time by Lemma 3.4. By (G3) the number of queries is , each with an overhead. A query for reports , possibly as a false report, only if but the two are congruent modulo . All quantities involved are determined before is sampled and bounded by , so by Lemma 3.5 this happens with probability . The number of triples with is by (G2), so by linearity of expectation (over these triples and the two choices of ) the expected number of reports is . In total, the expected running time is
Remark 3.8. The algorithm of Theorem 3.7 requires only that the entries of be bounded by . For , the one-monotone reduction of [9, Theorem 8] and the bounded monotone algorithm of [15, 9] already give the faster expected time . Our result applies when has several interleaved monotone subsequences: for , Theorem 3.7 computes the (min, +)-convolution with an arbitrary bounded sequence in time.
For every fixed , improving the exponent 5/3 to below 3/2 would also improve bounded (min, +)-convolution, by the following reduction.
Proposition 3.9. Let , and suppose that -convolution of sequences with mono( and no restriction on the monotonicity number of can be solved in time . Then bounded -convolution of length can be solved in time . In particular, if for some and some with , then bounded -convolution can be solved in time; this holds already for and an -time algorithm.
Proof. Let . Compute a monotone partition of into parts with Lemma 3.1, and group the parts into groups of at most parts each. For a group with union , let for and otherwise. Then mono( ) , since the indices outside carry a constant value. We claim that is the entrywise minimum of the sequences . Indeed, every pair appears with its original value in the instance of the group containing . Any pair involving the value has value at least , while every output has an original pair of value at most ; so pairs involving never attain the minimum over all instances. The running time is plus for the partition and for combining the results. If for some with , we run the reduction with this ; the total time is , using .
Hence, for a constant number of monotone parts in and arbitrary bounded , an algorithm faster than by a polynomial factor would carry over to bounded (min, +)-convolution, while Theorem 3.7 gives . More generally, for , the threshold of the reduction meets the upper bound of Theorem 3.7 at .
3.4 Both Sequences Barely Monotone
Bound (a) of Theorem 1.1 extends to sequences with infinite entries, provided that their finite entries can be partitioned into few monotone subsequences.
Theorem 3.10. Let , where . Suppose that the finite entries of can be partitioned into monotone subsequences and those of into monotone subsequences. Then can be computed by a Las Vegas algorithm in expected time .
For , Theorem 3.10 gives time whenever the finite entries of each sequence are monotone, with infinite entries placed arbitrarily. This common generalization of bounded monotone (min, +)-convolution and minimum-witness convolution (Remark 5.7) is not covered by the CDXZ algorithm: CDXZ introduce infinite entries in intermediate instances, but their analysis relies on a bound on the number of intervals of infinite entries [15, Lemma 4.3].
The algorithm of Section 3.3 processes each group of A against individual entries of B. To exploit structure in both inputs, we instead refine the values bit by bit, following CDXZ, and process segments: for a fixed output k, maximal intervals of indices i on which all relevant rounded values of and are constant. At each level, CDXZ subtract erroneous contributions segment by segment, using the number of pairs in each segment. For monotone sequences, this count is the segment's length.
To keep the gaps in a part from breaking its segments, we extend each part to a monotone sequence on all of and define segments using these filled sequences. A segment of the part pair may contain indices with or . Its length therefore need not equal the number of contributing pairs: for instance, if , and , and is a segment, then it has length six, but only and satisfy and . Computing that number requires a range-restricted convolution count, for which we know no fast procedure. Instead, we use an aliasing filter: at each bit level, a global polynomial product also records coarse values modulo a fresh random prime (or when no filtering is needed). True contributions always pass this filter, and a false segment needs to be counted only if it also passes, in which case we scan it position by position. Increasing enlarges the polynomial product but reduces the expected scanning cost.

Figure 1: A non-decreasing part (dark dots) interleaved with entries of other parts (grey dots), and its filled sequence (step function). Filling lets the segments of ignore the indices of other parts; contributions are still only counted for indices in .
At each level, we multiply two polynomials to count candidate pairs and subtract the contributions of aliased false segments. We then refine the minimum for each candidate coarse sum and discard candidates that cannot be optimal, and we retain the false segments close to the current minimum for the next level. The moduli determine which segments are scanned, but the retained lists depend only on p. We therefore condition on p when bounding the expected scanning cost over the moduli , and then average over p.
3.4.1 Setup
Let be as in Theorem 3.10, and let and . Let . If or , then , which can be output in time. From now on, we assume that both supports are nonempty and that monotone partitions and of the finite entries into nonempty parts are given, so . If partitions as in the hypothesis are given, then and ; otherwise, Lemma 3.1 computes partitions with and . Each part has a direction (non-decreasing or non-increasing). For let be the index of the part containing , and define analogously. Let , so that .
For let , an interval. We call valid for if and ; in this case its type is . Let be the set of valid , and the set of valid of type , so that is the disjoint union of the sets . Let ; clearly if and only if .
Parameters. In this subsection, the random prime also serves as the scale at which values are split into high and low parts; this differs from Section 3.2, where the scale and the hashing prime are separate parameters. Apart from this, the notation of this subsection is independent of Sections 3.2 and 3.3. The additional moduli introduced in Section 3.4.3 filter high-part sums at individual bit levels. The target time is already quadratic when is a sufficiently large fraction of , so we handle that case directly; the numerical constants below provide slack for later divisibility estimates. Let . If , we use the naive algorithm; so assume , hence and . Let ; then . The polynomial products at levels without filtering take time (Lemma 3.19) and tracking segments takes time (Lemma 3.22); this choice of makes the two equal. Let be a uniformly random prime in and let be the integer with ; thus .
Filled sequences. For every part and , if is nonempty, let
. Otherwise, let if is non-decreasing, and if is non-increasing. Then is monotone on all of , in the same direction as on ; it has entries in , and for . Define analogously. The filled values only define segments; all counted contributions come from the original finite entries (see Fig. 1 for an example with ). For , parts , and , let
For we have ; in particular . The quantity does not depend on any random choices and is used only in the analysis.
High and low parts. Let and , and define analogously. For valid of type we abbreviate and ; these depend only on and . For let , and for let
with if . The elements of are called true for . Thus is the optimum restricted to the valid pairs whose coarse sum is . The algorithm refines these candidate optima without enumerating the sets , and discards a candidate once it cannot attain .
Lemma 3.11. For we have , , and .
Proof. For valid we have with , which gives the middle identity. A valid pair attaining has value less than , while valid pairs with have value at least . So all witnesses of lie in .
For and valid let , , and ; in particular, . The filled versions and are defined for all indices. For let and , so that
If , let ; thus and . Since each summand is rounded before minimizing, need not equal , and the minimizing pair may differ between levels.
Lemma 3.12. Let with , and .
(a) For every valid . The same holds for the filled quantities of any type and any .
(b)
(c) If : , and every with has .
Proof. (a) follows from for . (b) follows by minimizing (a) over . (c) By (1), pointwise; minimizing over gives the first claim. For a minimizer of we get , and since .
3.4.2 Segments
Within a segment the high parts are constant, so the filled low parts are monotone and segments can be refined by binary search.
Definition 3.13. Let , let be a pair of parts, and let . A level- segment of is a maximal subinterval of on which the four quantities , , , are constant. For each these segments partition . For a segment we write and for any . The segment is false for if . If , the false-near set is the set of all triples such that is a level- segment of that is false for and satisfies .
The symmetric window of radius 1 ensures that every retained level- segment has a retained parent at level (Lemma 3.15). To compute the level- minimum, only the parent values and are needed (Lemma 3.12).
If lies in the segment of , then the filled quantities agree with the actual ones, so and . In particular, every lies in a segment of that is false for , and no element of does. Segments may contain non-valid indices and indices of other types; not splitting segments at such indices keeps their number small.
Lemma 3.14 (Splitting). Let and let be a level- segment of . Then is the disjoint union of at most three level- segments of , which can be found by two binary searches. Every level- segment of is contained in exactly one level- segment of .
Proof. On , is constant, so is monotone in , and hence so is , which takes values in , where is the constant value of on . Thus the bit is a monotone function of , and it changes at most once. Similarly, changes at most once on . (The directions of these changes are irrelevant.) Hence is the union of at most three consecutive maximal subintervals on which all four level- quantities are constant; they are maximal since crossing an endpoint of changes a level- quantity, which is a function of the level- quantities. The last claim holds for the same reason.
Lemma 3.15 (Containment). Let and . If and is the level- segment of containing , then .
Proof. , so is false for . Let and . By the filled analogue of (1) and Lemma 3.12(c), and ; since is an integer, .
3.4.3 The Algorithm
The aliasing moduli. We choose to balance polynomial multiplication against scanning: up to logarithmic factors, their costs at level will be and , and since , this suggests . Formally, for let . If , let and let be a uniformly random prime in ; otherwise let , so that every coarse sum passes the filter. All random choices are independent.
The algorithm maintains, for , a set of active pairs, numbers , and lists of triples , where is a level- segment of , stored with its endpoints, and . An active pair represents a coarse sum still under consideration for output . By the invariant below, the stored value equals the rounded minimum whenever . At level , a candidate with is initialized with 0 and all its false segments; the first refinement removes it. For other candidates, stores the false segments near the rounded minimum.
Step 1. Compute the arrays , the high and low parts, and (and hence ). The sequence is the -convolution of and , with at non-finite positions; their finite entries are at most , so we can use Lemma 2.1. For every part, store the sorted list of positions at which (resp. ) changes; there are at most of them per part, and the filled values can be evaluated by binary search in the sorted list of the part.
Step 2. (Level .) Let and , and let be the list of all triples such that is a level- segment of that is false for .
Step 3. For , with :
(a) Compute, for all , , and , the number
as the coefficient of in the product
These polynomials contain all finite entries, irrespective of their parts. We use the convention that for all arguments outside the stated ranges.
(b) For each , perform the following operations.
Let and . For and , let , omitting the second term if . (The sum of two residues lies in , so and are the only values congruent to modulo that can occur.)
Split every into its level- pieces using Lemma 3.14, and record and , where is the sum of the two filled bits on .
Call aliased if divides . Scan every piece of every aliased triple with , that is, compute by testing for each whether
and . For and , let be the sum of over all scanned pieces with and .
The difference counts the true pairs with parent-level value and bit sum (see Lemma 3.16), each of which has next-level value . If for all and , declare inactive; otherwise let
(c) (Pruning.) For each for which some pair is still active, let for each such , and let ; declare inactive if . The remaining pairs form . By Lemma 3.12, , so is an upper bound on the best remaining candidate, and a candidate whose lower bound exceeds it cannot attain . Pruning also keeps every surviving close to , which is needed in the running-time analysis.
(d) For , let be the list of pieces produced in (b) from with . This uses all pieces produced in (b), including those that were not scanned: the aliasing filter only determines which counts are needed at the current level, not which segments are retained.
Step 4. Output for , and for .
3.4.4 Correctness
We prove that an optimal candidate stays active and that each surviving candidate has the correct rounded minimum and list of false segments.
Lemma 3.16 (Invariant). At level : for every , the list consists of all triples such that is a level- segment of that is false for . For every such with , we also have (since , and . For every , after the iteration for :
(II) for every there is with and ;
(I2) every has , , and ;
(I3) every has .
These statements hold for every choice of and of the moduli . In particular, , and depend only on : changing changes the candidate counts and the subtracted false counts by the same amount, so the refinement and pruning decisions are unaffected.
Proof. Level . The statement about the lists holds by Step 2. If then , and while , so .
Induction step. Let , and assume the statements for level ; for , (I1) holds by Lemma 3.11 since all pairs are active. Fix and let , and . Since is congruent to , and every element of congruent to is either or (an out-of-range second term contributes zero), the number counts the with , and . These are of two kinds: those in , and the aliased false ones, for which .
Case . By induction, and . Let , and let be aliased false with parameters , of type . Then lies in a unique level- segment of , which is false for , aliased, and has with . Hence is split and its pieces are scanned, and lies in exactly one piece , for which . Conversely, every for a scanned piece of is valid, aliased false, and has the recorded parameters . Since every valid has exactly one type, is exactly the number of aliased false with parameters , and therefore
By (1) these have . By Lemma 3.12(c), some minimizer of has , and every has . Hence is not declared inactive in (b), and .
Case . By (I2) this is only possible if . Then every counted by is aliased false, and lies in a level- segment of its type that is false for and aliased, with . All such triples are in , and , so the same argument gives , while since . Hence is declared inactive in (b).
Pruning. Every pair surviving (b) satisfies by Lemma 3.12(b). By (I1) at level , some active has . Since , it survives (b). Moreover, , so it also survives pruning. This shows (I1). Every survivor has , which shows (I3).
Lists. For , every piece produced from is a level- segment that is false for (Lemma 3.14). Since , every triple retained by Step 3(d) belongs to . Conversely, by Lemma 3.15, every triple of arises as such a piece and passes the test in Step 3(d). Thus , which shows (I2).
Finally, all objects in (I1)–(I3) are defined in terms of only, and the pairs declared inactive in (b) are exactly those with , whatever is.
Corollary 3.17. The algorithm outputs for every choice of the random prime and auxiliary moduli.
Proof. For the output is correct. For , by (I2) at every active has , and by (I1) one of them attains .
3.4.5 Running Time
We bound the polynomial products, the number of tracked segments, and the total scanned length. The moduli control the product sizes. To bound the segment count, we compare segments with cells fixed before p is sampled. The tracked lists depend only on p (Lemma 3.16), so after conditioning on p we use the fresh modulus to bound each segment's probability of being scanned.
Let be the number of tracked triples at level , and let be the total length of the pieces scanned in Step 3(b) at level . Since depends on , we sum over levels up to the deterministic bound , and set for and for . For each fixed , we bound and , with the expectation over all random choices, and then sum over these levels.
Lemma 3.18 (Deterministic costs). For every choice of the prime and auxiliary moduli, the running time is
Moreover, for every and , the number of level- segments of is at most .
Proof. Number of segments. Along , the value changes at most times, and so does . On each of the at most maximal intervals on which is constant, is monotone with values in , so in total it changes at most times; similarly for . Every segment starts at or at a change.
Costs. Step 1 takes time, plus for computing by Lemma 2.1. Step 2 takes time, by merging the precomputed lists of change positions of and for every . In Step 3(a), the polynomials have -degree less than , -degree less than (as ), -degree at most 1 and -degree less than . Thus Kronecker substitution and the FFT (as in Lemma 2.1) compute their product in time. Choosing takes time. Steps 3(b)-(d) take time per split triple and per piece: each binary search evaluates filled values by another binary search in the sorted list of the part. Including time per active pair and the scanning cost, these steps take . Step 4 takes time. Finally, .
Lemma 3.19 (Polynomial cost). .
Proof. The levels with contribute at most . If , then and , so ; there are levels.
Lemma 3.20 (False segments give approximate multiples of ). Let with and . Then , where and is an integer with .
Proof. Let , and , so . By Lemma 3.12(a), (b), and , hence . Now , and by Lemma 3.11 and Lemma 3.16. So satisfies .
The next lemma is used at cell endpoints in Lemma 3.22 and at individual positions in Lemma 3.23.
Lemma 3.21 (Divisibility near a fixed integer). Let and be integers with , and let be an integer that does not depend on . The probability that there is an integer with , and is .
Proof. Each of the fewer than integers satisfies , so it is divisible by at most two primes from . By the prime-counting bound of Lemma 2.2, the probability that is one of them is . A union bound finishes the proof.
Since , we have for all and .
Lemma 3.22 (Tracked triples). For every fixed , .
Proof. Fix , , and a pair of parts , and suppose . If , then by Lemma 3.16, and the number of triples of type in is at most by Lemma 3.18 (as ). Otherwise, we charge segment starts to cells defined from the filled values. Unlike segment endpoints, the cell boundaries do not depend on , so a fixed-integer divisibility bound applies there. Define a -cell of as a maximal subinterval of on which both and are constant, and let ; has at most cells. Let and . Let be the cell containing , and let . Since and lie in the same cell, and , so . By Lemma 3.20 applied to and , we have with and . Hence the event
occurs. A segment starting in starts at min , at one of the indices where or changes, or at an index where or changes while the corresponding high part does not. On each of the at most runs of on which is constant, is monotone and varies by less than , so changes at most once there, and similarly for . Hence at most segments start in , and . The contribution of is at most . Therefore, for every choice of the prime and auxiliary moduli, the number of triples of type in is at most . The cells and the integers do not depend on . If , then for every and there is nothing to show; otherwise, by Lemma 3.21 with , , and summing over the at most cells gives . Summing over , and the pairs proves the claim.
Lemma 3.23 (Scanned length). For every fixed , .
Proof. Condition on , assume , and let . By Lemma 3.16, and the lists depend only on , and is independent of . Let if , and otherwise, where is the constant of Lemma 2.2. A triple is scanned only if divides , where ; by Lemma 2.2 this has conditional probability at most . Hence
For pairs with , the segments of a fixed type in are disjoint, and by Lemma 3.20 each of their positions satisfies the event
So their contribution is at most . Pairs with occur only if , and contribute at most .
Now fix and take the expectation over . The quantities and , as well as when , do not depend on . If , then for every , so assume . Since the integers do not depend on , Lemma 3.21 with gives . Using , we obtain
The two terms account for the pairs with and , respectively. If , then , and the first term is . For the second term, if , then some admissible has , so and , which bounds the second term by .
If , then and , so the first term is . For the second term, if , then as before, hence and .
Proof of Theorem 3.10. Correctness follows from Corollary 3.17. By Lemmas 3.18, 3.19, 3.22 and 3.23, the expected running time, summed over the levels, is , since and . Together with the time for empty supports and the time of Lemma 3.1 for computing the partitions if they are not given, this gives .
Remark 3.24. All estimates in the proof of Theorem 3.10 remain valid for : with we still have , while the dependence on is retained explicitly until the final simplification. Hence, for finite entries in , the same algorithm and analysis give expected time , where . For , this is , matching the rectangular bound of Bringmann, Dürr, and Polak [9] for while allowing arbitrarily placed infinite entries.
Remark 3.25. The term comes from the trade-off between the polynomial size and the expected scanning cost , whose product is independently of . If the parts of one of the two sequences, say , are intervals (as is the case for a single monotone sequence without infinities), then is a difference of two prefix sums of the indicator of , so no scanning and no aliasing filter are needed, and the running time becomes . Since , this matches the bound of Remark 3.24, so the interval case gives a simpler algorithm but no asymptotic improvement.
4 From Bounded to Monotone (min, +)-Convolution
The reduction in Theorem 1.4, illustrated in Fig. 2, relies on the following identity for floors.
Lemma 4.1. Let be an integer, and let be integers. Let be a set of at least consecutive integers. Then
Proof. Let , and consider any integers with . Write and with . Then with , so , that is, . This proves that the left-hand side is at least the right-hand side. Conversely, since contains consecutive integers, there is with . For and we then have , hence and

Figure 2: The reduction of Theorem 4.2 for , and , so that . Every entry becomes a non-decreasing block of 2w entries , and consecutive blocks are separated by the offset , so the resulting sequence is monotone.
Theorem 4.2. Let and let be an integer. Set and define the sequences of length by
Then and are non-decreasing with entries in , and for every and ,
Consequently, can be computed from in time.
Proof. Write and . Let , so that . For every and we have . Let , so that .
Within the block of index , the entries are non-decreasing in . The last entry of block is at most , which is at most the first entry of block . Hence is non-decreasing, and its entries lie in . The same holds for .
Fix and , and let . A pair of positions with and contributes to if and only if . Since and , this happens exactly in the following two cases:
(i) and ; such a pair has value at least ;
(ii) and ; such a pair has value .
Pairs of type (ii) exist: since there are with , and then every gives . Let denote the minimum value of a type (ii) pair. We have
Since , applying Lemma 4.1 with , , and shows that the inner minimum equals . As
is non-decreasing, minimizing over gives . Finally, since and , we have , so no type (i) pair has a smaller value than . Hence , which proves (2).
Fix , and let for ; by (2) all these values can be read off from . Write with . Then ; in particular , and the smallest with is . Hence , which can be computed in time per .
Remark 4.3. Reversing the index order of both constructed sequences gives non-increasing instances and reverses the output order. Negating both sequences and adding constant offsets converts the construction into one for -convolution. Recovering uses only the entries of listed in (2).
Corollary 4.4. Suppose that (min,+) -convolution on non-decreasing sequences of length N with entries in can be solved in time , for a sufficiently large constant c, where is non-decreasing. Then (min,+) -convolution on sequences of length n with entries in can be solved in time . In particular, if for some , then bounded (min,+) -convolution can be solved in time.
Proof. Apply Theorem 4.2 with and . The resulting sequences have length and entries at most . The remaining claims follow from . Since forces , the construction cost is dominated by .
Choosing balances length against value range. More generally, gives the trade-off below: recovers Corollary 4.4, and (so ) is essentially the linear-offset reduction that adds to .
Corollary 4.5. Let be a constant. If -convolution on non-decreasing sequences of length with entries in can be solved in time for some , then -convolution on sequences of length with entries in can be solved in time.
Proof. Apply Theorem 4.2 with and . The length is and the entries are at most . The construction and readout take time, which is truly subquadratic since .
In terms of the length and the value bound , we have . So by Corollary 4.5, for every fixed , that is, roughly in the range , an -time algorithm for monotone (min, +)-convolution would give an -time algorithm for bounded inputs of length . For comparison, the algorithms of [15, 9] run in expected time .
5 Bounded Value Ranges
5.1 Reducing the Value Range
We prove Theorem 1.6 by splitting the entries into value layers and concatenating the layers.
Theorem 5.1. Let , let be an integer, and let . Define sequences of length as follows: for and , let
and define analogously. Then , and for every ,
In particular, can be computed from in time.
For example, for , , and , we have layers of length , and
where every entry equal to is a dummy.
Proof. Every entry of is either 2L or of the form , so ; similarly for . Call a position of real if and , and a dummy otherwise; every has exactly one real position, namely in layer . Layers have length 2n so that the within-layer offsets of two real positions sum to less than 2n.
Fix and , and let . Consider a pair of positions with . If both positions are real, then , so and therefore and ; the value of the pair is , which is less than because and . If at least one position is a dummy, the value of the pair is at least , since all entries are nonnegative. Hence holds if and only if there is a pair with and , and in this case
Every pair with has , so taking the minimum over proves (3).
Corollary 5.2. Let be a constant, and suppose that -convolution on sequences of length with entries in can be solved in time for some . Then bounded -convolution on sequences of length can be solved in time .
Proof. Let . Apply Theorem 5.1 with and . The resulting length is ; moreover, for large enough, , so the entries are at most . The running time is , plus for the reduction, which is truly subquadratic since . Since writing the output takes linear time, we may assume , in which case the first term dominates.
5.2 One Bounded Sequence Suffices
We now prove Theorem 1.2 by splitting the instance into subinstances that are covered by Lemma 2.1.
Theorem 5.3. Let and . Then can be computed deterministically in time.
Write . It suffices to compute the outputs for : the outputs with follow by applying the same procedure to the reversed sequences and , since . If then for , so assume .
Let denote the prefix minima of . If , then . Let be the smallest index with ; if no such index exists, then , and otherwise for .
Lemma 5.4. For every with we have . Moreover, every witness of satisfies .
Proof. Every pair with has , hence . On the other hand, let with and . Then , so . Finally, a witness satisfies , and holds as .
Proof of Theorem 5.3. For define the level . Since is non-increasing, is non-decreasing, so for every the set is a (possibly empty) interval. Let (with ), which is an interval as well. Fix with and , and let be a witness of . Since , we have , so is defined. By Lemma 5.4, , so . Since and is non-decreasing, also , so . Moreover, , and , so lies in the window of length 2M.
Let and , and define the sequence of length by if , and otherwise. Let . We show that for all . Every pair contributing to with finite value corresponds to the pair for , so the right-hand side is at least . Conversely, a witness of has and as shown above, and ; so it corresponds to the pair on the right-hand side.
The finite entries of lie in and those of in an interval of length 2M, so by Lemma 2.1 the convolution can be computed in time. An index in belongs only to and , so , and the total running time is . Computing , the levels, and the intervals takes time: we process only the nonempty levels, which are the maximal runs of the non-decreasing sequence .
Remark 5.5. The proof uses that has no infinite entries: the comparison pair in the proof of Lemma 5.4 must have finite value. If has length and has length , the same running time is obtained by padding with entries when , and by splitting into consecutive chunks of length (the last one padded with ) when ; in the latter case, the output is the entrywise minimum of the chunk outputs, each shifted by the starting index of its chunk.
5.3 Bounded Entries with Infinities
To prove Theorem 1.3, we replace the prefix-minimum prediction by a search for the first relevant value bucket of B.
Theorem 5.6. Let and , where . Then can be computed deterministically in time.
Proof of Theorem 5.6. Write and let . For every with let be its bucket, and for every integer let . A bucket is heavy if and light otherwise; there are at most heavy buckets. Sort the indices with by , and partition the sorted order into blocks. Each heavy bucket forms its own block. In each maximal run of light buckets, greedily add whole buckets to a block until it contains at least elements, then start a new block. Each block consisting of light buckets has fewer than elements, and all but at most one block in each such run have at least elements. There are at most heavy buckets, hence at most runs of light buckets, and at most blocks with at least elements; so there are blocks. By construction, blocks are ordered by value: all elements of an earlier block have smaller buckets than all elements of a later block.
For an output , call feasible if , and . If no is feasible, . Otherwise, let feasible for .
Step 1: computing . We follow [11, Lemma 1]. For every block , we multiply the indicator polynomials of and of with one FFT, which gives the number of feasible for every . The exponents are the original indices; only the grouping into blocks uses the sorted order. This takes time per block, and time in total. For every , the first block with contains a feasible of minimal bucket, because blocks are ordered by value and consist of whole buckets. If is a heavy bucket , then . Otherwise, we scan the elements of in sorted order and return the bucket of the first feasible one; this takes time. In total, Step 1 takes time.
Step 2: the relevant buckets. Let have a feasible , and let . Every feasible has , so . A feasible with has and , so . A feasible with has . Hence every witness satisfies , and
Step 3: evaluating a bucket. For every heavy bucket , precompute , where for and otherwise. The finite entries of lie in , so by Lemma 2.1 this takes time per heavy bucket, and time in total. For every having a feasible index and every , the inner minimum above is if is heavy, and we compute it by brute force over in time if is light. With the buckets stored in a sorted array, this takes time in total.
The total running time is .
Remark 5.7. In the minimum-witness convolution problem we are given sets and must compute, for every , the smallest with . This is the special case of Theorem 5.6 with , for , otherwise, and for , otherwise. The best known algorithms for minimum-witness convolution take time [4, 11] (see also [24]), so an -time algorithm for the problem of Theorem 5.6, even for and some fixed , would improve the state of the art for minimum-witness convolution.
6 Research History and Use of AI Tools
Since October 2025, we have been working toward a truly subcubic algorithm for APSP, and toward truly subcubic and truly subquadratic algorithms for the many special cases of APSP and of the (min, +)-product studied in fine-grained complexity. Since (min, +)-convolution reduces to the (min, +)-product, and since its monotone and bounded-difference variants are among the best-understood special cases, much of our effort has focused on monotone (min, +)-convolution and on understanding how much of its structure is really needed for fast algorithms.
The first artifact of this program is our SODA 2027 paper [21], which gives truly sublinear dynamic algorithms for both (min, +)-convolution and (min, +)-matrix multiplication under marginal updates. Its central contribution is a framework that carries the structural advantages of static, bounded-value problems over to a dynamic setting in which the values may grow without bound. For (min, +)-convolution, we combined this framework with structure from additive combinatorics and obtained update and query times of ; for (min, +)-matrix multiplication, we combined it with graph-theoretic structure specific to bounded matrices and obtained truly sublinear algorithms whenever the updates are not too concentrated, which is tight under the OMv conjecture. The paper also ties the dynamic and static problems together: static bounded-difference (min, +)-convolution reduces to its dynamic counterpart, so sufficiently fast dynamic algorithms would improve the static exponent, and our algorithms yield solutions to the bounded-difference versions of the problems introduced by Chan and Lewenstein [12] and by Bringmann, Grandoni, Saha, and Vassilevska Williams [10].
Very recently, Alman and Vassilevska Williams [1] obtained a truly subcubic algorithm for APSP with polynomially bounded integer weights, answering the central question that motivated our program for this setting. In light of their result, we are posting the present paper as an artifact of our progress so far on the structured special cases, which remain of independent interest: for inputs of small monotonicity, our algorithms achieve exponents far below the exponent close to 2 that follows from [1].
All results in this paper were obtained without AI, except two, which were obtained with AI models: the reduction from bounded to bounded monotone (min, +)-convolution (Theorem 4.2 and Corollaries 4.4 and 4.5), and the reduction of the value range (Theorem 5.1 and Corollary 5.2). AI tools were additionally used in writing the paper.
References
[1] Josh Alman and Virginia Vassilevska Williams. Truly subquadratic 3SUM and truly subcubic APSP via triangles in sparse lopsided graphs, 2026. arXiv:2610.06783. arXiv:2610.06783.
[2] Noga Alon, Zvi Galil, and Oded Margalit. On the exponent of the all pairs shortest path problem. J. Comput. Syst. Sci., 54(2):255–262, 1997. Preliminary version in FOCS 1991.
[3] Amihood Amir, Timothy M. Chan, Moshe Lewenstein, and Noa Lewenstein. On hardness of jumbled indexing. In Proc. 41st International Colloquium on Automata, Languages, and Programming (ICALP), volume 8572 of Lecture Notes in Computer Science, pages 114–125. Springer, 2014.
[4] László Babai and Pedro F. Felzenszwalb. Computing rank-convolutions with a mask. ACM Trans. Algorithms, 6(1):20:1–20:13, 2009.
[5] Arturs Backurs, Piotr Indyk, and Ludwig Schmidt. Better approximations for tree sparsity in nearly-linear time. In Proc. 28th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2215–2229, 2017.
[6] MohammadHossein Bateni, MohammadTaghi Hajiaghayi, Saeed Seddighin, and Cliff Stein. Fast algorithms for knapsack via convolution and prediction. In Proc. 50th Annual ACM Symposium on Theory of Computing (STOC), pages 1269–1282, 2018.
[7] David Bremner, Timothy M. Chan, Erik D. Demaine, Jeff Erickson, Ferran Hurtado, John Iacono, Stefan Langerman, Mihai Pătrașcu, and Perouz Taslakian. Necklaces, convolutions, and . Algorithmica, 69(2):294–314, 2014. Preliminary version in ESA 2006.
[8] Karl Bringmann and Alejandro Cassis. Faster knapsack algorithms via bounded monotone min-plus-convolution. In Proc. 49th International Colloquium on Automata, Languages, and Programming (ICALP), volume 229 of LIPIcs, pages 31:1–31:21, 2022.
[9] Karl Bringmann, Anita Dürr, and Adam Polak. Even faster knapsack via rectangular monotone min-plus convolution and balancing. In Proc. 32nd Annual European Symposium on Algorithms (ESA), volume 308 of LIPIcs, pages 33:1–33:15, 2024.
[10] Karl Bringmann, Fabrizio Grandoni, Barna Saha, and Virginia Vassilevska Williams. Truly sub-cubic algorithms for language edit distance and RNA-folding via fast bounded-difference min-plus product. In Proc. 57th IEEE Annual Symposium on Foundations of Computer Science (FOCS), pages 375–384, 2016.
[11] Timothy M. Chan and Qizheng He. More on change-making and related problems. In Proc. 28th Annual European Symposium on Algorithms (ESA), volume 173 of LIPIcs, pages 29:1–29:14, 2020.
[12] Timothy M. Chan and Moshe Lewenstein. Clustered integer 3SUM via additive combinatorics. In Proc. 47th Annual ACM Symposium on Theory of Computing (STOC), pages 31–40, 2015.
[13] Timothy M. Chan, Virginia Vassilevska Williams, and Yinzhan Xu. Fredman's trick meets dominance product: Fine-grained complexity of unweighted APSP, 3SUM counting, and more. In Proc. 55th Annual ACM Symposium on Theory of Computing (STOC), pages 419–432, 2023.
[14] Shucheng Chi, Ran Duan, and Tianle Xie. Faster algorithms for bounded-difference min-plus product. In Proc. 33rd Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1435–1447, 2022.
[15] Shucheng Chi, Ran Duan, Tianle Xie, and Tianyi Zhang. Faster min-plus product for monotone instances. In Proc. 54th Annual ACM Symposium on Theory of Computing (STOC), pages 1529–1542, 2022.
[16] Marek Cygan, Marcin Mucha, Karol Węgrzycki, and Michał Włodarczyk. On problems equivalent to (min, +)-convolution. ACM Trans. Algorithms, 15(1):14:1–14:25, 2019. Preliminary version in ICALP 2017.
[17] Paul Erdős and George Szekeres. A combinatorial problem in geometry. Compositio Mathematica, 2:463–470, 1935.
[18] Fedor V. Fomin, Dieter Kratsch, and Jean-Christophe Novelli. Approximating minimum cocolorings. Inf. Process. Lett., 84(5):285–290, 2002.
[19] Michael L. Fredman. On computing the length of longest increasing subsequences. Discrete Mathematics, 11(1):29–35, 1975.
[20] Yuzhou Gu, Adam Polak, Virginia Vassilevska Williams, and Yinzhan Xu. Faster monotone min-plus product, range mode, and single source replacement paths. In Proc. 48th International Colloquium on Automata, Languages, and Programming (ICALP), volume 198 of LIPIcs, pages 75:1–75:20, 2021.
[21] MohammadTaghi Hajiaghayi, Danny Mittal, and Saeed Seddighin. Truly sublinear dynamic (min, +)-convolution and matrix multiplication. In Proc. 38th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2027. To appear.
[22] Ce Jin, Jaewoo Park, Barna Saha, and Yinzhan Xu. Deterministic monotone min-plus product and convolution. In Proc. 53rd International Colloquium on Automata, Languages, and Programming (ICALP), volume 374 of LIPIcs, pages 119:1–119:23, 2026. arXiv:2605.07150.
[23] Marvin Künnemann, Ramamohan Paturi, and Stefan Schneider. On the fine-grained complexity of one-dimensional dynamic programming. In Proc. 44th International Colloquium on Automata, Languages, and Programming (ICALP), volume 80 of LIPIcs, pages 21:1–21:15, 2017.
[24] Andrea Lincoln, Adam Polak, and Virginia Vassilevska Williams. Monochromatic triangles, intermediate matrix products, and convolutions. In Proc. 11th Innovations in Theoretical Computer Science Conference (ITCS), volume 151 of LIPIcs, pages 53:1–53:18, 2020.
[25] Virginia Vassilevska Williams. On some fine-grained questions in algorithms and complexity. In Proceedings of the International Congress of Mathematicians (ICM), volume 4, pages 3447–3487. World Scientific, 2018.
[26] Virginia Vassilevska Williams and R. Ryan Williams. Subcubic equivalences between path, matrix, and triangle problems. J. ACM, 65(5):27:1–27:38, 2018. Preliminary version in FOCS 2010.
[27] Virginia Vassilevska Williams and Yinzhan Xu. Truly subcubic min-plus product for less structured matrices, with applications. In Proc. 31st Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 12–29, 2020.
[28] Klaus W. Wagner. Monotonic coverings of finite sets. Elektronische Informationsverarbeitung und Kybernetik, 20(12):633–639, 1984.
[29] R. Ryan Williams. Faster all-pairs shortest paths via circuit complexity. SIAM J. Comput., 47(5):1965–1985, 2018. Preliminary version in STOC 2014.