Skip to content

fedelebron/Quicksort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A tiny quicksort implementation.

Uses the middle element as a pivot, and works in-place.

median_quicksort is a slightly more clever implementation, as it uses the median of the middle, first and last elements for pivoting. Nonetheless, there exist median-of-three killer datasets. A randomized implementation would be better when inputs are both unknown and can be malicious.

About

Two tiny quicksort implementations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages