Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assorted spelling fixes #50

Merged
merged 1 commit into from
Dec 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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