Skip to content
Preprint

The Price of Order in the Logarithmic Method

Jul 2026 · 0 citations · 42 references
Computer Science

TL;DR

This paper pinpoints the access-model obstruction behind the extra logarithm for exact order and range queries, and the quadratic barrier for select, and bound the product between the total amount of data written during the $n$ insertions and the worst-case amount of data read by a single query, known as the write-read product.

Abstract

The logarithmic method is a classical static-to-dynamic transformation: it stores one dynamic ordered set as several immutable static components and rebuilds them by merges. The same component-and-merge discipline underlies write-optimized ordered indexes, where cheap insertions must be reconciled with exact ordered queries. In this paper, we study the insertion-only version after $n$ insertions, over abstract keys, in a strongly materialized merge-stack model with sequential component merges and one forward scan of the live components per query. We bound the product between the total amount of data written during the $n$ insertions and the worst-case amount of data read by a single query, known as the write-read product. The optimal bounds are as follows: - Membership and local certificates: $\Theta(n\log^2 n)$. - Order and range queries with named keys or endpoints: $\Theta(n\log^3 n)$. - Select: $\Theta(n^2)$. Thus, the logarithmic method does not impose a universal dynamic overhead: under materialized one-way access, the optimum depends on what information the query reveals before the scan starts. This pinpoints the access-model obstruction behind the extra logarithm for exact order and range queries, and the quadratic barrier for select.

View source

Similar papers

Preprint Sep 2026

Dense Interprocedural Dominance in Acyclic Graphs: Context Bounds and Compact Queries

Interprocedural dominance asks which program points every matched call-and-return execution must pass on its way to a target. An analysis that writes out immediate dominance pays for the transitive reduction of this order, the minimal dominator graph. Measured instances of that graph look near-linear, with edge-to-node...

Pei-Sen Yao · 0 citations
Preprint Sep 2026

A Refined Analysis of the Sequential Access Theorem for Splay Trees

A splay tree is a self-adjusting binary search tree that allows access, insertion, and deletion to be performed in amortized $O(\log n)$ time, where $n$ is the number of stored elements. The sequential access theorem states that, when the elements of a splay tree are accessed in increasing order, the amortized cost per...

Naonori Kakimura, Y. Terai · 0 citations
Preprint Sep 2026

Should Tables Be Sorted? Revisited with a Large Language Model

We revisit the implicit membership problem in Yao's full-table model [Yao, 1981] and obtain, to our knowledge, the first quantitative improvements to his 45-year-old Ramsey bounds, most notably reducing the two-probe bound from tower-type to polynomial. In this model, an $n$-set $S\subseteq\{1,\ldots,m\}$ is stored as...

Song-Hua He · 0 citations
Preprint Sep 2026

Deterministic Linear-Time Modular Subset Sum

We give a deterministic $O(m)$-time algorithm for exact modular subset sum over every modulus $m$. The input gives distinct residues and their multiplicities. The algorithm reports all reachable residues and answers one target query. It returns a witness when the target is reachable. The algorithm uses $O(m)$ auxiliary...

Phuoc Dinh Le, K. Lê · 0 citations
Preprint Sep 2026

Transposition achieves OPT$+O(1)$ in polynomial time for IID list update

In the classical list update problem, a set of items must be stored in a list-type structure, where accessing the $i$-th element costs $i$. Items will be queried in an IID manner according to some probability distribution $p$ on the items. We want to minimize the expected cost of each query. The optimal order is to pla...

Clayton Mizgerd · 0 citations
Preprint Sep 2026

The Power of Two-Choice Linear Probing

This paper considers the following basic question: If an (ordered) linear-probing hash table is allowed \emph{two} hash functions, instead of one, how does this change the expected insertion and query time, as a function of the load factor $1 - \epsilon$? We prove that the \emph{greedy two-choice insertion strategy} ac...

Amir Azarmehr, Michael A. Bender, William Kuszmaul et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.