Skip to content

Commit 9ba96c5

Browse files
authored
Merge pull request TheAlgorithms#446 from siddnlw/master
Use sup tag for power in README.md instead of ^
2 parents 27ea8b8 + 0f3ab05 commit 9ba96c5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ These are for demonstration purposes only. There are many implementations of sor
1313
From [Wikipedia][bubble-wiki]: Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list to be sorted, compares each pair of adjacent items and swaps them if they are in the wrong order. The pass through the list is repeated until no swaps are needed, which indicates that the list is sorted.
1414

1515
__Properties__
16-
* Worst case performance O(n^2)
16+
* Worst case performance O(n<sup>2</sup>)
1717
* Best case performance O(n)
18-
* Average case performance O(n^2)
18+
* Average case performance O(n<sup>2</sup>)
1919

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

@@ -26,7 +26,7 @@ __Properties__
2626
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.
2727

2828
__Properties__
29-
* Worst case performance O(n^2)
29+
* Worst case performance O(n<sup>2</sup>)
3030
* Best case performance O(n+k)
3131
* Average case performance O(n+k)
3232

@@ -36,9 +36,9 @@ __Properties__
3636
From [Wikipedia][cocktail-shaker-wiki]: Cocktail shaker sort, also known as bidirectional bubble sort, cocktail sort, shaker sort (which can also refer to a variant of selection sort), ripple sort, shuffle sort, or shuttle sort, is a variation of bubble sort that is both a stable sorting algorithm and a comparison sort. The algorithm differs from a bubble sort in that it sorts in both directions on each pass through the list.
3737

3838
__Properties__
39-
* Worst case performance O(n^2)
39+
* Worst case performance O(n<sup>2</sup>)
4040
* Best case performance O(n)
41-
* Average case performance O(n^2)
41+
* Average case performance O(n<sup>2</sup>)
4242

4343

4444
### Insertion
@@ -47,9 +47,9 @@ __Properties__
4747
From [Wikipedia][insertion-wiki]: Insertion sort is a simple sorting algorithm that builds the final sorted array (or list) one item at a time. It is much less efficient on large lists than more advanced algorithms such as quicksort, heapsort, or merge sort.
4848

4949
__Properties__
50-
* Worst case performance O(n^2)
50+
* Worst case performance O(n<sup>2</sup>)
5151
* Best case performance O(n)
52-
* Average case performance O(n^2)
52+
* Average case performance O(n<sup>2</sup>)
5353

5454
###### View the algorithm in [action][insertion-toptal]
5555

@@ -73,7 +73,7 @@ __Properties__
7373
From [Wikipedia][quick-wiki]: Quicksort (sometimes called partition-exchange sort) is an efficient sorting algorithm, serving as a systematic method for placing the elements of an array in order.
7474

7575
__Properties__
76-
* Worst case performance O(n^2)
76+
* Worst case performance O(n<sup>2</sup>)
7777
* Best case performance O(n log n) or O(n) with three-way partition
7878
* Average case performance O(n log n)
7979

@@ -94,9 +94,9 @@ __Properties__
9494
From [Wikipedia][selection-wiki]: The algorithm divides the input list into two parts: the sublist of items already sorted, which is built up from left to right at the front (left) of the list, and the sublist of items remaining to be sorted that occupy the rest of the list. Initially, the sorted sublist is empty and the unsorted sublist is the entire input list. The algorithm proceeds by finding the smallest (or largest, depending on sorting order) element in the unsorted sublist, exchanging (swapping) it with the leftmost unsorted element (putting it in sorted order), and moving the sublist boundaries one element to the right.
9595

9696
__Properties__
97-
* Worst case performance O(n^2)
98-
* Best case performance O(n^2)
99-
* Average case performance O(n^2)
97+
* Worst case performance O(n<sup>2</sup>)
98+
* Best case performance O(n<sup>2</sup>)
99+
* Average case performance O(n<sup>2</sup>)
100100

101101
###### View the algorithm in [action][selection-toptal]
102102

0 commit comments

Comments
 (0)