duncanwest | 12 years ago | on: Bogo-bogosort
duncanwest's comments
duncanwest | 12 years ago | on: Bogo-bogosort
You 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.
duncanwest | 12 years ago | on: Show HN: Bi-weekly newsletter for engineers looking for other engineers.
Why be cruel to designers with your silly joke?
page 1
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!)."