Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I learn algorithms for programming contests? [closed]

Tags:

java

algorithm

What are the best ways to learn algorithms for programming contests such as USACO. I need to start learning algorithms as I have just gotten into the silver division. Are there any good books or tutorials to learn algorithms and techniques such as Dijkstra's, Dynamic Programming, Flood-fill, etc. in Java and actually be able to know how to implement them for problems? Thanks a lot for the help!

like image 254
Alex Avatar asked Oct 07 '22 20:10

Alex


1 Answers

  1. PRACTICE! This is the most important point. solve problems regularly in online judges like SPOJ , UVA, etc. Solving more problems will familiarize you with the type and format of questions that are asked in the programming competitions. This way, you will also increase your ability to derive your own algorithms and see through problems.

  2. Get Introduction To Algorithm, Cormen. It is an excellent book for learning and analysis of algorithms and data structures.

like image 179
nims Avatar answered Oct 10 '22 10:10

nims