Author |
Message |
zylum
|
Posted: Sat Jun 26, 2004 11:18 pm Post subject: can someone write up a basic tutorial on dynamic programming |
|
|
i tried looking for tutorials online but i couldnt find any good ones for a begginer... if you know some usefull sites please post them too or if you know any good algorithm book that i can learn from. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
wtd
|
Posted: Sat Jun 26, 2004 11:20 pm Post subject: (No subject) |
|
|
Ruby is a highly dynamic language, and I'm currently working on a number of tutorials to introduce the basics of it. Perhaps those could help?
Otherwise you'll have to bea bit more clear on what you're looking for. |
|
|
|
|
|
zylum
|
Posted: Sat Jun 26, 2004 11:28 pm Post subject: (No subject) |
|
|
dynamic programming or DP for short is "an algorithmic technique in which an optimization problem is solved by caching subproblem solutions rather than recomputing them" this means that the run time of your solution will be signifficantly smaller which is usefull when competing in coding contests |
|
|
|
|
|
wtd
|
|
|
|
|
zylum
|
Posted: Sat Jun 26, 2004 11:45 pm Post subject: (No subject) |
|
|
thats a bit complex to start off with... maybe someone can walk me through a simpler problem such as longets common substring... |
|
|
|
|
|
wtd
|
|
|
|
|
|