Acme::ICan'tBelieveItCanSort - Wait... It Actually Works?
use Acme::ICan'tBelieveItCanSort; Acme::ICan'tBelieveItCanSort( 3, 4, 5, 5, 68, 1, 4, 321, 32, 321 );
Acme::ICan'tBelieveItCanSort is a pure Perl implementation of "the simplest (and most surprising) sorting algorithm ever" as described by Stanley P. Y. Fung:
We present an extremely simple sorting algorithm. It may look like it is obviously wrong, but we prove that it is in fact correct. We compare it with other simple sorting algorithms, and analyse some of its curious properties.
This module itself is named after Algorithm 1.
Algorithm 1
Stanley P. Y. Fung, https://arxiv.org/abs/2110.01111
Copyright (C) Sanko Robinson.
This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module.
Sanko Robinson <sanko@cpan.org>
To install Acme::ICan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::ICan
CPAN shell
perl -MCPAN -e shell install Acme::ICan
For more information on module installation, please visit the detailed CPAN module installation guide.