Skip to content

Commit

Permalink
assorted spelling fixes
Browse files Browse the repository at this point in the history
Changes:
s/Avegage/Average/g
s/availible/available/g
s/upto/up to/g
  • Loading branch information
DF31M4j0rHAX0Rs committed Dec 7, 2017
1 parent 309d949 commit 51558a6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
</tr>
<tr>
<th align="center">Best</th>
<th align="center">Avegage</th>
<th align="center">Average</th>
<th align="center">Worst</th>
<th align="center">Worst</th>
</tr>
Expand All @@ -147,7 +147,7 @@
</tr>
<tr>
<th align="center">Best</th>
<th align="center">Avegage</th>
<th align="center">Average</th>
<th align="center">Worst</th>
<th align="center">Worst</th>
</tr>
Expand All @@ -167,7 +167,7 @@
</tr>
<tr>
<th align="center">Best</th>
<th align="center">Avegage</th>
<th align="center">Average</th>
<th align="center">Worst</th>
<th align="center">Worst</th>
</tr>
Expand All @@ -179,15 +179,15 @@
</tr>
</table>
- Merge sort [Wikipedia](https://en.wikipedia.org/wiki/Merge_sort?oldformat=true)
- 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.
- 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.
<table>
<tr>
<th colspan="3" align="center">Time Complexity</th>
<th align="center">Space Complexity</th>
</tr>
<tr>
<th align="center">Best</th>
<th align="center">Avegage</th>
<th align="center">Average</th>
<th align="center">Worst</th>
<th align="center">Worst</th>
</tr>
Expand All @@ -199,15 +199,15 @@
</tr>
</table>
- Quicksort [Wikipedia](https://en.wikipedia.org/wiki/Quicksort?oldformat=true)
- 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.
- 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.
<table>
<tr>
<th colspan="3" align="center">Time Complexity</th>
<th align="center">Space Complexity</th>
</tr>
<tr>
<th align="center">Best</th>
<th align="center">Avegage</th>
<th align="center">Average</th>
<th align="center">Worst</th>
<th align="center">Worst</th>
</tr>
Expand Down

0 comments on commit 51558a6

Please sign in to comment.