Package for the RMedian algorithm
Project description
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.
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 RMedian-Algorithm-0.0.1.tar.gz.
File metadata
- Download URL: RMedian-Algorithm-0.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b5d2fa6eb751553f0a0d8b5e64588179945dcd861423f43fbc3f65d4505165c
|
|
| MD5 |
044b97331eeb77b9eb9bd6c4c4c03678
|
|
| BLAKE2b-256 |
32d05bc0a27c79e2a934d2a9df42a96bcfeabd327fcbed9250b75bbf3a1c7255
|
File details
Details for the file RMedian_Algorithm-0.0.1-py3-none-any.whl.
File metadata
- Download URL: RMedian_Algorithm-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
506f5882f3272ff20a4a9c45a45a820c8930501364f88652cb8335f64c96c393
|
|
| MD5 |
907e8d4d45fe2ef461c1213b7adad7d8
|
|
| BLAKE2b-256 |
1f164914e8eed819d91f05c06d89ff5630827158f6b6d6417c9eca153e1bafe0
|