Analysis of Boyer and Moore's MJRTY algorithm - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Journal Articles Information Processing Letters Year : 2013

Analysis of Boyer and Moore's MJRTY algorithm

Abstract

Given a set of $n$ elements each of which is either red or blue, Boyer and Moore's MJRTY algorithm uses pairwise equal/not equal color comparison to determine the majority color. We analyze the average behavior of their algorithm, proving that if all $2^n$ possible inputs are equally likely, the average number of color comparisons used is $n-\sqrt{2n/\pi} + O(1)$ with variance $(\pi-2)n/\pi - \sqrt{2n/\pi} + O(1)$.
Fichier principal
Vignette du fichier
mjrty3.pdf (79.99 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-00926106 , version 1 (09-01-2014)

Identifiers

Cite

Laurent Alonso, Edward M. Reingold. Analysis of Boyer and Moore's MJRTY algorithm. Information Processing Letters, 2013, 113, pp.495-497. ⟨10.1016/j.ipl.2013.04.005⟩. ⟨hal-00926106⟩
143 View
264 Download

Altmetric

Share

Gmail Facebook X LinkedIn More