-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Sorting Algorithms #22
base: main
Are you sure you want to change the base?
Conversation
Adds Bubble sort, Merge sort, Quick sort, Selection sort and Shell sort.
Tried to fix DIRECTORY.md but I do not remember which algorithms are really there ...
Took a glance over. Looks great, I like the code/comment ratio (I'd spray TODO marks around those I think the testing scaffolding should live somewhere separately. Do you think it would be beneficial to start collecting the testing utils we can recommend to new contributors? Also, in general, I don't like unseeded random in tests. No harm here, but they should be reproducible. Re |
Add multiple sorting algorithms: insertion sort, selection sort, bubble sort, merge sort
with a file for some common tests.
I hesitate to add additional tests to illustrate the stability property of some sorts or to add the possibility to change the comparison function.
I want to keep thing simple to be as much pedagogical as possible.