Skip to content

Commit bce30b8

Browse files
committed
Added Bucket Sort description
1 parent e09bf50 commit bce30b8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ __Properties__
1919

2020
###### View the algorithm in [action][bubble-toptal]
2121

22+
### Bucket
23+
![alt text][bucket-image-1]
24+
![alt text][bucket-image-2]
25+
26+
From [Wikipedia][bucket-wiki]: Bucket sort, or bin sort, is a sorting algorithm that works by distributing the elements of an array into a number of buckets. Each bucket is then sorted individually, either using a different sorting algorithm, or by recursively applying the bucket sorting algorithm.
27+
28+
__Properties__
29+
* Worst case performance O(n^2)
30+
* Best case performance O(n+k)
31+
* Average case performance O(n+k)
2232

2333

2434
### Insertion
@@ -148,6 +158,10 @@ Mathematically a bijective function is used on the characters' positions to encr
148158
[bubble-wiki]: https://en.wikipedia.org/wiki/Bubble_sort
149159
[bubble-image]: https://upload.wikimedia.org/wikipedia/commons/thumb/8/83/Bubblesort-edited-color.svg/220px-Bubblesort-edited-color.svg.png "Bubble Sort"
150160

161+
[bucket-wiki]: https://en.wikipedia.org/wiki/Bucket_sort
162+
[bucket-image-1]: https://commons.wikimedia.org/wiki/File:Bucket_sort_1.svg#/media/File:Bucket_sort_1.svg
163+
[bucket-image-2]: https://commons.wikimedia.org/wiki/File:Bucket_sort_2.svg#/media/File:Bucket_sort_2.svg
164+
151165
[insertion-toptal]: https://www.toptal.com/developers/sorting-algorithms/insertion-sort
152166
[insertion-wiki]: https://en.wikipedia.org/wiki/Insertion_sort
153167
[insertion-image]: https://upload.wikimedia.org/wikipedia/commons/7/7e/Insertionsort-edited.png "Insertion Sort"

0 commit comments

Comments
 (0)