permaculture playing cards
The moose likes Beginning Java and the fly likes programming basics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "programming basics" Watch "programming basics" New topic

programming basics

Harvinder Singh
Ranch Hand

Joined: Feb 14, 2003
Posts: 90
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
David Crossett
Ranch Hand

Joined: Feb 05, 2003
Posts: 102
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?

David Crossett
-nothing important to say, but learnin' plenty-
I agree. Here's the link:
subject: programming basics
It's not a secret anymore!