The Sync Heap: Delete First, Ask Questions Later

📅 2026-08-07
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work challenges the classical logarithmic lower bound for insertion and extract-min operations in comparison-based heaps, which stems from the requirement to immediately identify the element being deleted. Building upon Chazelle’s soft heap framework, the paper introduces a novel deterministic data structure—termed the *sync heap*—that decouples deletion from the immediate revelation of element identity. By incorporating mechanisms such as delayed synchronization of deletions, operation reordering, and compression, the sync heap achieves constant amortized time complexity for both insertions and deletions under the practical assumption that the user performs only a constant number of queries. This breakthrough not only surpasses the long-standing logarithmic barrier but also improves the optimal solution for the unit-time scheduling problem from $O(n \log n)$ to $O(n)$.
📝 Abstract
Heaps (priority queues) are among the best-studied data structures in computer science. In this paper, we critically revisit the textbook assumption that in the comparison model at least one of the two standard heap operations of inserting an element and deleting the minimum must take logarithmic time. By decoupling the deletion itself from the act of revealing the identity of the deleted element to the user, we avoid the sorting barrier and obtain a novel trade-off between the complexities of heap operations. This shows that the logarithmic barrier is not inherently the cost of deleting the minimum but rather the information cost of immediately learning which element was deleted. In the special case when the user inspects the heap state only constantly many times, we show that both insertions and deletions can be supported in constant amortized time. As an application, this yields a runtime improvement from $\mathcal{O}(n \log n)$ to the optimal $\mathcal{O}(n)$ for a textbook unit-time scheduling problem. We obtain our results by designing a new data structure, the sync heap, which gains speed by rearranging and compacting its operations until queries force it to synchronize and reveal its state. As a key component, we use the soft heap introduced by Chazelle as part of his minimum spanning tree algorithm. Our data structure is simple, comparison-based, and deterministic, and our results are asymptotically optimal.
Problem

Research questions and friction points this paper is trying to address.

heap
priority queue
amortized time
comparison model
logarithmic barrier
Innovation

Methods, ideas, or system contributions that make the work stand out.

sync heap
amortized constant time
deletion-identification decoupling
comparison-based data structure
soft heap
🔎 Similar Papers