logo
首页技术栈工具库讨论
majority

majority

The Boyer-Moore Majority Vote Algorithm determines if there in a list of votes is a candidate that holds more than half of the majority, and if so, finds this candidate. It does so in time linear in the length of the input list and constant memory. For a detailed description of the algorithm, see these papers: Wim H. Hesselink, "The Boyer-Moore Majority Vote Algorithm", 2005; Robert S. Boyer and J. Strother Moore, "MJRTY - A Fast Majority Vote Algorithm", 1982.
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
HACKAGE
carbal install majority
查看
标签
根据用户添加的标签生成
暂无标签