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 median-of-medians on unboxed vectors. As a selection algorithm, it has optimal \(\mathcal{O}(n)\) worst-case time, however it is usually beaten in practice by quickselect (which has \(\mathcal{O}(n^2)\) worst-case time). For an algorithm with the same worst-case time, but better general performance, see Data.Select.Unboxed.Intro.