Boyer–Moore majority vote algorithm
Low-space search for a majority element
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. It is named after Robert S. Boyer and J Strother Moore, who published it in 1981, and is a prototypical example of a streaming algorithm.
Nº Q18814414 ★
Comum · Saberes
Boyer–Moore majority vote algorithm
Low-space search for a majority element
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. It is named after Robert S. Boyer and J Strother Moore, who published it in 1981, and is a prototypical example of a streaming algorithm.
Na Wikipédia
Texto em inglês Ainda não há artigo no seu idioma: trecho em inglês.
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. It is named after Robert S. Boyer and J Strother Moore, who published it in 1981, and is a prototypical example of a streaming algorithm. In its simplest form, the algorithm finds a majority element, if there is one: that is, an element that occurs repeatedly for more than half of the elements of the input. A version of the algorithm that makes a second pass through the data can be used to verify that the element found in the first pass really is a majority. If a second pass is not performed and there is no majority, the algorithm will not detect that no majority exists. In the case that no strict majority exists, the returned element can be arbitrary; it is not guaranteed to be the element that occurs most often (the mode of the sequence). It is not possible for a streaming algorithm to find the most frequent element in less than linear space, for sequences whose number of repetitions can be small.
Texto: Wikipédia em inglês, CC BY-SA 4.0. · Imagem: David Eppstein (CC0) ·
Cartas próximas
-
A
Algoritmo de busca de expressões Boyer-Moore
Nº Q895984 ★
Sem ofertas
-
Algoritmo de Borůvka
Nº Q1468211 ★
Sem ofertas
-
Algoritmo de Grover
Algoritmo quântico
Nº Q1028292 ★★
Sem ofertas
-
M
Möller–Trumbore intersection algorithm
Method of calculating ray-triangle intersections in 3D space
Nº Q17133310 ★
Sem ofertas
-
Quickselect
Selection algorithm to find the kth smallest element in an unordered list
Nº Q3927837 ★
Sem ofertas
-
Quicksort
Algoritmo de ordenação
Nº Q486598 ★★★★
Sem ofertas