MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / bogo_sort.py

File bogo_sort.py

sorts/bogo_sort.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2This is a pure Python implementation of the bogosort algorithm,
3also known as permutation sort, stupid sort, slowsort, shotgun sort, or monkey sort.
4Bogosort generates random permutations until it guesses the correct one.

Callers

nothing calls this directly

Calls 2

bogo_sortFunction · 0.85
splitMethod · 0.80

Tested by

no test coverage detected