Really really bad sorting algorithms
Project description
How to use
pip install shitsort
example usage:
import shitsort
myarray = [1, 5, 12, 6, 6, 11]
print(shitsort.bogosort(myarray))
print(shitsort.multibogosort(myarray, 4)) # uses 4 processes
>>> [1, 5, 6, 6, 11, 12]
>>> [1, 5, 6, 6, 11, 12]
functions:
bogosort(array)
returns a new sorted array of array
using the bogosort algorithm without modifying the passed in array
multibogosort(array, numthreads)
returns a new sorted array of array
using the bogosort algorithm without modifying the passed in array, but on multiple processes simultaneously. The number of processes can be specified with numthreads
contributors: sh6heer, jas-dzied
Licensed under GPL GNUv3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shitsort-1.0.6.tar.gz
(14.0 kB
view hashes)
Built Distribution
shitsort-1.0.6-py3-none-any.whl
(14.6 kB
view hashes)