Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Algorithm

Boyer-Moore Majority Vote Algorithm

Searching Algorithm

The Boyer-Moore majority vote algorithm finds the majority element of a sequence using linear time and only a constant number of words of memory, and is named after Robert Boyer and J Strother Moore, who published it in 1981 as a prototypical streaming algorithm. In its simplest form it finds an element that occurs for more than half the elements of the input, if one exists, and a second pass through the data can verify that the element found in the first pass really is a majority; without that second pass the algorithm cannot detect that no majority exists, and if none exists the element it returns can be arbitrary. It is not possible for a streaming algorithm to find the most frequent element of a sequence in less than linear space when the number of repetitions can be small.

Facts
Time Complexity
Time Complexity (category)
Linear Time -- O(n) 1
Connections

Credited To

Source Boyer-Moore majority vote algorithm (Wikipedia)
Source Boyer-Moore majority vote algorithm (Wikipedia)

In Field

Source Boyer-Moore majority vote algorithm (Wikipedia)

Invented By

Source Boyer-Moore majority vote algorithm (Wikipedia)
Sources
1. Wikidata: Boyer-Moore Majority Vote Algorithm
Wikidata Q18814414, class allow-list match (w-wdresolver-0926)View the Source
Boyer-Moore majority vote algorithm (Wikipedia)
  • In Group: Sequential and Unstructured Search Algorithms, Introduction
    The Boyer-Moore majority vote algorithm is an algorithm for finding the majority of a sequence of elements using linear time and a constant number of words of memory.
  • In Field: Algorithms and Complexity Theory, Lead paragraph
  • Credited To: J Strother Moore, Lead
    Boyer and J Strother Moore, who published it in 1981, and is a prototypical example of a streaming algorithm.
  • Invented By: J Strother Moore, Lead
    Boyer and J Strother Moore, who published it in 1981, and is a prototypical example of a streaming algorithm.
  • Credited To: Robert S. Boyer, Lead
    Boyer and J Strother Moore, who published it in 1981, and is a prototypical example of a streaming algorithm.
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.