Exact (n + 2) Comparison Complexity for the N-Repeated Element Problem
Andrew Au

TL;DR
This paper precisely determines the minimum number of comparisons needed to find an element repeated n times in a 2n-element array, establishing a tight bound of n+2 comparisons using combinatorial and adversarial arguments.
Contribution
It introduces an exact comparison complexity bound for the problem and proves its tightness with a novel adversary argument and graph-theoretic analysis.
Findings
Exact comparison bound of n+2 comparisons established
Deterministic algorithm matching the lower bound provided
Graph-theoretic adversary argument demonstrates bound tightness
Abstract
This paper establishes the exact comparison complexity of finding an element repeated times in a -element array containing distinct values, under the equality-comparison model with extra space. We present a simple deterministic algorithm performing exactly comparisons and prove this bound tight: any correct algorithm requires at least comparisons in the worst case. The lower bound follows from an adversary argument using graph-theoretic structure. Equality queries build an inequality graph ; its complement (potential-equalities) must contain either two disjoint -cliques or one -clique to maintain ambiguity. We show these structures persist up through comparisons via a "pillar matching" construction and edge-flip reconfiguration, but fail at . This result provides a concrete, self-contained demonstration of exact lower-bound…
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 · Constraint Satisfaction and Optimization
