Copyright | (c) Andrey Mulik 2019 |
---|---|
License | BSD-style |
Maintainer | work.a.mulik@gmail.com |
Portability | non-portable (requires non-portable modules) |
Safe Haskell | Safe |
Language | Haskell2010 |
SDP.SortM.Tim provides InsertionSort
and TimSort
algorithms.
TimSort
timSortBy :: (LinearM m v e, BorderedM m v i) => Compare e -> v -> m () Source #
timSortBy
is a sorting procedure for mutable random access data structures
using any comparison function and having O(nlogn)
complexity in the worst
case.