Quicksort, or partition-exchange sort, is a sorting algorithm developed by Tony Hoare that, on average, makes O(n log n) comparisons to sort n items.
In the worst case, it makes O(n2) comparisons, though this behavior is rare. Quicksort is often faster in practice than other O(n log n) algorithms.
Additionally, quicksort's sequential and localized memory references work well with a cache. Quicksort is a comparison sort and, in efficient implementations, is not a stable sort. Quicksort can be implemented with an in-place partitioning algorithm, so the entire sort can be done with only O(log n) additional space used by the stack during the recursion.
Curabitur at orci ipsum. Etiam ut orci erat, in vulputate mauris. Ut id ipsum quam. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam ut pulvinar odio. Phasellus tempor lacus in felis porta pulvinar. Nulla sed felis id magna aliquet tempor. Nulla volutpat nulla a dolor suscipit sagittis. Pellentesque vitae dui eu neque luctus accumsan. Nunc pulvinar lectus nulla, sit amet vulputate orci. Quisque malesuada, urna a feugiat consequat, eros turpis viverra augue, eget ornare nunc erat sit amet nunc. Duis rhoncus elit nec justo adipiscing nec auctor eros consectetur.
Sed faucibus euismod pellentesque. Morbi sollicitudin eros ut tellus mattis a cursus sem consequat. Praesent a facilisis mauris. Aliquam in diam vel lorem suscipit volutpat sit amet tincidunt lacus. Sed ligula eros, blandit eget condimentum a, pellentesque et velit. In fringilla hendrerit nulla in laoreet. Nulla a ante nulla, sed iaculis ipsum. Aliquam ornare urna nec est condimentum porta. Vivamus sit amet dolor in neque pulvinar pulvinar.