Skip to content

jfklorenz/RMedian-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RMedian-Algorithm

GitHub status GitHub top language Travis PyPI version Liscence

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.

RMedian is a randomized recursive algorithm that finds the median element of a given total orderer set of elements. The algorithm has a tuning parameter k(n) controlling the trade-pff between the expected fragile complexity f_med(n) of the median element and the maximum expected fragile complexity f_rem(n) of the remaining non-median elements; if n is clear from the context, we use k instead of k(n).

The included paper provides further details regarding the work and fragile complexity of various inputs.

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

The package was published on PyPI and tested on Travis CI.

Releases

No releases published

Packages

No packages published