© 1991 by British Computer Society
| ||||||||||||||||||||||||||||||||||||||||||||||||||
Short Note
Finding a majority when sorting is not available
Computer Science Department, 230 TMCB, Brigham Young University, Provo, Utah 84602, USA
Let the abstract data type Object support an equivalence relation. This paper contains a fast, simple, space-frugal algorithm to determine whether a majority of an arbitrary set of such Objects belong to the same equivalence class (are the same) even when no total order is available for sorting and even if there are infinitely many different equivalence classes.
Received July 1989. revised November 1989.
* To whom correspondence should be addressed.
Computer Science Department, 230 TMCB, Brigham Young University, Provo, Utah 84602, USA