Global Information Lookup Global Information

Introselect information


Introselect (Musser)
ClassSelection algorithm
Data structureArray
Worst-case performanceO(n)
Best-case performanceO(n)
Introselect (Quickselect–Heapselect)
ClassSelection algorithm
Data structureArray
Worst-case performanceO(n log n)
Best-case performanceO(n)

In computer science, introselect (short for "introspective selection") is a selection algorithm that is a hybrid of quickselect and median of medians which has fast average performance and optimal worst-case performance. Introselect is related to the introsort sorting algorithm: these are analogous refinements of the basic quickselect and quicksort algorithms, in that they both start with the quick algorithm, which has good average performance and low overhead, but fall back to an optimal worst-case algorithm (with higher overhead) if the quick algorithm does not progress rapidly enough. Both algorithms were introduced by David Musser in (Musser 1997), with the purpose of providing generic algorithms for the C++ Standard Library that have both fast average performance and optimal worst-case performance, thus allowing the performance requirements to be tightened.[1]

However, in most C++ Standard Library implementations, a different "introselect" algorithm is used, which combines quickselect and heapselect, and has a worst-case running time of O(n log n).[2] The C++ draft standard, as of 2022, does not have requirements on the worst-case performance, therefore allowing such choice.[3]

  1. ^ "Generic Algorithms", David Musser
  2. ^ "35968 – nth_element fails to meet its complexity requirements".
  3. ^ "27.8.3 Nth element [alg.nth.element]". Working Draft, Standard for Programming Language C++, eel.is.

and 8 Related for: Introselect information

Request time (Page generated in 0.5266 seconds.)

Introselect

Last Update:

In computer science, introselect (short for "introspective selection") is a selection algorithm that is a hybrid of quickselect and median of medians...

Word Count : 524

Quickselect

Last Update:

allows an attack against that strategy, which was one motivation for his introselect algorithm. One can assure linear performance even in the worst case by...

Word Count : 1163

Median of medians

Last Update:

computing the pivot. Similarly, Median of medians is used in the hybrid introselect algorithm as a fallback for pivot selection at each iteration until kth...

Word Count : 2554

Introsort

Last Update:

invented by David Musser in Musser (1997), in which he also introduced introselect, a hybrid selection algorithm based on quickselect (a variant of quicksort)...

Word Count : 1080

David Musser

Last Update:

known as introspective sort), and the related selection algorithm called introselect, to provide algorithms that are both efficient and have optimal worst-case...

Word Count : 201

Hybrid algorithm

Last Update:

example of hybrid algorithms for performance reasons are introsort and introselect, which combine one algorithm for fast average performance, falling back...

Word Count : 606

List of algorithms

Last Update:

or spelling of the target object is not precisely known Quickselect Introselect Linear search: locates an item in an unsorted sequence Selection algorithm:...

Word Count : 7843

Selection algorithm

Last Update:

than sorting for inputs of moderate size. Hybrid algorithms such as introselect can be used to achieve the practical performance of quickselect with...

Word Count : 5704

PDF Search Engine © AllGlobal.net