Tight Better-Than-Worst-Case Bounds for Element Distinctness and Set Intersection
Ivor van der Hoog, Eva Rotenberg, Daniel Rutschmann

TL;DR
This paper establishes tight, instance-specific lower and upper bounds for the element distinctness problem, demonstrating that input structure significantly influences algorithmic complexity, and also explores related set intersection bounds.
Contribution
It introduces instance-specific lower bounds for element distinctness based on input duplicate structure and provides matching algorithms, advancing beyond classical worst-case analysis.
Findings
Deterministic algorithms cannot be o(log log n)-competitive for element distinctness.
An O(log log n)-competitive deterministic algorithm matches the lower bound.
Set intersection has a lower bound of o(log n) and an O(log n)-competitive algorithm.
Abstract
The element distinctness problem takes as input a list of values from a totally ordered universe and the goal is to decide whether contains any duplicates. It is a well-studied problem with a classical worst-case comparison-based lower bound by Fredman. At first glance, this lower bound appears to rule out any algorithm more efficient than the naive approach of sorting and comparing adjacent elements. However, upon closer inspection, the bound does not apply if the input has many duplicates. We therefore ask: Are there comparison-based lower bounds for element distinctness that are sensitive to the amount of duplicates in the input? To address this question, we derive instance-specific lower bounds. For any input instance , we represent the combinatorial structure of the duplicates in by an undirected graph that…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsComplexity and Algorithms in Graphs · Advanced Graph Theory Research · Optimization and Search Problems
