Bogosort

Hello!

To view this page you need Microsoft Silverlight 3 plug-in.
Silverlight will enable your browser to understand complex Rich Internet Applications.
After installing (~10 seconds), you will be able to view and execute live algorithms.

Click here to download the plugin directly from Microsoft (4 MB)
If you want to learn more about MS Silverlight, take a look at this Wikipedia article.
Output
type in the input above and click 'Execute'
the result will be outputted here
Related Algorithms
Discussion
0
no comments yet
login to leave a comment
Version 1
Version 1 by creker
+1
Bogosort is a particularly ineffective sorting algorithm based on the generate and test paradigm. It is not useful for sorting, but may be used for educational purposes, to contrast it with other more realistic algorithms; it has also been used as an example in logic programming. If bogosort were used to sort a deck of cards, it would consist of checking if the deck were in order, and if it were not, throwing the deck into the air, picking the cards up at random, and repeating the process until the deck is sorted.

Worst case performance O(inf)
Best case performance O(n)
Average case performance O(n × n!)
Worst case space complexity O(n)

http://en.wikipedia.org/wiki/Bogosort
By creker
10 months and 2 weeks ago
up down

implementations

one version available

rated by

one user - list?

viewed by

one user - list?

favorited by

0 users - list?

last activity

10 months and 2 weeks ago