Bead Sort Algorithm

Bead sort, also named gravity sort, is a natural sorting algorithm, developed by Joshua J. Arulanandham, Cristian S. Calude and Michael J. Dinneen in 2002, and published in The bulletin of the European Association for Theoretical computer Science. Both digital and analogue hardware implementations of bead sort can achieve a sorting time of O(n); however, the implementation of this algorithm tends to be significantly slower in software and can only be used to sort lists of positive integers.

Bead Sort source code, pseudocode and analysis