Common · Knowledge
Quickselect
Selection algorithm to find the kth smallest element in an unordered list
In computer science, quickselect is a selection algorithm to find the kth smallest element in an unordered list, also known as the kth order statistic. Like the related quicksort sorting algorithm, it was developed by Tony Hoare, and thus is also known as Hoare's selection algorithm.
From Wikipedia
In computer science, quickselect is a selection algorithm to find the kth smallest element in an unordered list, also known as the kth order statistic. Like the related quicksort sorting algorithm, it was developed by Tony Hoare, and thus is also known as Hoare's selection algorithm. Like quicksort, it is efficient in practice and has good average-case performance, but has poor worst-case performance. Quickselect and its variants are the selection algorithms most often used in efficient real-world implementations. Quickselect uses the same overall approach as quicksort, choosing one element as a pivot and partitioning the data in two based on the pivot, accordingly as less than or greater than the pivot. However, instead of recursing into both sides, as in quicksort, quickselect only recurses into one side – the side with the element it is searching for. This reduces the average complexity from O ( n log n ) {\displaystyle O(n\log n)} to O ( n ) {\displaystyle O(n)} , with a worst case of O ( n 2 ) {\displaystyle O(n^{2})} . As with quicksort, quickselect is generally implemented as an in-place algorithm, and beyond selecting the kth element, it also partially sorts the data. See selection algorithm for further discussion of the connection with sorting.
Text: Wikipédia, CC BY-SA 4.0. · Image: Pashapanther (CC BY 3.0) ·
Related cards
-
F★★
Fréchet–Kolmogorov theorem
-
R★★★
Ramazan Civelek
Turkish association football player (born 1996)
-
★★★
Alperen Uysal
Turkish association football player (born 1994)
-
Y★★
Yiğit Emre Çeltik
Turkish association football player (born 2003)
-
H★★★
Hakan Keleş
Turkish association football player (born 1972)
-
★★★★★★
Zeki Çelik
Turkish association football player (born 1997)
-
E★★
Erdem Seçgin
Turkish association football player (born 2000)
-
M★★
Mesut Çaytemel
Turkish association football player (born 1984)
-
Ü★★
Üstün Bilgi
Turkish association football player (born 1988)
-
F★★
Furkan Külekçi
Turkish association football player (born 2001)
-
★★★
Maksim Turishchev
Russian footballer
-
S★★★
Seyit Cem Ünsal
Turkish association football player (born 1975)
-
B★★
Bartuğ Elmaz
Turkish association football player (born 2003)
-
H★★★
Hakan Köseoğlu
Turkish basketball player (born 1981)
-
E★★
Emre Satılmış
Turkish association football player (born 1996)
-
E★★★
Ertuğrul Çetin
Turkish association football player (born 2003)
-
C★★
Civar Çetin
Turkish association football player (born 1992)
-
★★★
Cenk İşler
Turkish association football player (born 1974)