Boyer-Moore majority vote algorithm
GPTKB entity
Statements (22)
| Predicate | Object |
|---|---|
| gptkbp:instanceOf |
gptkb:algorithm
|
| gptkbp:assumes |
majority element appears more than n/2 times
|
| gptkbp:category |
voting algorithm
selection algorithm |
| gptkbp:complexity |
O(n)
|
| gptkbp:designedBy |
gptkb:J_Strother_Moore
gptkb:Robert_S._Boyer |
| gptkbp:field |
computer science
|
| gptkbp:input |
sequence of elements
|
| gptkbp:introducedIn |
1981
|
| gptkbp:namedAfter |
gptkb:J_Strother_Moore
gptkb:Robert_S._Boyer |
| gptkbp:output |
majority element or none
|
| gptkbp:purpose |
find majority element in a sequence
|
| gptkbp:relatedTo |
Boyer-Moore string-search algorithm
|
| gptkbp:requires |
two passes over data (for verification)
|
| gptkbp:spaceComplexity |
O(1)
|
| gptkbp:usedIn |
data stream processing
finding frequent elements |
| gptkbp:bfsParent |
gptkb:Boyer-Moore_algorithm
|
| gptkbp:bfsLayer |
7
|
| https://www.w3.org/2000/01/rdf-schema#label |
Boyer-Moore majority vote algorithm
|