Dynamic programming

Publicado el: 19 marzo 2021
en el canal de: IPSA - Introduction to Programming
674
like

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


En esta página del sitio puede ver el video en línea Dynamic programming de Duración hora minuto segunda en buena calidad , que subió el usuario IPSA - Introduction to Programming 19 marzo 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 674 veces y le gustó like a los espectadores. Disfruta viendo!