We’ve looked at a variety of sorting algorithms so far, and most of them have been quite good. Some, like Mergesort and Quicksort, have been extra good with nice performance and memory usage. Today, we are going to take a detour and learn about a horribly inefficient algorithm known as Bogosort (aka permutation sort, stupid sort, or monkey sort).
-------
📄 Read the article: https://www.kirupa.com/data_structure...
📙 Check out all of my books: https://www.kirupa.com/book/index.htm
🗞️ Sign-up to the newsletter: https://kirupa.substack.com/
❓ Ask a question: https://forum.kirupa.com
-------
#javascript #algorithms #datastructures