mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-07 17:56:02 +08:00
Update README.md
This commit is contained in:

committed by
GitHub

parent
ff43b3647f
commit
491d4210b8
@ -37,7 +37,7 @@ __Properties__
|
|||||||
### Merge
|
### Merge
|
||||||
![alt text][merge-image]
|
![alt text][merge-image]
|
||||||
|
|
||||||
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.
|
From [Wikipedia][merge-wiki]: In computer science, merge sort (also commonly spelt 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.
|
||||||
|
|
||||||
__Properties__
|
__Properties__
|
||||||
* Worst case performance O(n log n)
|
* Worst case performance O(n log n)
|
||||||
@ -97,7 +97,7 @@ Comparing the complexity of sorting algorithms (Bubble Sort, Insertion Sort, Sel
|
|||||||
![alt text][linear-image]
|
![alt text][linear-image]
|
||||||
|
|
||||||
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.
|
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.
|
||||||
Linear search runs in at worst linear time and makes at most n comparisons, where n is the length of the list.
|
The linear search runs in at the worst linear time and makes at most n comparisons, where n is the length of the list.
|
||||||
|
|
||||||
__Properties__
|
__Properties__
|
||||||
* Worst case performance O(n)
|
* Worst case performance O(n)
|
||||||
|
Reference in New Issue
Block a user