Jump to content

  • Log In with Google      Sign In   
  • Create Account


Repi/Johan Andersson's "I get your fail" new post...


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Lil_Lloyd   Members   -  Reputation: 287

Like
0Likes
Like

Posted 27 January 2013 - 10:04 AM

Please take a look here:

 

http://igetyourfail.blogspot.jp/2013/01/strings-fundamental-component-of.html

 

Now, as far as I can tell, converting a floating point number to a string to compare their values is a pretty boneheaded thing to do, and this is the 'fail' of the post, or am I completely wrong?



Sponsor:

#2 Bacterius   Crossbones+   -  Reputation: 8287

Like
1Likes
Like

Posted 27 January 2013 - 10:49 AM

He's using strings to round the floating-point number - to, uh, one decimal - for comparison, rather than using epsilons like everyone else. So, yes, I guess that is the 'fail'. Someone needs to brush up on positional notation.


The slowsort algorithm is a perfect illustration of the multiply and surrender paradigm, which is perhaps the single most important paradigm in the development of reluctant algorithms. The basic multiply and surrender strategy consists in replacing the problem at hand by two or more subproblems, each slightly simpler than the original, and continue multiplying subproblems and subsubproblems recursively in this fashion as long as possible. At some point the subproblems will all become so simple that their solution can no longer be postponed, and we will have to surrender. Experience shows that, in most cases, by the time this point is reached the total work will be substantially higher than what could have been wasted by a more direct approach.

 

- Pessimal Algorithms and Simplexity Analysis





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS