We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
前端精读进入算法篇,原文来源很多,有一些我看的网上视频课,也有刷过的算法题,总之希望对大家理解算法有帮助!
精读《算法 - 动态规划》
The text was updated successfully, but these errors were encountered:
个人理解:动态规划 是一种算法的更高抽象,其本质在于利用 规律 来跳过无意义的重复计算,进而达到时间复杂度降低的目的。这其中最难的部分就在于 找规律,就像初阶奥数题一样,如果这个规律你知道了,基于类似规律的题目就可以很容易的解答;但是,如果这个规律没有接触过,那么这个过程会很漫长,甚至会做出题目无法使用 动态规划 给出题解的结论。
动态规划
规律
找规律
比如文章中提到:
dp[i] = (dp[i-1]+dp[i-2])*(k-1)
所以我觉得 动态规划 更多的考的是经验的储备(动态规划所有模式的刷题量),而不是真正的实际场景解决问题的能力。
Sorry, something went wrong.
No branches or pull requests
前端精读进入算法篇,原文来源很多,有一些我看的网上视频课,也有刷过的算法题,总之希望对大家理解算法有帮助!
精读《算法 - 动态规划》
The text was updated successfully, but these errors were encountered: