Dynamic programming

Publié le: 19 mars 2021
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne Dynamic programming durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur IPSA - Introduction to Programming 19 mars 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 674 fois et il a aimé like téléspectateurs. Bon visionnage!