https://www.vidarholen.net/contents/blog/?p=1172 #dynamicprogramming #ancientdefinitions #techhumor #HackerNews #ngated
“Dynamic Programming” is not referring to “computer programming”
https://www.vidarholen.net/contents/blog/?p=1172
#HackerNews #DynamicProgramming #ComputerScience #Misconceptions #TechEducation #HackerNews
1. IntroductionIf you’ve taken an algorithms class, you have likely seen dynamic programming, specifically a technique called memoization. Memoization works to optimize recursive algorithms by caching the solutions to subproblems in a table, and when a subproblem is encountered, it queries the table instead of recomputing the solution. This gives us an exponential performance boost.
Verified Dynamic Programming with Σ-types in Lean
https://tannerduve.github.io/blog/memoization-sigma/
#HackerNews #Verified #Dynamic #Programming #Σ-types #Lean #DynamicProgramming #LeanLang
1. IntroductionIf you’ve taken an algorithms class, you have likely seen dynamic programming, specifically a technique called memoization. Memoization works to optimize recursive algorithms by caching the solutions to subproblems in a table, and when a subproblem is encountered, it queries the table instead of recomputing the solution. This gives us an exponential performance boost.
Others important topics
- #BigONotation
- #Recurtion
- #DynamicProgramming
- #FloodFillAlgorthms
☑️ Day 33/100: #Leetcode daily question
🟥 Question: 2463. Minimum Total Distance Traveled
This is a very good difficult question, and I obviously need to look a solution. Solved it using dp
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/minimumTotalDistanceTraveled
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
☑️ Day 31/100: #Leetcode daily question
🟨 Question: 2684. Maximum Number of Moves in a Grid
Easy dp question but need to see the solution maybe I was too last to solve that day
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/maximumNumberofMovesinaGrid
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
☑️ Day 29/100: #Leetcode daily question
🟨 Question: 1277. Count Square Submatrices with All Ones
Medium question and I need to check the solution but good learning
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/countSquareSubmatriceswithAllOnes
🔗 My Leetcode Github: https://github.com/akshatsingh1718
To me this HN thread is pure gold. When I first discovered Dynamic Programming (DP) in Python with the @cache decorator quite late actually, it looked like magic to me. I could not find as much wisdom on it (top search results are all leetcode tutorials) but once again @hn_discussions fill that gap. Will dive deeper into the topic of generative recursion.
#hackernews #dynamicprogramming #dynamic #recursion #python
🧵 HN thread: https://news.ycombinator.com/item?id=38988948
On dynamic programming, a good article.
https://qsantos.fr/2024/01/04/dynamic-programming-is-not-black-magic/