I
Ilmari Karonen
["Followup-To:" header set to sci.math.]
Like the original puzzle that started this thread, the linked paper is
using "majority element" to mean an element that occurs more than n/2
times in a list of n elements. By that definition, your list does not
have a majority element.
Probably I miss something, but this algorithm gives D as the majority
element in the sequence AAAABCBCD. ???
Like the original puzzle that started this thread, the linked paper is
using "majority element" to mean an element that occurs more than n/2
times in a list of n elements. By that definition, your list does not
have a majority element.