Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Algorithm

Quickselect

Searching Algorithm

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 is also known as Hoare's selection algorithm. Quickselect uses the same overall approach as quicksort, choosing one element as a pivot and partitioning the data based on the pivot, but instead of recursing into both sides it only recurses into the side holding the element it is searching for, reducing the average complexity to linear time with a quadratic worst case.

Facts
Time Complexity
Time Complexity (category)
Linear Time -- O(n) 1
Classification
Design Technique
Divide and Conquer 1
Connections

Credited To

Tony Hoare, Pioneers
Source Quickselect (Wikipedia)

Invented

Tony Hoare, Pioneers
Source Quickselect (Wikipedia)
Sources
1. Quickselect (Wikipedia)
  • Wikipedia infobox: time complexity linear
    linear
  • Wikipedia: design technique divide-and-conquer
    divide-and-conquer
  • Invented: Tony Hoare, Intro, lead sentence
    Tony Hoare
  • Credited To: Tony Hoare, Intro, lead sentence
    Tony Hoare
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.