Determining plurality

  • Authors:
  • Laurent Alonso;Edward M. Reingold

  • Affiliations:
  • INRIA-Lorraine, Vandoeuvre-lès-Nancy, France;Illinois Institute of Technology, Chicago, IL

  • Venue:
  • ACM Transactions on Algorithms (TALG)
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

Given a set of n elements, each of which is colored one of c colors, we must determine an element of the plurality (most frequently occurring) color by pairwise equal/unequal color comparisons of elements. We prove that (c − 1)(n − c)/2 color comparisons are necessary in the worst case to determine the plurality color and give an algorithm requiring (0.775c + 5.9)n + O(c2) color comparisons for c ≥ 9.