-
-
Notifications
You must be signed in to change notification settings - Fork 26
Implemented Radix Sort Algorithm #11
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
Implemented Radix Sort Algorithm #11
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @SatinWukerORIG ,
Looking forward to your review 🙂
…rt_implementation # Conflicts: # DIRECTORY.md
…ure/quick_sort_implementation # Conflicts: # DIRECTORY.md
…rt_implementation
…ort_implementation
…rt_implementation # Conflicts: # DIRECTORY.md
…ort_implementation # Conflicts: # DIRECTORY.md
…ort_implementation # Conflicts: # DIRECTORY.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added more test cases for the radix_sort module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great implementation and test cases. The comments are also very detailed.
I can merge it and then refactor the directory structure. Then you can put examples, tests, and modules under different folders as mentioned in issue #13!
Thanks, Satin! |
Description:
This pull request introduces an implementation of the Radix Sort algorithm with support for different bases.
Definition:
O(d * (n + k)), wherenis the number of elements,dis the number of digits, andkis the range of digits.(O(n^2))Implemented Gnome Sort Algorithm #9 for larger datasets.Implementation Details:
radix_sort.f90: Contains the radix_sort_module with:The module has been enhanced to support sorting based on different numeral systems (bases). The
radix_sortsubroutine can now be used with different bases, such as base 2, 10, and 16.Example Usage:
example_usage_radix_sort.f90: Includes three test programs demonstrating theradix_sortsubroutine from theradix_sort_modulewith different bases:The program sorts the sample arrays in their respective bases and prints the results.
Additional Test Cases:
tests_radix_sort.f90: A test program that includes a variety of test cases to validate theradix_sortimplementation.Reference
The Algorithm Design Manual, Latest edition