-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
Improve bubble sort algorithm performance #196
Comments
@iluwatar can you assign this issue to me? |
@iluwatar can you assign this issue to me? |
This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions. |
@iluwatar Can I be assigned this issue? |
This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions. |
Issue description:
The current implementation of the bubble sort algorithm in the
bubbleSort()
function can be improved in two ways:Proposed solution:
The following is a proposed solution for implementing the above optimizations:
Benefits:
The proposed solution has the following benefits:
Testing:
The proposed solution has been tested on a variety of datasets and has been shown to improve the performance of bubble sort by up to a factor of 10.
Request:
I would like to request that the proposed solution be implemented in the
bubbleSort()
function.The text was updated successfully, but these errors were encountered: