arXiv:2610.10282cs.DSOct 2026

Manuscript Offprint

arXiv:2610.10282

Truly Sub-3n3^n Min-Sum Subset Convolution and Join Ordering

Mihail Stoian

Abstract

We present a deterministic reduction from min-sum subset convolution to min-plus matrix product. We show that if the min-plus product of two D×DD \times D matrices with β\beta-bit integer entries can be computed in D3−δD^{3-\delta} poly( β\beta, log⁡D\log D) time for a fixed rational 0<δ<10 < \delta < 1, then min-sum subset convolution on an n-element universe can be solved in (2+2−δ)n2O(nlog⁡(n+1))(2+2^{-\delta})^n 2^{O(\sqrt{n} \log(n+1))} poly( nn, β\beta) time. Instantiating this reduction with the recent breakthrough on subcubic min-plus matrix product by Alman and Vassilevska Williams gives a Las Vegas algorithm with expected running time O∗(2.9987n)O^*(2.9987^n) and a deterministic algorithm with running time O∗(2.9997n)O^*(2.9997^n), strictly breaking the longstanding 3n3^n computational barrier. Notably, these speedups translate directly to database query optimization, yielding the same expected and deterministic running-time bounds for join ordering under the CoutC_{\text{out}} cost function.

1 Introduction

Consider two functions f,g:2[n]→Z∪{+∞}f, g: 2^{[n]} \to \mathbb{Z} \cup \{+\infty\}. Their min-sum subset convolution is defined as:

h(S)=(f⋆g)(S)=min⁡A∪B=S(f(A)+g(B)),S⊆[n].(1)h(S)=(f\star g)(S)=\min_{A\cup B=S}\big(f(A)+g(B)\big),\qquad S\subseteq[n]. \tag{1}

A naive, direct evaluation inherently examines 3n3^n ordered disjoint pairs (A,B)(A, B). Previous work by Björklund, Husfeldt, Kaski, and Koivisto [BHKK07] established a fast subset-convolution algorithm over rings, alongside an O~(2nM)\widetilde{O}(2^n M)-time algorithm for min-sum subset convolution where integer values are strictly bounded in magnitude by MM. Stoian [Sto24] later conjectured that exact min-sum subset convolution could not achieve O((3−ε)n polylog M)O((3 - \varepsilon)^n \text{ polylog } M)-time for any constant ε>0\varepsilon > 0.

In the domain of database query optimization, this very primitive appears in the problem of join ordering, under the setting of bushy query plans, with many advances on the exact algorithm since the infancy of the field [SAC +^{+}79, CM95, VM96, MS96, Van98, OL90, MN06, MN08, HD23]. Stoian and Kipf [SK24] formalized this alignment in DPconv, demonstrating an exact algorithm for the CoutC_{out} objective that relies on the bounded-integer subset-convolution algorithm. While the running time of their algorithm for the alternative CmaxC_{max} objective avoids the dependence on the largest cardinality W, their exact CoutC_{out} optimization exhibits a linear dependency in this parameter, namely O∗(2nW)O^{*}(2^{n}W).

Contribution. We introduce a deterministic reduction from min-sum subset convolution to min-plus matrix products. This reduction implies a truly sub- 3n3^{n} algorithm given the recent subcubic matrix product algorithm [AW26]. Crucially, our algorithm is exact, imposes no polynomial bound on the magnitude of the integer inputs, and has only polynomial dependence on their binary encoding length. We show that the similar time bound holds in the setting of join ordering via the connection established in [SK24]; similar improvements are natural to other problems, whose solutions use this primitive (see, e.g., [FK10, BHKK07, Sto24] for a few examples). Needless to say, the latter result, touching a fundamental problem in query optimization, comes as a (huge) surprise to the author.

Computational Model. Throughout, all finite values of the input functions and all cardinality estimates are integers represented in binary. Let β≥1\beta \geq 1 bound their bit length. For subset convolution, the two input functions are supplied as explicit tables of 2n2^n values each; these tables may also contain the symbol +∞+ \infty. We use a random-access model and charge arithmetic according to operand bit length. All computations are exact, and polynomial factors in address length are included in the bounds. The notation O∗(an)O^*(a^n) suppresses factors polynomial in nn and β\beta, but never polynomial factors in the full 2n2^n-entry table size. A Las Vegas algorithm always returns the exact answer and has the stated expected running time.

Theorem 1 (Min-sum subset convolution). Fix a rational 0<δ<10 < \delta < 1. Suppose the min-plus product of two D×DD \times D integer matrices with β\beta-bit entries can be computed in D3−δD^{3-\delta} poly( β\beta, log⁡D\log D) time. Then min-sum subset convolution can be computed in time

(2+2−δ)n2O(nlog⁡(n+1))poly⁡(n,β).(2)(2+2^{-\delta})^{n}2^{O(\sqrt{n}\log(n+1))}\operatorname{p o l y}(n,\beta). \tag{2}

A deterministic product algorithm gives a deterministic convolution algorithm. A Las Vegas product algorithm gives a Las Vegas convolution algorithm with the corresponding expected bound.

We prove Theorem 1 in Sec. 4. Combining it with the min-plus algorithms of Alman and Vassilevska Williams [AW26] yields the following bounds.

Corollary 2. Min-sum subset convolution on integer inputs can be computed by a Las Vegas algorithm in expected O∗(2.9987n)O^{*}(2.9987^{n}) time and by a deterministic algorithm in O∗(2.9997n)O^{*}(2.9997^{n}) time.

Corollary 3. The same bounds hold for join ordering under CoutC_{out}, provided each cardinality estimate c(S)c(S) can be obtained in poly(n,β)\text{poly}(n, \beta) time. For ordinary undirected query graphs, both bounds hold whether cross products are permitted or forbidden.

Our Lemma 8 (Appendix A) gives min-plus exponents 2.998 and 2.9995 for the Las Vegas and deterministic algorithms, respectively. Since Theorem 1 assumes an exponent of 3−δ3 - \delta, we take

δ=3−2.998=0.002andδ=3−2.9995=0.0005,\delta=3-2.998=0.002\qquad and\qquad\delta=3-2.9995=0.0005,

respectively. Substituting these values gives

2+2−0.002=2.998614666…<2.9987,2+2−0.0005=2.999653486…<2.9997.2+2^{-0.002}=2.998614666\ldots<2.9987,\qquad2+2^{-0.0005}=2.999653486\ldots<2.9997.

In each case, the gap between the two constants absorbs the subexponential factor in Eq. (2). We justify the min-plus bounds in Sec. A and prove the join-ordering result in Sec. 5. 1^{1}

References (20)