Batch range mode in O(n+Q)^1.395
Filippo di Gravina
Key points
From the paper's conclusion- We give a deterministic worst-case algorithm for exact Batched Range Mode on an arbitrary array of length n and a batch of Q intervals.
Abstract
We give a deterministic worst-case algorithm for exact Batched Range Mode on an arbitrary array of length n and a batch of Q intervals. The algorithm returns the mode frequency and the smallest mode identifier for each query in time (n+Q)^(tau+o(1)), where tau = 5 - sqrt(13) = 1.394448724536... . The algorithm combines virtual occurrence windows and block-boundary snapping with a query-restricted min-plus product whose first operand is column-monotone and whose second operand is row-monotone. A deterministic modular verifier uses geometric and query potentials to bound the same active regions; false modular matches are corrected by offline orthogonal range updates. The final analysis uses the sharper rectangular exponent curve of Uznanski (2026), together with exact rational parameter balancing and a transfer to prime fields. The analysis covers every frequency scale and arbitrary batch sizes. Exact frequencies and the smallest mode identifiers are recovered without increasing the exponent.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Barely Monotone (min,+)-Convolution in Truly Subquadratic TimearXiv · 2026
- Bounded Knapsack in Truly Subquadratic TimearXiv · 2026
- Min-Plus Products and Dynamic Programming with Few Violations of the Adjacent Monge InequalitiesarXiv · 2026
- Local Modifications of Nearest-Neighbor and Min-Plus RepresentationsarXiv · 2026
- Even Faster Algorithms for Bounded Integer ProgrammingarXiv · 2026
- Truly Sub-$3^n$ Min-Sum Subset Convolution and Join OrderingarXiv · 2026