{"@context":"https:\/\/schema.org\/","@type":"ScholarlyArticle","@id":"#article8594","name":"Randomized Algorithms for Finding a Majority Element","abstract":"Given n colored balls, we want to detect if more than n\/2 of them have the same color, and if so find one ball with such majority color. We are only allowed to choose two balls and compare their colors, and the goal is to minimize the total number of such operations. A well-known exercise is to show how to find such a ball with only 2n comparisons while using only a logarithmic number of bits for bookkeeping. The resulting algorithm is called the Boyer-Moore majority vote algorithm. It is known that any deterministic method needs 3n\/2-2 comparisons in the worst case, and this is tight. However, it is not clear what is the required number of comparisons if we allow randomization. We construct a randomized algorithm which always correctly finds a ball of the majority color (or detects that there is none) using, with high probability, only 7n\/6+o(n) comparisons. We also prove that the expected number of comparisons used by any such randomized method is at least 1.019n.","keywords":["majority","randomized algorithms","lower bounds"],"author":[{"@type":"Person","name":"Gawrychowski, Pawel","givenName":"Pawel","familyName":"Gawrychowski"},{"@type":"Person","name":"Suomela, Jukka","givenName":"Jukka","familyName":"Suomela"},{"@type":"Person","name":"Uznanski, Przemyslaw","givenName":"Przemyslaw","familyName":"Uznanski"}],"position":9,"pageStart":"9:1","pageEnd":"9:14","dateCreated":"2016-06-22","datePublished":"2016-06-22","isAccessibleForFree":true,"license":"https:\/\/creativecommons.org\/licenses\/by\/3.0\/legalcode","copyrightHolder":[{"@type":"Person","name":"Gawrychowski, Pawel","givenName":"Pawel","familyName":"Gawrychowski"},{"@type":"Person","name":"Suomela, Jukka","givenName":"Jukka","familyName":"Suomela"},{"@type":"Person","name":"Uznanski, Przemyslaw","givenName":"Przemyslaw","familyName":"Uznanski"}],"copyrightYear":"2016","accessMode":"textual","accessModeSufficient":"textual","creativeWorkStatus":"Published","inLanguage":"en-US","sameAs":"https:\/\/doi.org\/10.4230\/LIPIcs.SWAT.2016.9","publisher":"Schloss Dagstuhl \u2013 Leibniz-Zentrum f\u00fcr Informatik","isPartOf":{"@type":"PublicationVolume","@id":"#volume6256","volumeNumber":53,"name":"15th Scandinavian Symposium and Workshops on Algorithm Theory (SWAT 2016)","dateCreated":"2016-06-22","datePublished":"2016-06-22","editor":{"@type":"Person","name":"Pagh, Rasmus","givenName":"Rasmus","familyName":"Pagh"},"isAccessibleForFree":true,"publisher":"Schloss Dagstuhl \u2013 Leibniz-Zentrum f\u00fcr Informatik","hasPart":"#article8594","isPartOf":{"@type":"Periodical","@id":"#series116","name":"Leibniz International Proceedings in Informatics","issn":"1868-8969","isAccessibleForFree":true,"publisher":"Schloss Dagstuhl \u2013 Leibniz-Zentrum f\u00fcr Informatik","hasPart":"#volume6256"}}}