Timsort sorting algorithm with custom minrun
Project description
CustomTimSort
CustomTimSort is a library where you can sort python objects using custom minruns. How to use:
from timsort import timsort, get_minrun
minrun = get_minrun(len(yours_object))
timsort(yours_object, minrun)
get_minrun(len_of_yours_object: int) -> int
Returns predicted minrun for given object's size
timsort(yours_object: some iterible obj, minrun: int) -> int
Sorts yours_object using given minrun
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
customtimsort-0.0.83.tar.gz
(156.8 kB
view hashes)