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

i have to add the comparision of differrent sorting algorithms . #431

Open
AishwaryJain07 opened this issue Jan 5, 2024 · 4 comments
Open
Labels

Comments

@AishwaryJain07
Copy link

Algorithm Time Complexity Space Complexity Stability Best Case Average Case Worst Case
Bubble Sort O(n) O(1) Yes O(n) O(n^2) O(n^2)
Selection Sort O(n^2) O(1) No O(n^2) O(n^2) O(n^2)
Insertion Sort O(n) - O(n^2) O(1) Yes O(n) O(n^2) O(n^2)
Merge Sort O(n log n) O(n) Yes O(n log n) O(n log n) O(n log n)
Quick Sort O(n log n) - O(n^2) O(log n) No O(n log n) O(n log n) O(n^2)
Heap Sort O(n log n) O(1) No O(n log n) O(n log n) O(n log n)
Counting Sort O(n + k) O(n + k) Yes O(n + k) O(n + k) O(n + k)
Radix Sort O(d * (n + k)) O(n + k) Yes O(d * n) O(d * n) O(d * n)
Bucket Sort O(n^2) (average) O(n + k) Yes O(n^2) O(n^2) O(n^2)
Copy link

github-actions bot commented Jan 5, 2024

Hey Contributor! You can start working on the issue. Good luck!
Please comment "/assign" to get this issue assigned to you.

@AishwaryJain07
Copy link
Author

/assign

Copy link

github-actions bot commented Jan 5, 2024

This issue has been assigned to @AishwaryJain07!
It will become unassigned if it isn't closed within 7 days. A maintainer can also add the pinned label to prevent it from being unassigned.

Copy link

@AishwaryJain07, this issue hasn't had any activity in 4 days. It will become unassigned in 3 days to make room for someone else to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant