Skip to content

Added heap_sort and alternate selection_sort #40

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andydude
Copy link

I added heap_sort. I also added a duplicate implementation of selection_sort. The implementation that was there I renamed to the author who submitted it. The code was written with inline-maximum, which I felt didn't correspond to the way the algorithm was originally written. Knuth separated selection_sort into 2 parts: Algorithm 1.2.10M (implemented by Program 1.3.2M) and Algorithm 5.2.3S (implemented by Program 5.2.3S). I strongly believe that this separation is beneficial to learning, and so I kept it in the C source code.

@zmajeed
Copy link
Contributor

zmajeed commented Jul 27, 2023

Thank you for your contribution! I hope to run some tests and look at it this weekend

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