Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Algorithms   (RSS)
Sorry, but there are no more tags available to filter with.

Selection of Majority in O(n)

Selection algorithms are very useful in many instances, like finding the majority. Given an array of size n that contains a majority item (an item that's repeated more than n/2 times), we can find that item in O(n). Basically, we can consider it as a
Posted by mohamedg | 4 Comments
Filed under:
 
Page view tracker