Radix Quantile Algorithms

Python has a set of functions in several popular packages to compute Quantiles. For example, if you want to find Quartiles (or quarters) within a numeric array – i.e. values within the array which are 25%, 50% and 75% of the input data range. Or, if you want Quintiles (or fifths), which are 20%, 40%, […]

Read more "Radix Quantile Algorithms"

In-Place MSD Radix Sort Explained

Most algorithms books describe LSD and MSD Radix Sort variations. However, they do not cover in-place variations. Wikipedia does not describe it either. In this blog I describe an in-place MSD Radix Sort. This is a simpler variant to describe than the type I’ve developed and discussed in previous blogs and in my “Practical Parallel […]

Read more "In-Place MSD Radix Sort Explained"

Radix Selection Algorithm

There is a closely related algorithm to sorting called Selection, which provides the k-th element from an unsorted array. For example, a 17-th highest test score from a college Physics class, or a 91-st most popular book at the library. One way to accomplish Selection is to sort the array and then access the k-th […]

Read more "Radix Selection Algorithm"