Crates.io | sort_alogorithms |
lib.rs | sort_alogorithms |
version | 0.1.1 |
source | src |
created_at | 2021-12-06 18:41:24.989334 |
updated_at | 2021-12-06 18:41:24.989334 |
description | This package have the implementation of several sort algorithms |
homepage | |
repository | |
max_upload_size | |
id | 493326 |
size | 8,692 |
Obs:. This just a briefing of the algorithm!!!
Selection Sortis an algorithm that use order by selection
Worst, Medium and Best Case Complexity: O(n²)
https://en.wikipedia.org/wiki/Selection_sort
sort::selection_sort::selection_sort
Quick sort is an algorithm that use strategy divide to conquer
Worst Case Complexity: O(n²)
Medium Case Complexity: O(n)
Best Case Complexity: O(n log n)
https://en.wikipedia.org/wiki/Quicksort
sort::quick_sort::quick_sort
Heap sort is an generalist algorithm that use the strategy order by selecion
Worst Case Complexity: O(n log n)
Medium Case Complexity: O(n log n)
Best Case Complexity: O(n log n)
https://en.wikipedia.org/wiki/Heapsort
sort::heapsort::heapsort
Merge sort is an algorithm that use the strategy order by comparation and divide to conquer
Worst Case Complexity: O(n log n)
Medium Case Complexity: O(n log n)
Best Case Complexity: O(n)
https://en.wikipedia.org/wiki/Merge_sort
sort::merge_sort::sort
Radix sort is an algorithm that use the strategy non-comparative
Worst Case Complexity: O(n)
Medium Case Complexity: O(n)
Best Case Complexity: O(n)
https://en.wikipedia.org/wiki/Radix_sort
sort::radix_sort::radix_sort