Frequency Estimation from the Internal State of the Boyer-Moore Majority Vote Algorithm
Saeed Momeni, Mohsen Hooshmand
Key points
From the paper's conclusion- The results demonstrate that the internal state of the Boyer-Moore algorithm can provide frequency information without increasing its O(1) space complexity.
Abstract
The Boyer-Moore Majority Vote algorithm identifies a majority candidate in a single pass over a data stream using constant memory O(1) and linear processing time O(n). While the classic algorithm identifies a candidate without directly estimating its frequency, its internal register states retain information about item occurrences during execution. This work investigates a frequency estimator derived directly from these internal counters. We establish the conditions under which the counter state enables exact recovery of the frequency of the majority element and characterize the estimation error when these conditions are not satisfied. In particular, we analyze the effect of stream ordering on the estimator and identify delayed-arrival configurations, such as Majority-Delayed sequences, that can lead to systematic estimation errors. We further derive the error behavior associated with late-arriving majority blocks and empirically evaluate the estimator across multiple stream topologies. The results demonstrate that the internal state of the Boyer-Moore algorithm can provide frequency information without increasing its O(1) space complexity. At the same time, its accuracy depends critically on the ordering of elements in the input stream.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Super Bloom: Fast and Precise Filter for Streaming k-Mer Queries.Journal of computational biology : a journal of computational molecular cell biology · 2026
- Arithmetic Variable LogLog: Advancing the Memory-Variance FrontierarXiv · 2026
- Aeris Filter: A Strongly and Monotonically Adaptive Range FilterProceedings of the ACM on Management of Data · 2026
- Learning Finite-Memory Binary SourcesarXiv · 2026
- Exact Online $Q_n$ Estimation: Exploiting Sliding-Window Rank InvariancearXiv · 2026
- BARS: Budget-Aware Sequential Sampling with Refusal for Majority Identification under Unknown DistributionsarXiv · 2026