Fixed typo (#28984)

Two sorted arrays are merged to give one sorted array.
This commit is contained in:
Shashank Goyal
2018-12-13 21:30:22 +00:00
committed by Randell Dawson
parent 6fa3cd1a65
commit f9953adb5c

View File

@ -28,7 +28,7 @@ There are different approaches used for writing an algorithm depending on the ty
### Efficiency
Algorithms are most commonly judged by their efficiency and the amount of computing resources they require to complete their task. A common way to evaluate an algorithm is to look at its time complexity. This shows how the running time of the algorithm grows as the input size grows. Since the algorithms today have to operate on large data inputs, it is essential for our algorithms to have a reasonably fast running time.
Algorithms are most commonly judged by their efficiency and the amount of computing resources they require to complete their task. A common way to evaluate an algorithm is to look at its time complexity. This shows how the running time of the algorithm grows as the input size grows. Since the algorithms today, have to operate on large data inputs, it is essential for our algorithms to have a reasonably fast running time.
### Big O
To describe the running time and efficiency of algorithms, the standard language and metric used is called Big O notation and can be denoted as `O(running time)` for example the time taken to search an element using linear search (i.e to find an element by comparing it to all the other elements in an array of size n) is `O(n)`. The notation helps us to understand how fast a particular algorithm is by making sure that it is at least as fast as the denoted run-time. [Big_O - wikipedia](https://en.wikipedia.org/wiki/Big_O_notation)
@ -44,7 +44,7 @@ There is no sorting discussion which can finish without quick sort.
[Quick Sort](http://me.dt.in.th/page/Quicksort/)
#### Merge Sort
It is the sorting algorithm which relies on the concept how to sorted arrays are merged to give one sorted arrays. Read more about it here-
It is the sorting algorithm which relies on the concept how two sorted arrays are merged to give one sorted array. Read more about it here-
[Merge Sort](https://www.geeksforgeeks.org/merge-sort/)