Copyright | (c) Donnacha Oisín Kidney 2018 |
---|---|
License | MIT |
Maintainer | mail@doisinkidney.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This module provides an implementation of quickselect on boxed vectors. It has an average time of \(\mathcal{O}(n)\), but a worst-case time of \(\mathcal{O}(n^2)\). For an algorithm with similar performance but a better worst-case time, see Data.Select.Intro.