Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added tournament sorting issue #66 #100

Merged
merged 1 commit into from
Oct 15, 2018
Merged

Added tournament sorting issue #66 #100

merged 1 commit into from
Oct 15, 2018

Conversation

rushilShetty
Copy link
Contributor

Description

Tournament sort is a sorting algorithm. It improves upon the naive selection sort by using a priority queue to find the next element in the sort. In the naive selection sort, it takes O(n) operations to select the next element of n elements; in a tournament sort, it takes O(log n) operations (after building the initial tournament in O(n)). Tournament sort is a variation of heapsort.

Copy link
Member

@felipecustodio felipecustodio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very interesting.
Thanks for the PR! :octocat:

@felipecustodio felipecustodio merged commit 3fd1c83 into pirataspinhal:master Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants