Exact (n + 2) Comparison Complexity for the N-Repeated Element Problem
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 techniques, bridging toy problems with nontrivial combinatorial reasoning.
Cite
@article{arxiv.2601.21202,
title = {Exact (n + 2) Comparison Complexity for the N-Repeated Element Problem},
author = {Andrew Au},
journal= {arXiv preprint arXiv:2601.21202},
year = {2026}
}