RMedian-Algorithm
A Python implementation of the RMedian algorithm.
The algorithm is presented in the paper Fragile Complexity of Comparison-Based Algorithms by Prof. Dr. Ulrich Meyer and others in 2019, which can can be found on arXiv.org.
It introduces the algorithm RMedian and also the concept of fragile complexity, i.e. the amount of times an element has been compared during the process of the algorithm.
The package was published on PyPI and tested on Travis CI.
| Folder | Content |
|---|---|
| data | all experimental data as .csv files |
| docs | scientific paper presenting the algorithm (old & new version) |
| jupyter | Jupyter Notebook validation and test files |
| poster | design for a poster explaining the algorithm |
| src | Python source code |
| tests | PyTest test files |
Algorithm
Complexity
- Runtime: RMedian requires linear work w(n) = O(n).
- Let k(n) = n_ε for 0 < ε ≤ 1/2. Then RMedian requires E(f_min(n)) = O(ε−1loglog(n)) comparisons for the minimum and E(f_rem(n)) = O(n_ε) for the remaining elements.
- Let k(n) = logn/loglogn. Then RMedian requires E(f_min(n)) = O(log(n)/loglog(n)) comparisons for the minimum and E(f_rem(n)) = O(log(n)/loglog(n)) for the remaining elements.
Metadata
Release files for RMedian-Algorithm 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| RMedian-Algorithm-0.0.1.tar.gz | 3.6 kB | Without provenance | Details for RMedian-Algorithm-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| RMedian_Algorithm-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for RMedian_Algorithm-0.0.1-py3-none-any.whl |
Total release size: 9.7 kB
Release files / RMedian-Algorithm-0.0.1.tar.gz
| Download URL | RMedian-Algorithm-0.0.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b5d2fa6eb751553f0a0d8b5e64588179945dcd861423f43fbc3f65d4505165c
|
|
BLAKE2b-256 checksum How to use checksums |
32d05bc0a27c79e2a934d2a9df42a96bcfeabd327fcbed9250b75bbf3a1c7255
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|
Release files / RMedian_Algorithm-0.0.1-py3-none-any.whl
| Download URL | RMedian_Algorithm-0.0.1-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
506f5882f3272ff20a4a9c45a45a820c8930501364f88652cb8335f64c96c393
|
|
BLAKE2b-256 checksum How to use checksums |
1f164914e8eed819d91f05c06d89ff5630827158f6b6d6417c9eca153e1bafe0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|
Security for RMedian-Algorithm 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.