I have n number of roaring bitmaps, and I want to find out which element is most occurring in these n roaring bitmaps. Also, find out the count. What is the best and most efficient way to do this? I have millions of records in one bitmap, and traversing and storing the results in a hashmap is not feasible. Additionally, I am looking for elements that occur in more than n/2 bitmaps
I have tried Boyer-Moore Majority algorithms, but it is inefficient because I don't want to traverse all the elements.