{"id":41634,"date":"2023-09-28T11:40:18","date_gmt":"2023-09-28T03:40:18","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=41634"},"modified":"2023-09-28T11:40:18","modified_gmt":"2023-09-28T03:40:18","slug":"dhadqb","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/41634.html","title":{"rendered":"DP\u548cAP\u7684\u533a\u522b"},"content":{"rendered":"

  DP\uff08Dynamic Programming\uff09\u548cAP\uff08Greedy Algorithm\uff09\u662f\u4e24\u79cd\u6709\u6548\u7684\u95ee\u9898\u6c42\u89e3\u7b97\u6cd5\uff0c\u5b83\u4eec\u90fd\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u89e3\u51b3\u4e00\u4e9b\u590d\u6742\u7684\u95ee\u9898\uff0c\u4f46\u662f\u5b83\u4eec\u4e4b\u95f4\u4e5f\u5b58\u5728\u7740\u4e00\u4e9b\u91cd\u8981\u7684\u533a\u522b\u3002\u672c\u6587\u5c06\u4ecb\u7ecdDP\u548cAP\u7684\u5b9a\u4e49\uff0c\u5e76\u4ecb\u7ecd\u5b83\u4eec\u4e4b\u95f4\u7684\u533a\u522b\u3002<\/p>\n

DP\uff1a\u52a8\u6001\u89c4\u5212<\/h2>\n

  \u52a8\u6001\u89c4\u5212\uff08Dynamic Programming\uff09\u662f\u4e00\u79cd\u7b97\u6cd5\uff0c\u5b83\u901a\u8fc7\u628a\u539f\u95ee\u9898\u5206\u89e3\u4e3a\u76f8\u5bf9\u7b80\u5355\u7684\u5b50\u95ee\u9898\uff0c\u7136\u540e\u9010\u6b65\u89e3\u51b3\u5b50\u95ee\u9898\uff0c\u6700\u7ec8\u89e3\u51b3\u539f\u95ee\u9898\u7684\u65b9\u6cd5\u3002\u52a8\u6001\u89c4\u5212\u7684\u6838\u5fc3\u601d\u60f3\u662f\u201c\u91cd\u590d\u5229\u7528\u5b50\u95ee\u9898\u7684\u89e3\u51b3\u7ed3\u679c\u201d\uff0c\u5176\u57fa\u672c\u601d\u60f3\u662f\uff1a\u628a\u539f\u95ee\u9898\u5206\u89e3\u4e3a\u82e5\u5e72\u5b50\u95ee\u9898\uff0c\u6bcf\u4e2a\u5b50\u95ee\u9898\u53ea\u6c42\u89e3\u4e00\u6b21\uff0c\u5c06\u5176\u89e3\u5b58\u50a8\u8d77\u6765\uff0c\u4ece\u800c\u907f\u514d\u91cd\u590d\u8ba1\u7b97\u3002<\/p>\n

  DP\u7684\u7279\u70b9<\/h3>\n