Back to Browse

Dynamic Programming – 0/1 Knapsack Problem Tutorial

41.9K views
Sep 25, 2023
46:18

The Knapsack Problem is a classic optimization problem in computer science. It's often used to help teach dynamic programming and greedy algorithms. This is an important problem to understand, especially if you plan on interviewing soon for a programming job. In this course, Gavin Lon will explain the problem and show how to craft an efficient solution using C#. 💻 Code: https://github.com/GavinLonDigital/ZeroOneKnapsackSolution ✏️ Course created by @GavinLon ❤️ Try interactive Career courses we love, right in your browser: https://scrimba.com/freeCodeCamp-Career (Made possible by a grant from our friends at Scrimba) ⭐️ Contents ⭐️ (00:00) Introduction (02:35) Overview of the 0 / 1 Knapsack problem (09:08) Code the algorithm to solve the problem using C# (17:49) Explain the algorithm that uses Dynamic Programming and the Memoization strategy (38:17) Write code using C# to output the items to include in the Knapsack 🎉 Thanks to our Champion and Sponsor supporters: 👾 davthecoder 👾 jedi-or-sith 👾 南宮千影 👾 Agustín Kussrow 👾 Nattira Maneerat 👾 Heather Wcislo 👾 Serhiy Kalinets 👾 Justin Hual 👾 Otis Morgan 👾 Oscar Rahnama -- Learn to code for free and get a developer job: https://www.freecodecamp.org Read hundreds of articles on programming: https://freecodecamp.org/news

Download

1 formats

Video Formats

360pmp455.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Dynamic Programming – 0/1 Knapsack Problem Tutorial | NatokHD