Bogo-bogosort
dangermouse.net
Bogo-bogosort
1–10 of 33 posts
Re: Bogo-bogosort
#2Re: Bogo-bogosort
#3I doubt this way n == 6 would finish in some normal time period.
Re: Bogo-bogosort
#4Re: Bogo-bogosort
#5You say it will take on average n! attempts to find a sorted list randomly. This is false. It will take on average n!/2 attempts.
edit:( I have edited the post to respond to your comment, trying to clarify what OP meant; I in no way tried to make your comment "look silly" )
Re: Bogo-bogosort
#6You say it will take on average n! attempts to find a sorted list randomly. This is false. It will take on average n!/2 attempts.
O(n!/2) == O(n!), the whole paragraph is obviously referring to big o notation. edit:( I have edited the post to respond to your comment, trying to clarify what OP meant; I in no way tried to make your comment "look silly" )
Edit: you've edited your paragraph to make my reply look silly. The whole paragraph is not in O notation. In fact - the exact opposite. In the last sentence of that paragraph he shows what the expression with constant factors looks like before converting it into O notation, and it's wrong! "The product (n-1)n! is O(n × n!)." Bzzzzzzt! Wrong! He should say "The product (n-1)(n!/2) is O(n × n!)."
Re: Bogo-bogosort
#7Bogobogosort seems in the end to be no more worthwhile than sleepybogosort, where you must sleep() in between every operation.
Re: Bogo-bogosort
#8This seems completely pointless. The elegance of bogosort is that it's an extremely simple algorithm, with a simple description of "randomize until it's sorted". Bogobogosort is complicated for no apparent reason. It's trying to be cute and clever, but there's no rationale for why additional complexity is being added. Bogobogosort seems in the end to be no more worthwhile than sleepybogosort, where you must sleep() i…
Re: Bogo-bogosort
#9You say it will take on average n! attempts to find a sorted list randomly. This is false. It will take on average n!/2 attempts.
Re: Bogo-bogosort
#10http://www.dangermouse.net/esoteric/intelligentdesignsort.ht...
O(1) run time!