open-source-contribution-for-beginners icon indicating copy to clipboard operation
open-source-contribution-for-beginners copied to clipboard

i have to add the comparision of differrent sorting algorithms .

Open AishwaryJain07 opened this issue 1 year ago • 4 comments

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)

AishwaryJain07 avatar Jan 05 '24 12:01 AishwaryJain07

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

github-actions[bot] avatar Jan 05 '24 12:01 github-actions[bot]

/assign

AishwaryJain07 avatar Jan 05 '24 12:01 AishwaryJain07

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.

github-actions[bot] avatar Jan 05 '24 12:01 github-actions[bot]

@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.

github-actions[bot] avatar Jan 12 '24 12:01 github-actions[bot]