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 ★
Commune · Savoirs
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.
Sur Wikipédia
Texte en anglais Pas encore d'article dans ta langue : extrait en anglais.
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.
Texte : Wikipédia en anglais, CC BY-SA 4.0. · Image : David Eppstein (CC0) ·
Cartes voisines
-
A
Algorithme de Boyer-Moore
Algorithme de recherche de sous-chaîne particulièrement efficace, développé en 1977
Nº Q895984 ★
Pas en vente
-
Algorithme de Borůvka
Nº Q1468211 ★
Pas en vente
-
Algorithme de Grover
Algorithme en informatique quantique de recherche d'éléments dans un ensemble
Nº Q1028292 ★★
Pas en vente
-
A
Algorithme d'intersection de Möller-Trumbore
Nº Q17133310 ★
Pas en vente
-
Quickselect
Nº Q3927837 ★
Pas en vente
-
Tri rapide
Algorithme de tri
Nº Q486598 ★★★★
Pas en vente