flexible-skiplist-0.1.0
توضیحات
A flexible skiplist data structure that also supports O(logn) cumulative sums
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | flexible-skiplist-0.1.0 |
| نام | flexible-skiplist |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Margus Niitsoo |
| ایمیل نویسنده | velochy@gmail.com |
| آدرس صفحه اصلی | https://github.com/velochy/flexible_skiplist |
| آدرس اینترنتی | https://pypi.org/project/flexible-skiplist/ |
| مجوز | MIT |
A flexible implementation of the skiplist data structure
This implementation of skiplist unlocks the full potential of the data structure by also allowing for both sorted and non-sorted skiplists and also enabling O(logn) search by cumulative sums.
In short, it can serve as the standard sorted key-value store (as do other implementations),
but it can also allow you to keep a non-sorted list which gives you O(logn) calculation of sums from beginning to k-th element.
Or, as was the use case the author needed but did not find, both at the same time - a sorted list with search into it also by cumulative sums.
The code is written in pure Python 3 without external dependencies and is moderately optimized.
نحوه نصب
نصب پکیج whl flexible-skiplist-0.1.0:
pip install flexible-skiplist-0.1.0.whl
نصب پکیج tar.gz flexible-skiplist-0.1.0:
pip install flexible-skiplist-0.1.0.tar.gz