DSA-guide icon indicating copy to clipboard operation
DSA-guide copied to clipboard

Adding a new sorting technique.

Open noviicee opened this issue 3 years ago • 2 comments

I wish to contribute to this repository by adding a new sorting algorithm in Python Programming Language. It is known as Monkey sort. I will provide all the necessary details on this technique also in my file, so users who don't have any information on it, might still be able to get an idea on this sorting technique.

Will be waiting for a response to go ahead :)

noviicee avatar Feb 18 '21 18:02 noviicee

Can u please provide bit brief about it

ankitapuri avatar Feb 19 '21 16:02 ankitapuri

Ya sure. This sorting technique is a highly inefficient sorting algorithm based on the generate and test paradigm. (hit and trial method) The function successively generates permutations of its input until it finds one that is sorted.

Needless to say, this is a highly inefficient sorting technique, but it indeed exists, and so I think it can be demonstrated just for some fun!

noviicee avatar Feb 20 '21 18:02 noviicee