Skip to content
مرتب‌سازی سریع

File:Sorting_quicksort_anim.gif · Wikimedia Commons · See Wikimedia Commons

EntityQ486598· pop 58· linked from 173 articles

مرتب‌سازی سریع

Sign in to save

Also known as partition-exchange sort

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.

AI overview

Quicksort is an efficient algorithm developed in 1961 that arranges data into order, and it remains widely used in computing today. It typically performs slightly faster than other popular sorting methods, especially when handling large amounts of random data.

AI-generated from the Wikipedia summary — may contain errors.

Key facts

Algorithm.name
Quicksort
Algorithm.class
Sorting algorithm
Algorithm.image
Sorting quicksort anim.gif
Algorithm.caption
Animated visualization of the quicksort algorithm. The horizontal lines are pivot values.
Algorithm.time
O(n^2)
Algorithm.average time
O(n\log n)
Algorithm.best time
O(n\log n) (simple partition)or O(n) (three-way partition and equal keys)
Algorithm.space
O(n) auxiliary (naive)O(\log n) auxiliary (Hoare 1962)
Algorithm.optimal
No
Algorithm.stability
Not Stable

via Wikipedia infobox

Wikidata facts

Image
Quicksort-diagram.svg
Show 5 more facts
discoverer or inventor
Tony Hoare
Commons category
Quicksort
time of discovery or invention
1961-00-00
maintained by WikiProject
WikiProject Mathematics
Sources (4)

via Wikidata · CC0

Gallery (5)