kevinmichaelchen / monkey-sort-rs

Monkey sort implementation with Rust

Home Page:https://en.wikipedia.org/wiki/Bogosort

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

monkey-sort-rs

Monkey sort is a highly ineffective sorting algorithm, described by the following pseudocode:

while not isInOrder(deck):
    shuffle(deck)

You can run the program by running:

make

# sort an array of 4 elements
cargo run 4

# sort an array of 6 elements
cargo run 6

About

Monkey sort implementation with Rust

https://en.wikipedia.org/wiki/Bogosort


Languages

Language:Rust 96.1%Language:Makefile 3.9%