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!
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.
Get Introduction To Algorithm, Cormen. It is an excellent book for learning and analysis of algorithms and data structures.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With