pub trait Slowsort {
// Required method
fn slowsort(&mut self);
}
Expand description
This trait provides the slowsort
functionality.
Required Methods§
Sourcefn slowsort(&mut self)
fn slowsort(&mut self)
Slowsort is a humurous sorting algorithm based on the principle of multiply and surrender. The algorithm itself is of recursive nature. It finds the maximum of the sorted array, places that maximum at the end and sorts the remaining array recursively.
A detailed explanation of Slowsort can be found on Wikipedia.