Dynamic Programming concept

The basic idea of DP is applicable to problems that can be thought in terms of recursion. For example, consider problem of computing n’th fibonacci term: This is a recursive definition (Fib(n) is given in terms of Fib(n-1)) and can be adopted in the form of a function in a straight-forward way: int fib(int n) { […]
 •  0 comments  •  flag
Share on Twitter
Published on February 03, 2018 20:37
No comments have been added yet.