CIS3590-G1B / GROUP-1B-Java

All Algorithms implemented in Java
MIT License
1 stars 0 forks source link

ISSUE#2.1 - LEO - ISSUE SELECTION - Add Moore's Voting Algorithm #3

Closed ba-00001 closed 3 days ago

ba-00001 commented 1 week ago

What would you like to Propose?

@LEO UPDATE THIS WITH ISSUE YOU WILL BE WORKING ON

Issue details

@LEO UPDATE THIS WITH ISSUE YOU WILL BE WORKING ON

Additional Information

@LEO UPDATE THIS WITH ISSUE YOU WILL BE WORKING ON

leochirinos10 commented 3 days ago

What would you like to Propose?

My proposal is to implement an algorithm that finds the majority element in an array, where the majority element is defined as the element that appears more than half of the time.

Issue details

The algorithm uses a candidate and a counter. The algorithm selects a candidate and it counts its occurrences using the counter. It verifies if the candidate is actually the one with the most occurrences.

Additional Information

No more additional information

[FEATURE REQUEST] Add Moore's Voting Algorithm TheAlgorithms#5636