Global Information Lookup Global Information

Median of medians information


Median of Medians
Illustration showing vertical rectangles with 5 circles in each. The middle circle is black and the others are white/empty. The very middle rectangle has an arrow pointing to its black circle and an 'x' at the end of the arrow.
Median of medians
ClassSelection algorithm
Data structureArray
Worst-case performance
Best-case performance
Worst-case space complexity auxiliary
OptimalYes

In computer science, the median of medians is an approximate median selection algorithm, frequently used to supply a good pivot for an exact selection algorithm, most commonly quickselect, that selects the kth smallest element of an initially unsorted array. Median of medians finds an approximate median in linear time. Using this approximate median as an improved pivot, the worst-case complexity of quickselect reduces from quadratic to linear, which is also the asymptotically optimal worst-case complexity of any selection algorithm. In other words, the median of medians is an approximate median-selection algorithm that helps building an asymptotically optimal, exact general selection algorithm (especially in the sense of worst-case complexity), by producing good pivot elements.

Median of medians can also be used as a pivot strategy in quicksort, yielding an optimal algorithm, with worst-case complexity .[citation needed] Although this approach optimizes the asymptotic worst-case complexity quite well, it is typically outperformed in practice by instead choosing random pivots for its average complexity for selection and average complexity for sorting, without any overhead of 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 smallest is found. This again ensures a worst-case linear performance, in addition to average-case linear performance: introselect starts with quickselect (with random pivot, default), to obtain good average performance, and then falls back to modified quickselect with pivot obtained from median of medians if the progress is too slow. Even though asymptotically similar, such a hybrid algorithm will have a lower complexity than a straightforward introselect up to a constant factor (both in average-case and worst-case), at any finite length.

The algorithm was published in Blum et al. (1973), and thus is sometimes called BFPRT after the last names of the authors. In the original paper the algorithm was referred to as PICK, referring to quickselect as "FIND".

and 26 Related for: Median of medians information

Request time (Page generated in 0.8729 seconds.)

Median of medians

Last Update:

In computer science, the median of medians is an approximate median selection algorithm, frequently used to supply a good pivot for an exact selection...

Word Count : 2554

Median

Last Update:

§ Inequality relating means and medians below. As a median is based on the middle data in a set, it is not necessary to know the value of extreme results in order...

Word Count : 7641

Median plane

Last Update:

Whether in reference to the anatomy of the human or other members of the Bilateria, the median plane, also called a mid-sagittal plane and related terms...

Word Count : 195

Median absolute deviation

Last Update:

median of the absolute deviations from the data's median X ~ = median ⁡ ( X ) {\displaystyle {\tilde {X}}=\operatorname {median} (X)} : MAD = median ⁡...

Word Count : 1095

Median nerve

Last Update:

The median nerve is a nerve in humans and other animals in the upper limb. It is one of the five main nerves originating from the brachial plexus. The...

Word Count : 2994

Median filter

Last Update:

Furthermore, some types of signals (very often the case for images) use whole number representations: in these cases, histogram medians can be far more efficient...

Word Count : 1277

Median income

Last Update:

differ from the mean (or average) income. Both of these are ways of understanding income distribution. Median income can be calculated by household income...

Word Count : 390

Weighted median

Last Update:

ideal to take the mean of these weighted medians when it makes sense instead. Coincidentally, both the weighted median and median are equal to 2.5, but...

Word Count : 1274

Selection algorithm

Last Update:

problems of finding the minimum, median, and maximum element in the collection. Selection algorithms include quickselect, and the median of medians algorithm...

Word Count : 5704

Median strip

Last Update:

medians than are feasible with a planted strip, but research indicates that such narrow medians may have minimal safety benefit compared to no median...

Word Count : 2828

Median eminence

Last Update:

The median eminence is generally defined as the portion of the ventral hypothalamus from which the portal vessels arise. The median eminence is a small...

Word Count : 611

Median state

Last Update:

scholarship tends to be skeptical about the existence of a united Median "kingdom" or "state", at least for most of the 7th century BCE. According to classical...

Word Count : 15578

Median regression

Last Update:

Median regression may refer to: Quantile regression, a regression analysis used to estimate conditional quantiles such as the median Repeated median regression...

Word Count : 60

Median aperture

Last Update:

The median aperture (also known as the medial aperture and foramen of Magendie) is an opening of the fourth ventricle at the caudal portion of the roof...

Word Count : 483

List of countries by median age

Last Update:

This article is a list of countries by median age. The median age is the index that divides the entire population into two numerically equal age groups...

Word Count : 218

Medes

Last Update:

the "Medians"; in fact for a Greek to become "too closely associated with Iranian culture" was "to become Medianized, not Persianized". The Median kingdom...

Word Count : 9000

Median language

Last Update:

Median (also Medean or Medic) was the language of the Medes. It is an ancient Iranian language and classified as belonging to the Northwestern Iranian...

Word Count : 1405

Median cubital vein

Last Update:

In human anatomy, the median cubital vein (or median basilic vein) is a superficial vein of the arm on the anterior aspect of the elbow. It classically...

Word Count : 696

Palmar branch of the median nerve

Last Update:

The palmar branch of the median nerve is a branch of the median nerve which arises at the distal part of the forearm. It pierces the palmar carpal ligament...

Word Count : 197

Median test

Last Update:

rejection was caused only by the shift in medians. It is easy to prove by simulations, where samples with equal medians, yet different scales and shapes, lead...

Word Count : 493

Median voter theorem

Last Update:

Coombs' method – satisfy the median voter property in spaces of any dimension for voter distributions with omnidirectional medians. It is easy to construct...

Word Count : 2912

Median arcuate ligament

Last Update:

The median arcuate ligament is a ligament under the diaphragm that connects the right and left crura of diaphragm. The median arcuate ligament is formed...

Word Count : 282

Geometric median

Last Update:

In geometry, the geometric median of a discrete set of sample points in a Euclidean space is the point minimizing the sum of distances to the sample points...

Word Count : 2817

Median sternotomy

Last Update:

Median sternotomy is a type of surgical procedure in which a vertical inline incision is made along the sternum, after which the sternum itself is divided...

Word Count : 504

Median tongue bud

Last Update:

The median tongue bud (also tuberculum impar) marks the beginning of the development of the tongue. It appears as a midline swelling from the first pharyngeal...

Word Count : 140

Median rhomboid glossitis

Last Update:

Median rhomboid glossitis is a condition characterized by an area of redness and loss of lingual papillae on the central dorsum of the tongue, sometimes...

Word Count : 490

PDF Search Engine © AllGlobal.net