enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Sorting algorithm - Wikipedia

    en.wikipedia.org/wiki/Sorting_algorithm

    A kind of opposite of a sorting algorithm is a shuffling algorithm. These are fundamentally different because they require a source of random numbers. Shuffling can also be implemented by a sorting algorithm, namely by a random sort: assigning a random number to each element of the list and then sorting based on the random numbers.

  3. Comparison sort - Wikipedia

    en.wikipedia.org/wiki/Comparison_sort

    Sorting a set of unlabelled weights by weight using only a balance scale requires a comparison sort algorithm. A comparison sort is a type of sorting algorithm that only reads the list elements through a single abstract comparison operation (often a "less than or equal to" operator or a three-way comparison) that determines which of two elements should occur first in the final sorted list.

  4. Category:Comparison sorts - Wikipedia

    en.wikipedia.org/wiki/Category:Comparison_sorts

    A type of sorting algorithm which can only read the list elements through a single abstract comparison operation (often a "less than" operator) that determines which of two elements should occur first in the final sorted list

  5. Smoothsort - Wikipedia

    en.wikipedia.org/wiki/Smoothsort

    In computer science, smoothsort is a comparison-based sorting algorithm.A variant of heapsort, it was invented and published by Edsger Dijkstra in 1981. [1] Like heapsort, smoothsort is an in-place algorithm with an upper bound of O(n log n) operations (see big O notation), [2] but it is not a stable sort.

  6. Selection sort - Wikipedia

    en.wikipedia.org/wiki/Selection_sort

    In computer science, selection sort is an in-place comparison sorting algorithm. It has a O ( n 2 ) time complexity , which makes it inefficient on large lists, and generally performs worse than the similar insertion sort .

  7. Merge sort - Wikipedia

    en.wikipedia.org/wiki/Merge_sort

    In computer science, Merge Sort (also commonly spelled as mergesort and as merge-sort [2]) 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.

  8. Quicksort - Wikipedia

    en.wikipedia.org/wiki/Quicksort

    If K ≫ log N but elements are unique within O(log N) bits, the remaining bits will not be looked at by either quicksort or quick radix sort. Failing that, all comparison sorting algorithms will also have the same overhead of looking through O(K) relatively useless bits but quick radix sort will avoid the worst case O(N 2) behaviours of ...

  9. Category:Sorting algorithms - Wikipedia

    en.wikipedia.org/wiki/Category:Sorting_algorithms

    Comparison sorts‎ (33 P) O. Online sorts‎ (6 P) S. ... Pages in category "Sorting algorithms" The following 48 pages are in this category, out of 48 total.