Skip to content

Commit 9a7707c

Browse files
authored
Merge pull request #125 from mdmuidulalam/master
Fix grammatical and spelling mistakes in README.md
2 parents 552c01f + 8cb19d7 commit 9a7707c

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

README.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Also see: https://algorithmswithgo.com
1616
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.
1717

1818
__Properties__
19-
* Worst case performance O(n^2)
20-
* Best case performance O(n)
21-
* Average case performance O(n^2)
19+
* Worst case performance O(n^2)
20+
* Best case performance O(n)
21+
* Average case performance O(n^2)
2222

2323
###### View the algorithm in [action][bubble-toptal]
2424

@@ -30,9 +30,9 @@ __Properties__
3030
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.
3131

3232
__Properties__
33-
* Worst case performance O(n^2)
34-
* Best case performance O(n)
35-
* Average case performance O(n^2)
33+
* Worst case performance O(n^2)
34+
* Best case performance O(n)
35+
* Average case performance O(n^2)
3636

3737
###### View the algorithm in [action][insertion-toptal]
3838

@@ -43,9 +43,9 @@ __Properties__
4343
From [Wikipedia][merge-wiki]: In computer science, merge sort (also commonly spelled mergesort) is an efficient, general-purpose, comparison-based sorting algorithm. Most implementations produce a stable sort, which means that the implementation preserves the input order of equal elements in the sorted output. Mergesort is a divide and conquer algorithm that was invented by John von Neumann in 1945.
4444

4545
__Properties__
46-
* Worst case performance O(n log n)
47-
* Best case performance O(n)
48-
* Average case performance O(n)
46+
* Worst case performance O(n log n)
47+
* Best case performance O(n)
48+
* Average case performance O(n)
4949

5050

5151
###### View the algorithm in [action][merge-toptal]
@@ -56,9 +56,9 @@ __Properties__
5656
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.
5757

5858
__Properties__
59-
* Worst case performance O(n^2)
60-
* Best case performance O(n log n) or O(n) with three-way partition
61-
* Average case performance O(n^2)
59+
* Worst case performance O(n^2)
60+
* Best case performance O(n log n) or O(n) with three-way partition
61+
* Average case performance O(n^2)
6262

6363
###### View the algorithm in [action][quick-toptal]
6464

@@ -68,9 +68,9 @@ __Properties__
6868
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.
6969

7070
__Properties__
71-
* Worst case performance O(n^2)
72-
* Best case performance O(n^2)
73-
* Average case performance O(n^2)
71+
* Worst case performance O(n^2)
72+
* Best case performance O(n^2)
73+
* Average case performance O(n^2)
7474

7575
###### View the algorithm in [action][selection-toptal]
7676

@@ -86,7 +86,7 @@ __Properties__
8686

8787
###### View the algorithm in [action][shell-toptal]
8888

89-
### Time-Compexity Graphs
89+
### Time-Complexity Graphs
9090

9191
Comparing the complexity of sorting algorithms (Bubble Sort, Insertion Sort, Selection Sort)
9292

@@ -100,24 +100,24 @@ Comparing the complexity of sorting algorithms (Bubble Sort, Insertion Sort, Sel
100100
![alt text][linear-image]
101101

102102
From [Wikipedia][linear-wiki]: linear search or sequential search is a method for finding a target value within a list. It sequentially checks each element of the list for the target value until a match is found or until all the elements have been searched.
103-
Linear search runs in at worst linear time and makes at most n comparisons, where n is the length of the list.
103+
Linear search runs in at the worst linear time and makes at most n comparisons, where n is the length of the list.
104104

105105
__Properties__
106-
* Worst case performance O(n)
107-
* Best case performance O(1)
108-
* Average case performance O(n)
109-
* Worst case space complexity O(1) iterative
106+
* Worst case performance O(n)
107+
* Best case performance O(1)
108+
* Average case performance O(n)
109+
* Worst case space complexity O(1) iterative
110110

111111
### Binary
112112
![alt text][binary-image]
113113

114114
From [Wikipedia][binary-wiki]: Binary search, also known as half-interval search or logarithmic search, is a search algorithm that finds the position of a target value within a sorted array. It compares the target value to the middle element of the array; if they are unequal, the half in which the target cannot lie is eliminated and the search continues on the remaining half until it is successful.
115115

116116
__Properties__
117-
* Worst case performance O(log n)
118-
* Best case performance O(1)
119-
* Average case performance O(log n)
120-
* Worst case space complexity O(1)
117+
* Worst case performance O(log n)
118+
* Best case performance O(1)
119+
* Average case performance O(log n)
120+
* Worst case space complexity O(1)
121121

122122
----------------------------------------------------------------------------------------------------------------------
123123

@@ -128,7 +128,7 @@ __Properties__
128128
In cryptography, a **Caesar cipher**, also known as Caesar's cipher, the shift cipher, Caesar's code or Caesar shift, is one of the simplest and most widely known encryption techniques.<br>
129129
It is **a type of substitution cipher** in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet. For example, with a left shift of 3, D would be replaced by A, E would become B, and so on. <br>
130130
The method is named after **Julius Caesar**, who used it in his private correspondence.<br>
131-
The encryption step performed by a Caesar cipher is often incorporated as part of more complex schemes, such as the Vigenère cipher, and still has modern application in the ROT13 system. As with all single-alphabet substitution ciphers, the Caesar cipher is easily broken and in modern practice offers essentially no communication security.
131+
The encryption step performed by a Caesar cipher is often incorporated as part of more complex schemes, such as the Vigenère cipher, and still has modern applications in the ROT13 system. As with all single-alphabet substitution ciphers, the Caesar cipher is easily broken and in modern practice offers essentially no communication security.
132132
###### Source: [Wikipedia](https://en.wikipedia.org/wiki/Caesar_cipher)
133133

134134
### Transposition

0 commit comments

Comments
 (0)