Weitere Beispiele werden automatisch zu den Stichwörtern zugeordnet - wir garantieren ihre Korrektheit nicht.
You use recursion for certain data- sorting algorithms and things like that.
The following table describes sorting algorithms that are not comparison sorts.
Sorting algorithms in general sort a list of objects according to some ordering scheme.
Sorting algorithms used in computer science are often classified by:
Other more sophisticated parallel sorting algorithms can achieve even better time bounds.
Although the algorithm is simple, most of the other sorting algorithms are more efficient for large lists.
Thus, when the bins get small, other sorting algorithms should be used, such as Insertion sort.
For example, both bucket sort and flashsort are distribution based sorting algorithms.
Computer scientists study selection algorithms, which are simpler than sorting algorithms.
However, now there are faster string sorting algorithms.
For similar reasons permutations arise in the study of sorting algorithms in computer science.
Although many consider it a solved problem, useful new sorting algorithms are still being invented (for example, library sort was first published in 2006).
Unstable sorting algorithms can be specially implemented to be stable.
This uses the same divide-and-conquer strategy of mergesort and other fast sorting algorithms.
See the next section for how efficient sorting algorithms can create efficient priority queues.
Sorting algorithms can be parallelized efficiently, but their communication overhead is expensive.
This fast average runtime is another reason for quicksort's practical dominance over other sorting algorithms.
Tournament replacement selection sorts are used to gather the initial runs for external sorting algorithms.
In particular, some sorting algorithms are "in place".
One application for stable sorting algorithms is sorting a list using a primary and secondary key.
Note that from a computational-complexity standpoint, priority queues are congruent to sorting algorithms.
Selection sort is not difficult to analyze compared to other sorting algorithms since none of the loops depend on the data in the array.
Internally, these utilities use one or more of the standard sorting algorithms, often with proprietary fine-tuned code.
More efficient than any of these are specialized partial sorting algorithms based on mergesort and quicksort.
This result plays a key role in the analysis of the computational complexity of sorting algorithms (see comparison sort).