Skip to content

Commit 689f8ce

Browse files
Merge pull request amitshekhariitbhu#50 from gskielian/master
assorted spelling fixes
2 parents 309d949 + 51558a6 commit 689f8ce

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
</tr>
128128
<tr>
129129
<th align="center">Best</th>
130-
<th align="center">Avegage</th>
130+
<th align="center">Average</th>
131131
<th align="center">Worst</th>
132132
<th align="center">Worst</th>
133133
</tr>
@@ -147,7 +147,7 @@
147147
</tr>
148148
<tr>
149149
<th align="center">Best</th>
150-
<th align="center">Avegage</th>
150+
<th align="center">Average</th>
151151
<th align="center">Worst</th>
152152
<th align="center">Worst</th>
153153
</tr>
@@ -167,7 +167,7 @@
167167
</tr>
168168
<tr>
169169
<th align="center">Best</th>
170-
<th align="center">Avegage</th>
170+
<th align="center">Average</th>
171171
<th align="center">Worst</th>
172172
<th align="center">Worst</th>
173173
</tr>
@@ -179,15 +179,15 @@
179179
</tr>
180180
</table>
181181
- Merge sort [Wikipedia](https://en.wikipedia.org/wiki/Merge_sort?oldformat=true)
182-
- This is a "divide and conquer" algorithm, meaning it recursively "divides" given array in to smaller parts (up to 1 element) and then sorts those parts, combining them with each other. This approach allows merge sort to acieve very high speed, while doubling required space, of course, but today memory space is more availible than it was a couple of years ago, so this trade-off is considered acceptable.
182+
- This is a "divide and conquer" algorithm, meaning it recursively "divides" given array in to smaller parts (up to 1 element) and then sorts those parts, combining them with each other. This approach allows merge sort to achieve very high speed, while doubling required space, of course, but today memory space is more available than it was a couple of years ago, so this trade-off is considered acceptable.
183183
<table>
184184
<tr>
185185
<th colspan="3" align="center">Time Complexity</th>
186186
<th align="center">Space Complexity</th>
187187
</tr>
188188
<tr>
189189
<th align="center">Best</th>
190-
<th align="center">Avegage</th>
190+
<th align="center">Average</th>
191191
<th align="center">Worst</th>
192192
<th align="center">Worst</th>
193193
</tr>
@@ -199,15 +199,15 @@
199199
</tr>
200200
</table>
201201
- Quicksort [Wikipedia](https://en.wikipedia.org/wiki/Quicksort?oldformat=true)
202-
- Quicksort is considered, well, quite quick. When implemented correctly, it can be a significant number of times faster than its' main competitors. This algorithm is also of "divide and conquer" family and its' first step is to choose a "pivot" element (choosing it randomly, statistically, minimizes the chance to get the worst performance), then by comparing elements to this pivot, moving it closer and closer to its' final place. During this process, the elements that are bigger are moved to the right side of it and smaller elements to the left. After this is done, quicksort repeats this process for subarrays on each side of placed pivot (does first step recursively), until the array is sorted.
202+
- Quicksort is considered, well, quite quick. When implemented correctly, it can be a significant number of times faster than its' main competitors. This algorithm is also of "divide and conquer" family and its' first step is to choose a "pivot" element (choosing it randomly, statistically, minimizes the chance to get the worst performance), then by comparing elements to this pivot, moving it closer and closer to its' final place. During this process, the elements that are bigger are moved to the right side of it and smaller elements to the left. After this is done, quicksort repeats this process for subarrays on each side of placed pivot (does first step recursively), until the array is sorted.
203203
<table>
204204
<tr>
205205
<th colspan="3" align="center">Time Complexity</th>
206206
<th align="center">Space Complexity</th>
207207
</tr>
208208
<tr>
209209
<th align="center">Best</th>
210-
<th align="center">Avegage</th>
210+
<th align="center">Average</th>
211211
<th align="center">Worst</th>
212212
<th align="center">Worst</th>
213213
</tr>

0 commit comments

Comments
 (0)