Quicksort

Divide and conquer sorting algorithm

Quicksort

Summary

Quicksort is an efficient, general-purpose sorting algorithm. Quicksort was developed by British computer scientist Tony Hoare in 1959 and published in 1961. It is still a commonly used algorithm for sorting. Overall, it is slightly faster than merge sort and heapsort for randomized data, particularly on larger distributions.

Originally created by Kragen

10/29/2001, 7:25:18 AM

Modified

5/7/2026, 8:26:31 AM

Recent revisions

~2026-24959-925/7/2026, 8:26:31 AM

/* Algorithm */ Overhaul description. Make small-array handling a separate (optional) numbered section, and make the description of partitioning more linear, with fewer exceptions, while still generalizing to fat pivots. Move the point about the pivot being in the correct place already to the last (recursion) step to shorten the lengthy partitioning description.

Jpbowen4/15/2026, 9:23:16 PM

Added category

Jpbowen4/14/2026, 8:59:01 PM

Tidying, template

Jpbowen4/4/2026, 4:15:16 PM

Added ref, infobox update

AlgorithmSoup4/3/2026, 8:57:54 PM

/* History */

AlgorithmSoup4/3/2026, 8:52:19 PM

/* History */ Added Hoare's theoretical analysis

XHardWare2/28/2026, 11:56:38 PM

/* growthexperiments-addlink-summary-summary:2|0|1 */

CiaPan2/6/2026, 8:18:43 AM

adding some spaces

Acalamari2/6/2026, 6:58:50 AM

Grammar / redundant

Lee Vilenski1/28/2026, 6:49:45 PM

clean up, replaced: {{PAGENAMEBASE}} → {{subst:PAGENAMEBASE}}

~2026-18164-21/9/2026, 12:18:55 PM

/* History */

~2026-18164-21/9/2026, 12:18:17 PM

/* History */

JayBeeEll12/28/2025, 9:37:55 PM

Reverted 1 edit by [[Special:Contributions/~2025-43197-37|~2025-43197-37]] ([[User talk:~2025-43197-37|talk]]): Linkspam

~2025-43197-3712/28/2025, 2:14:35 PM

Add link to online demo of bubble, quick and merge sort

Glitched Falcon11/6/2025, 12:13:01 PM

/* growthexperiments-addlink-summary-summary:3|0|0 */

72.235.36.2439/29/2025, 8:17:18 PM

/* Using percentiles */

72.235.36.2439/29/2025, 8:16:24 PM

/* Using percentiles */

Citation bot9/7/2025, 1:06:01 AM

Altered date. | [[:en:WP:UCB|Use this bot]]. [[:en:WP:DBUG|Report bugs]]. | Suggested by Headbomb | Linked from Wikipedia:WikiProject_Academic_Journals/Journals_cited_by_Wikipedia/Sandbox2 | #UCB_webform_linked 256/995

AnomieBOT7/11/2025, 1:13:53 PM

Dating maintenance tags: {{Citation needed}}

AmirOnWiki7/11/2025, 11:13:10 AM

/* Formal analysis */

Contributors

Source: WikipediaView full article