Answer the question
In order to leave comments, you need to log in
Algorithms in Java vs Algorithms in C++. What's better?
Hello. Which of the two books by this author (Robert Sagewick) is better in terms of completeness and examples? Which language to use is not important, I know both.
Answer the question
In order to leave comments, you need to log in
Among other things, ShAD recommends this book for preparation:
Wirth. Algorithms and data structures.
I read it at the time, it's a good book. Which language to use is not important, especially since the code will be quite similar. The main thing is that the book is good.
Perhaps Java was chosen for learning because there are quite a lot of visual development tools available for any platform, in addition, you do not need to go into the nuances of working with memory, but you can only focus on mathematics.
Although from the point of view of the implementation of high-performance low-level algorithms, I suppose that it is more rational to do them in C / C ++ than in Java.
But first, understand the principles themselves first, and then you can implement them in any language you need.
I never saw what kind of author is mentioned in this post.
But purely from experience, a book on any language is suitable for general algorithms. If the book is specifically tailored to the nuances of each language, then it's up to you to decide which language you prefer.
I'm currently reading Algorithms in Java by Sedgwick and Wayne. You often have to use their booksite with a book , and there are all the examples, the solution of some exercises, etc. in java (I don't know if there is something similar for c++). The java book also has a separate chapter on strings. In addition, there is a great course on Coursera by Sedgwick and Wayne where they also use java. Well, this book is newer than with C++, which means they had reasons to change the language.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question