473,511 Members | 16,252 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Doing OK with Java Prog But Need Help With Algorithms

66 New Member
Hi Everyone,

Could you share your experience on how to get better at solving problems. I am doing okay with the programming part, but I do not always pick the best algorithms for my problems. Do you have suggestions on how to get better at this? Where did some of you get so good at solving various problems?? Please help me out here. Thanks in advance -
Oct 27 '07 #1
5 1150
Ganon11
3,652 Recognized Expert Specialist
Problem solving is one of the few things that I never 'learned', I just had it. Regardless, I still sometimes think of poor algorithms. That's why I'm taking the Data Structures and Algorithms class I'm in.

What level of programming are you doing? Are you a high school student? University student? Interested non-student? I suggest you pick up a book on algorithm analysis - the one I have, Data Structures and Algorithm Analysis in C++, is very good and comprehensive. There is a version for Java here. Looks a little expensive, but it's amazing for teaching relative faster/slower algorithms, and how you can tell which of 2 algorithms is faster.
Oct 27 '07 #2
JosAH
11,448 Recognized Expert MVP
Hi Everyone,

Could you share your experience on how to get better at solving problems. I am doing okay with the programming part, but I do not always pick the best algorithms for my problems. Do you have suggestions on how to get better at this? Where did some of you get so good at solving various problems?? Please help me out here. Thanks in advance -
The canonical book on this very topic is Donald Knuth's three volumes:
"The Art of Computer Programming". Those volumes are a must read; every
thinkable algorithm is explained and proofs are given for their big-Oh behaviour.
Maybe you can lay your hands on a second hand version of those volumes.

kind regards,

Jos
Oct 27 '07 #3
CodeTilYaDrop
66 New Member
I am just learning to program this year. I finally got a class that teaches you somethiing this year, and I am learning at an astronomical rate!!! I really appreciate you both answering my questions in the past and now! You have been a great help to me!!

I will probably take Gannon's advice and pick up the book at my school library. They have all the latest and greatest books out there. It is one of the better libraries I have seen. I doubt the books Jos mentioned are there though, but they might.

I might buy the ones Jos mentioned later on because they look like the true meat on this subject. I am a little too basic at this point to be able to absorb the material in those books now and I might be for Gannon's book, too. Gannon's book is the easier of the two though, and I do need to learn it!!

Also, I might learn some more in the next class on this. I have to take one where the book is called Data Abstractions & Problem Solving in C++(next semester).

Thanks again you two!!! -
Oct 27 '07 #4
JosAH
11,448 Recognized Expert MVP
I might buy the ones Jos mentioned later on because they look like the true meat on this subject. I am a little too basic at this point to be able to absorb the material in those books now and I might be for Gannon's book, too. Gannon's book is the easier of the two though, and I do need to learn it!!
Of course there are lots of other good books around that are very well worth reading,
but, as you already mentioned yourself, a lot of them take a language specific
approach: "yadda-yadda-yadda in C++/Java/C#/whatever". Donald Knuth takes
the language neutral mathematical approach and actually gives your proofs for
the optimality for a huge bunch of algorithms; but maybe you're right and you
should keep it in mind for later so you can enjoy the real "meat" a bit more ;-)

kind regards,

Jos

ps. another really good one is "Design and analysis of Algorithms" by Aho,
Hopcroft and Ullman. It's a second must read for your list. It's all about algorithms,
no language specific stuff in there.
Oct 27 '07 #5
CodeTilYaDrop
66 New Member
Jos, I am writting all these books down to get in the near future! I appreciate you all for you help. Thanks again buddy-
Oct 28 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

54
17320
by: Spammay Blockay | last post by:
I've been tasked with doing technical interviews at my company, and I have generally ask a range of OO, Java, and "good programming technique" concepts. However, one of my favorite exercises I...
11
9212
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
133
8425
by: Gaurav | last post by:
http://www.sys-con.com/story/print.cfm?storyid=45250 Any comments? Thanks Gaurav
17
4320
by: Allerdyce.John | last post by:
Hi, I am trying to compare the amount of work between using STL algorithm VS a plain Java loop. Let's say the class Rect has 2 attributes: area, and areaPerCent. In Java, I just write a...
1
1386
by: Paul | last post by:
Hi, I want to store particular algorithms written in Java into a database (preferably MySQL) and then be able to accept values such as algorithm type and parameters from a user (via JDBC) which...
2
6927
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
2035
by: balaji krishna | last post by:
Hi, I need to handle the return set from COBOL stored procedure from my invoking Java program. I do not know, how many rows the stored proc SQL fetches.I have declared the cursor in that proc, but i...
0
7353
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7418
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5662
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
446
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.