Global Information Lookup Global Information

Merge sort information


Merge sort
An example of merge sort. First, divide the list into the smallest unit (1 element), then compare each element with the adjacent list to sort and merge the two adjacent lists. Finally, all the elements are sorted and merged.
ClassSorting algorithm
Data structureArray
Worst-case performance
Best-case performance typical, natural variant
Average performance
Worst-case space complexity total with auxiliary, auxiliary with linked lists[1]

In computer science, merge sort (also commonly spelled as mergesort) is an efficient, general-purpose, and comparison-based sorting algorithm. Most implementations produce a stable sort, which means that the relative order of equal elements is the same in the input and output. Merge sort is a divide-and-conquer algorithm that was invented by John von Neumann in 1945.[2] A detailed description and analysis of bottom-up merge sort appeared in a report by Goldstine and von Neumann as early as 1948.[3]

  1. ^ Skiena (2008, p. 122)
  2. ^ Knuth (1998, p. 158)
  3. ^ Katajainen, Jyrki; Träff, Jesper Larsson (March 1997). "Algorithms and Complexity". Proceedings of the 3rd Italian Conference on Algorithms and Complexity. Italian Conference on Algorithms and Complexity. Lecture Notes in Computer Science. Vol. 1203. Rome. pp. 217–228. CiteSeerX 10.1.1.86.3154. doi:10.1007/3-540-62592-5_74. ISBN 978-3-540-62592-6.

and 24 Related for: Merge sort information

Request time (Page generated in 0.8346 seconds.)

Merge sort

Last Update:

In computer science, merge sort (also commonly spelled as mergesort) is an efficient, general-purpose, and comparison-based sorting algorithm. Most implementations...

Word Count : 6747

Polyphase merge sort

Last Update:

A polyphase merge sort is a variation of a bottom-up merge sort that sorts a list using an initial uneven distribution of sub-lists (runs), primarily used...

Word Count : 2324

Oscillating merge sort

Last Update:

Oscillating merge sort or oscillating sort is a variation of merge sort used with tape drives that can read backwards. Instead of doing a complete distribution...

Word Count : 226

Sorting algorithm

Last Update:

sorting is important for optimizing the efficiency of other algorithms (such as search and merge algorithms) that require input data to be in sorted lists...

Word Count : 6394

External sorting

Last Update:

distribution sorting, which resembles quicksort, and external merge sort, which resembles merge sort. External merge sort typically uses a hybrid sort-merge strategy...

Word Count : 2149

Cascade merge sort

Last Update:

Cascade merge sort is similar to the polyphase merge sort but uses a simpler distribution. The merge is slower than a polyphase merge when there are fewer...

Word Count : 88

Insertion sort

Last Update:

more advanced algorithms such as quicksort, heapsort, or merge sort. However, insertion sort provides several advantages: Simple implementation: Jon Bentley...

Word Count : 2908

Block sort

Last Update:

Block sort, or block merge sort, is a sorting algorithm combining at least two merge operations with an insertion sort to arrive at O(n log n) (see Big...

Word Count : 4902

Merge algorithm

Last Update:

inputs lists in sorted order. These algorithms are used as subroutines in various sorting algorithms, most famously merge sort. The merge algorithm plays...

Word Count : 2087

Bubble sort

Last Update:

More efficient algorithms such as quicksort, timsort, or merge sort are used by the sorting libraries built into popular programming languages such as...

Word Count : 2318

Timsort

Last Update:

Timsort is a hybrid, stable sorting algorithm, derived from merge sort and insertion sort, designed to perform well on many kinds of real-world data....

Word Count : 2356

Quicksort

Last Update:

1961. It is still a commonly used algorithm for sorting. Overall, it is slightly faster than merge sort and heapsort for randomized data, particularly...

Word Count : 9985

Sort

Last Update:

Mainframe sort merge, sort utility for IBM mainframe systems Merge sort, computer sorting algorithm Radix sort, sorting algorithm Sort (Unix), which sorts the...

Word Count : 157

Bitonic sorter

Last Update:

considered to be a sorted list of one element, and continues through all the columns until the last merges them into a single, sorted list. Because the...

Word Count : 1353

Cocktail shaker sort

Last Update:

shaker sort is used primarily as an educational tool. More performant algorithms such as quicksort, merge sort, or timsort are used by the sorting libraries...

Word Count : 1087

Sorting

Last Update:

Finally, sort the two segments recursively. Merge sort: Divide the list of elements in two parts, sort the two parts individually and then merge it. Various...

Word Count : 778

Radix sort

Last Update:

Radix sort in C# with source in GitHub Video tutorial of MSD Radix Sort Demonstration and comparison of Radix sort with Bubble sort, Merge sort and Quicksort...

Word Count : 2603

Bucket sort

Last Update:

used as well, such as selection sort or merge sort. Using bucketSort itself as nextSort produces a relative of radix sort; in particular, the case n = 2...

Word Count : 2190

Heapsort

Last Update:

input Sorting linked lists (in which case merge sort requires minimal extra space) Parallel sorting; merge sort parallelizes even better than quicksort...

Word Count : 5718

Mainframe sort merge

Last Update:

The Sort/Merge utility is a mainframe program to sort records in a file into a specified order, merge pre-sorted files into a sorted file, or copy selected...

Word Count : 1043

List of terms relating to algorithms and data structures

Last Update:

k-way merge sort balanced merge sort balanced multiway merge balanced multiway tree balanced quicksort balanced tree balanced two-way merge sort BANG file...

Word Count : 3134

Comparison sort

Last Update:

comparison sorts include: Quicksort Heapsort Shellsort Merge sort Introsort Insertion sort Selection sort Bubble sort Odd–even sort Cocktail shaker sort Cycle...

Word Count : 2635

Sort Merge Generator

Last Update:

The Sort Merge Generator was an application developed by Betty Holberton in 1951 for the Univac I and is one of the first examples of using a computer...

Word Count : 135

Merge

Last Update:

under UNIX Merge (SQL), a statement in SQL Merge algorithm, an algorithm for combining two or more sorted lists into a single sorted one Mail merge, the production...

Word Count : 279

PDF Search Engine © AllGlobal.net