0

I am learning big O algorithms and I learned all of them but now I can't remember the name for one of them. Let's say I have a deck of cards and I am trying to sort them by throwing them on the floor and hoping they get in order. What is that algorithm called? the one that jumbles the numbers in a list again and again until they are sorted. I know this is like the worst big O scenario but do not remember the name for it.

please help me

thank you

4
  • 3
    bogosort Commented Jul 16, 2015 at 19:59
  • 3
    And just so you know, "big O" is a notation for measuring algorithm's complexity. Any algorithm's. You can't possibly have learned all the known algorithms, can you :) Commented Jul 16, 2015 at 20:01
  • I hope you aren't arguing that this one is good :) lol Commented Jul 16, 2015 at 20:01
  • Don't even try to learn all algorithms, it's way better if you learn where to find the relevant information. There are simply way too many algorithms and some are even just made out of fun/stupidity or simply to never be feasible at all (for example bogobogosort which is absolutely absurd). Commented Jul 16, 2015 at 20:05

2 Answers 2

4

This algorithm is called Bogosort .

Sign up to request clarification or add additional context in comments.

Comments

-1

Bogosort - the name from bogus sort cause it's pretty bad when it comes to worst case big O(infinity).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.