Bead-Sort: A Natural Sorting Algorithm
暂无分享,去创建一个
Nature is not only a source of minerals and precious stones but is also a mine of algorithms. By observing and studying natural phenomena, computer algorithms can be extracted. In this note, a simple natural phenomenon is used to design a sorting algorithm for positive integers, called here Bead–Sort. The algorithm’s run– time complexity ranges from O(1) to O(S )( S is the sum of the input integers) depending on the user’s perspective. Finally, three possible implementations are suggested.
[1] Stephen Wolfram,et al. Theory and Applications of Cellular Automata , 1986 .
[2] Edsger W. Dijkstra,et al. The end of computing science? , 2001, CACM.