A flexible skiplist data structure that also supports O(logn) cumulative sums
Project description
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flexible-skiplist-0.1.0.tar.gz.
File metadata
- Download URL: flexible-skiplist-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbeedcb862d43ad5a33f812a4acc017ddfaf2c6dce187aea6b98a5fd76e5f824
|
|
| MD5 |
8efe1022b15f0f32d7f278c340c8eede
|
|
| BLAKE2b-256 |
219d8356ae0ed5a51518e90633c44f0414a10e0211cdef0f693ac7b9f5cea502
|
File details
Details for the file flexible_skiplist-0.1.0-py3-none-any.whl.
File metadata
- Download URL: flexible_skiplist-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
691f962ab7926a1029aea408338a92ca26e756d0e79f4e3802b3b3ffccf9476b
|
|
| MD5 |
9b6093a66be566b72956bc910024f06c
|
|
| BLAKE2b-256 |
26bb21ee75fbf9083f3e40ef64389b30b63ec175cb8ecf93709fd8c55e120629
|