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

|BucketSort|HeapSort|InsertionSort|radixSort| #446

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

Conversation

boucher456
Copy link

Changes:
InsertionSort: Added the InsertionSort class with a method to perform the insertion sort on an array of integers.

Main Method: Included a main method to demonstrate the usage of the insertion sort algorithm with a sample input array.

Efforts:
Algorithm Implementation: Implemented the insertion sort algorithm by iterating through the array, comparing each element with those before it, and shifting elements to their correct positions.

Code Comments: Added comments to explain each step of the insertion sort process for better readability and understanding.

Testing: Created a sample input array and tested the sorting algorithm to ensure it works correctly and efficiently.

Impact:
Performance: Insertion sort has an average time complexity of O(n^2) and is efficient for small datasets or nearly sorted arrays.

Use Cases: Suitable for educational purposes and scenarios where insertion sort's simplicity and efficiency on small data are beneficial.
Radix Sort
Title: Implement Radix Sort Algorithm in Java

Description: This pull request introduces the implementation of the Radix Sort algorithm in Java. Radix Sort is a non-comparative sorting algorithm that sorts numbers by processing individual digits. Implemented methods to handle digit extraction and sorting by each digit position. Added comprehensive comments for clarity and tested the algorithm with various datasets to ensure accuracy.

Bucket Sort
Title: Implement Bucket Sort Algorithm in Java

Description: This pull request includes the implementation of the Bucket Sort algorithm in Java. Bucket Sort distributes elements into buckets and then sorts each bucket individually. Implemented the bucketing logic and sorting within buckets using insertion sort. Included detailed comments to explain the process and tested the algorithm with diverse datasets for validation.

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.

1 participant