This video introduces the concept of Dynamic Programming and illustrates this on the computation of binomial coefficients, the subset sum problem, and the knapsack problem. In particular it is illustrated how decorators in Python makes it easy so apply dynamic programming to recursive functions.
Lecture in Danish.
00:00 Binomial coefficients, recursive definition
03:12 Dynamic programming memoization: Binomial coefficients
10:01 Dynamic programming with decorator @memoize: Binomial coefficients
14:10 Decorator @trace
20:07 @lru_cache
21:15 Subset sum, recursive definition
24:59 Subset sum, @memoize solution
32:37 Subset sum, identifying solution
35:09 Knapsack problem, recursive definition
40:23 Knapsack, @memoize solution
43:10 Knapsack, identifying solution
46:20 Knapsack, systematic table filling
55:05 Recap
Nesta página do site você pode assistir ao vídeo on-line Dynamic programming duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário IPSA - Introduction to Programming 19 Março 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 674 vezes e gostou like espectadores. Boa visualização!