Exploring Thoughtz..

Root of all Evil

Posted by: Vijay Dev on: June 17, 2007

“Premature Optimization is the Root of All Evil” — I never knew this quote by Donald Knuth until recently when Sathya (@ HeyMath!) told me this !! And today, I realised the meaning of this statement and I have to accept this one !! I was coding a program to do DFS on a not so straightforward input. I tried to do it in an elegant manner and ended up with a wrong solution. Thats when this quote struck me in my head. So, scrap the work, start afresh !! Then did a straightforward coding of what is required and it came out pretty good actually, though I am not much sure of the time complexity, yet.

1 Response to "Root of all Evil"

Roots of evil in computers? :D That’s a novelty.

Leave a Reply

Blog Stats

  • 22,312 Visitors

  • Yann: Hello! Could you expand your example for the a bit not-so-hapy java users like me, and describe how to compile and run your code? That would be awesom
  • Anuraj Pandey: Some one is mis-using my id..i got the notification of the above comment..however i havent posted the comment :(
  • Anuraj Pandey: if u have some kind of pdf/text of the material u removed..it will be highly appreciable if u help me..i have my first google intern telephonic interv

My Tweets

About Me

Journey so far…