Hi, When ever I am writing even a short program like bubble sort, insertion sorting etc in java there are lots of mistakes that keep coming.Few of them are related to java language but most of them are because of the poor algo that I write before writing the program. I would be very thankfull if someone can tell how can we successfully translate logic on to the paper with the help of the algo.Most of the books that are written about algo doesn't tell the basic of creating good algo.Is there any site on the net which can help me out.
Hard work beats talent<br />when talent doesn't work hard.<p> - Tim Notke
I hear ya! If you find anything good about writing good algorithms, let me know too! What I've had to do is just 'borrow' algorithms that are known to work already. There are a lot of common problems that we all run into - and many algorithms that have already solved them. If I need to create my own, I usually just modify ones that I already know work. I also write a lot of psuedo-code...code written in English to solve the problem line by line, then slowly translated to Java. Any other specifics you can share about what kinds of problems you are experiencing?
-nothing important to say, but learnin' plenty-