LSchwerdt / SimultaneousSortperm.jl

MIT License
7 stars 1 forks source link
sorting

SimultaneousSortperm

Build Status

The SimultaneousSortperm package provides functions that mimic sortperm and sortperm!, but achieve better performance for large input sizes by simultaneously sorting the data and index vector. First the data is sorted using the unstable Pattern-Defeating-Quicksort algorithm while simultaneously moving the corresponding indices. In a second pass, all subarrays with equal data elements are sorted according to their indices to ensure stability.

The following functions are exported:

Benchmarks

More benchmark results can be found here.

Roadmap

Possible Improvements / Changes