Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
""
"
2
This is a pure Python implementation of the bogosort algorithm,
3
also known
as
permutation sort, stupid sort, slowsort, shotgun sort, or monkey sort.
4
Bogosort generates random permutations until it guesses the correct one.
Callers
nothing calls this directly
Calls
2
bogo_sort
Function · 0.85
split
Method · 0.80
Tested by
no test coverage detected