{"id":88583,"date":"2026-08-01T12:56:29","date_gmt":"2026-08-01T04:56:29","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/88583.html"},"modified":"2026-08-01T12:56:29","modified_gmt":"2026-08-01T04:56:29","slug":"%e4%b8%87%e5%ad%97%e4%b9%a6%e7%b1%8d%e9%80%9f%e9%80%9a%e4%b9%8b%e3%80%8a%e7%ae%97%e6%b3%95%e8%ae%be%e8%ae%a1%e4%b8%8e%e5%88%86%e6%9e%90%e3%80%8b%e6%80%bb-%e9%87%8d%e7%82%b9%e7%ae%97%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/88583.html","title":{"rendered":"\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b(\u603b) + \u91cd\u70b9\u7b97\u6cd5\u5206\u6587\u7ae0\u8be6\u89e3"},"content":{"rendered":"<h2>\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b(\u603b) &#043; \u91cd\u70b9\u7b97\u6cd5\u5206\u6587\u7ae0\u8be6\u89e3<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801045628-6a6d7c7c78b7a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>&#x1f4cc; \u5bfc\u8bfb&#xff1a;\u672c\u7cfb\u5217\u662f\u5bf9\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b&#xff08;\u738b\u6653\u4e1c \u7f16\u8457&#xff09;\u5168\u4e6611\u7ae0\u7684\u7cfb\u7edf\u6027\u901f\u901a\u4e0e\u6df1\u5ea6\u89e3\u6790\u3002\u5305\u542b 3\u7bc7\u4e07\u5b57\u901f\u901a&#xff08;\u8986\u76d6\u5168\u4e66\u77e5\u8bc6\u6846\u67b6&#xff09;&#043; 6\u7bc7\u4e13\u9898\u6df1\u5ea6\u89e3\u6790&#xff08;\u6bcf\u7bc7\u7ea612000\u5b57&#xff0c;\u9010\u4e00\u653b\u514b\u6838\u5fc3\u7b97\u6cd5&#xff09;&#xff0c;\u603b\u8ba1\u7ea6 10\u4e07\u5b57&#xff0c;\u9002\u5408\u671f\u672b\u590d\u4e60\u3001\u8003\u7814\u5907\u8003\u53ca\u7b97\u6cd5\u7ade\u8d5b\u5165\u95e8\u3002<\/p>\n<hr \/>\n<h3>&#x1f4d8; \u7b2c\u4e00\u90e8\u5206&#xff1a;\u4e07\u5b57\u901f\u901a\u7cfb\u5217&#xff08;\u5168\u4e66\u6982\u89c8&#xff09;<\/h3>\n<h4>\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b&#xff08;1&#xff09;<\/h4>\n<p>\u8986\u76d6\u7ae0\u8282&#xff1a;\u7b2c1\u7ae0 \u7b97\u6cd5\u5f15\u8bba \u2192 \u7b2c5\u7ae0 \u56de\u6eaf\u6cd5<\/p>\n<p>\u6838\u5fc3\u5185\u5bb9&#xff1a;\u7b97\u6cd5\u7684\u5b9a\u4e49\u4e0e\u4e94\u5927\u7279\u5f81\u3001\u6e10\u8fdb\u7b26\u53f7&#xff08;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\"><\/p>\n<p>         O<\/p>\n<p>         \/<\/p>\n<p>         \u03a9<\/p>\n<p>         \/<\/p>\n<p>         \u0398<\/p>\n<p>        O\/\\\\Omega\/\\\\Theta<\/p>\n<p>     <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mord\">\/\u03a9\/\u0398<\/span><\/span><\/span><\/span><\/span>&#xff09;\u3001\u5206\u6cbb\u6cd5\u4e09\u6b65\u66f2&#xff08;\u5206-\u6cbb-\u5408&#xff09;\u4e0e\u4e3b\u5b9a\u7406\u3001\u52a8\u6001\u89c4\u5212\u4e24\u5927\u7279\u5f81&#xff08;\u6700\u4f18\u5b50\u7ed3\u6784&#043;\u91cd\u53e0\u5b50\u95ee\u9898&#xff09;\u3001\u8d2a\u5fc3\u7b97\u6cd5\u7684\u8d2a\u5fc3\u9009\u62e9\u6027\u8d28\u3001\u56de\u6eaf\u6cd5\u7684\u89e3\u7a7a\u95f4\u6811\u4e0e\u526a\u679d\u6846\u67b6\u3002\u672c\u7bc7\u6784\u5efa\u8d77\u7b97\u6cd5\u8bbe\u8ba1\u7684\u57fa\u7840\u8ba4\u77e5\u6846\u67b6\u3002<\/p>\n<hr \/>\n<h4>\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b(2)<\/h4>\n<p>\u8986\u76d6\u7ae0\u8282&#xff1a;\u7b2c6\u7ae0 \u5206\u652f\u9650\u754c\u6cd5 \u2192 \u7b2c8\u7ae0 NP\u5b8c\u5168\u6027\u7406\u8bba\u4e0e\u8fd1\u4f3c\u7b97\u6cd5<\/p>\n<p>\u6838\u5fc3\u5185\u5bb9&#xff1a;\u5206\u652f\u9650\u754c\u6cd5\u7684FIFO\u4e0e\u4f18\u5148\u961f\u5217\u4e24\u79cd\u641c\u7d22\u7b56\u7565\u3001\u9650\u754c\u51fd\u6570\u8bbe\u8ba1&#xff08;\u8d2a\u5fc3\u677e\u5f1b\/\u4ee3\u4ef7\u77e9\u9635\u5f52\u7ea6&#xff09;\u3001\u6982\u7387\u7b97\u6cd5\u56db\u5927\u5bb6\u65cf&#xff08;\u6570\u503c\u6982\u7387\/\u820d\u4f0d\u5fb7\/\u62c9\u65af\u7ef4\u52a0\u65af\/\u8499\u7279\u5361\u7f57&#xff09;\u3001P\/NP\/NPC\/NP-Hard\u56db\u7c7b\u95ee\u9898\u7684\u7cbe\u786e\u5b9a\u4e49\u4e0e\u97e6\u6069\u56fe\u5173\u7cfb\u3001\u591a\u9879\u5f0f\u65f6\u95f4\u5f52\u7ea6\u4e0eCook-Levin\u5b9a\u7406\u3001\u9876\u70b9\u8986\u76d62-\u8fd1\u4f3c\u4e0eChristofides 1.5-\u8fd1\u4f3c\u7b97\u6cd5\u3002<\/p>\n<hr \/>\n<h4>\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b(3)<\/h4>\n<p>\u8986\u76d6\u7ae0\u8282&#xff1a;\u7b2c9\u7ae0 \u4e32\u4e0e\u5e8f\u5217\u7684\u7b97\u6cd5 \u2192 \u7b2c11\u7ae0 \u5728\u7ebf\u7b97\u6cd5\u8bbe\u8ba1<\/p>\n<p>\u6838\u5fc3\u5185\u5bb9&#xff1a;KMP\/Boyer-Moore\/Rabin-Karp\u4e09\u5927\u6a21\u5f0f\u5339\u914d\u7b97\u6cd5\u3001\u540e\u7f00\u6570\u7ec4\u4e0eLCP\u6570\u7ec4\u6784\u5efa\u3001LCS\/\u7f16\u8f91\u8ddd\u79bb\/\u5e8f\u5217\u6bd4\u5bf9\u7684DP\u7edf\u4e00\u6846\u67b6\u3001\u7b97\u6cd5\u8bbe\u8ba1\u7b56\u7565\u7684\u6bd4\u8f83\u4e0e\u9009\u62e9\u51b3\u7b56\u6811\u3001DP\u52a0\u901f\u539f\u7406&#xff08;\u5355\u8c03\u961f\u5217\/\u659c\u7387\u4f18\u5316\/\u56db\u8fb9\u5f62\u4e0d\u7b49\u5f0f&#xff09;\u3001\u5728\u7ebf\u7b97\u6cd5\u7684\u7ade\u4e89\u6bd4\u5206\u6790\u3001\u9875\u8c03\u5ea6\u95ee\u9898&#xff08;LRU\/FIFO&#xff09;\u4e0e\u52bf\u51fd\u6570\u65b9\u6cd5\u3002<\/p>\n<hr \/>\n<h3>&#x1f4d6; \u5168\u4e66\u76ee\u5f55\u603b\u89c8<\/h3>\n<table>\n<tr>\u90e8\u5206\u7ae0\u8282\u4e3b\u9898<\/tr>\n<tbody>\n<tr>\n<td align=\"center\">\u7b2c\u4e00\u90e8\u5206<\/td>\n<td align=\"center\">\u7b2c1\u7ae0<\/td>\n<td align=\"left\">\u7b97\u6cd5\u5f15\u8bba&#xff08;\u7b97\u6cd5\u4e0e\u7a0b\u5e8f\u3001\u62bd\u8c61\u673a\u5236\u3001\u590d\u6742\u6027\u5206\u6790&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"center\"><\/td>\n<td align=\"center\">\u7b2c2\u7ae0<\/td>\n<td align=\"left\">\u9012\u5f52\u4e0e\u5206\u6cbb\u7b56\u7565&#xff08;\u4e8c\u5206\u641c\u7d22\u3001\u5927\u6574\u6570\u4e58\u6cd5\u3001Strassen\u3001\u5f52\u5e76\/\u5feb\u6392\u3001\u6700\u8fd1\u70b9\u5bf9&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"center\"><\/td>\n<td align=\"center\">\u7b2c3\u7ae0<\/td>\n<td align=\"left\">\u52a8\u6001\u89c4\u5212&#xff08;\u77e9\u9635\u8fde\u4e58\u3001LCS\u30010\/1\u80cc\u5305\u3001\u6700\u4f18BST\u3001\u6d41\u6c34\u4f5c\u4e1a\u8c03\u5ea6&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"center\"><\/td>\n<td align=\"center\">\u7b2c4\u7ae0<\/td>\n<td align=\"left\">\u8d2a\u5fc3\u7b97\u6cd5&#xff08;\u6d3b\u52a8\u5b89\u6392\u3001Huffman\u7f16\u7801\u3001Dijkstra\u3001MST\u3001\u591a\u673a\u8c03\u5ea6&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"center\"><\/td>\n<td align=\"center\">\u7b2c5\u7ae0<\/td>\n<td align=\"left\">\u56de\u6eaf\u6cd5&#xff08;\u88c5\u8f7d\u3001N\u540e\u30010-1\u80cc\u5305\u3001\u6700\u5927\u56e2\u3001m\u7740\u8272\u3001TSP&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u7b2c\u4e8c\u90e8\u5206<\/td>\n<td align=\"center\">\u7b2c6\u7ae0<\/td>\n<td align=\"left\">\u5206\u652f\u9650\u754c\u6cd5&#xff08;\u6700\u77ed\u8def\u3001\u88c5\u8f7d\u3001\u5e03\u7ebf\u30010-1\u80cc\u5305\u3001TSP&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"center\"><\/td>\n<td align=\"center\">\u7b2c7\u7ae0<\/td>\n<td align=\"left\">\u6982\u7387\u7b97\u6cd5&#xff08;\u968f\u673a\u6570\u3001\u6570\u503c\u6982\u7387\u3001\u820d\u4f0d\u5fb7\u3001\u62c9\u65af\u7ef4\u52a0\u65af\u3001\u8499\u7279\u5361\u7f57&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"center\"><\/td>\n<td align=\"center\">\u7b2c8\u7ae0<\/td>\n<td align=\"left\">NP\u5b8c\u5168\u6027\u7406\u8bba\u4e0e\u8fd1\u4f3c\u7b97\u6cd5&#xff08;P\/NP\/NPC\u3001\u5f52\u7ea6\u3001\u8fd1\u4f3c\u7b97\u6cd5\u6027\u80fd\u6bd4&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u7b2c\u4e09\u90e8\u5206<\/td>\n<td align=\"center\">\u7b2c9\u7ae0<\/td>\n<td align=\"left\">\u4e32\u4e0e\u5e8f\u5217\u7684\u7b97\u6cd5&#xff08;\u5b50\u4e32\u641c\u7d22\u3001\u540e\u7f00\u6570\u7ec4\u3001\u5e8f\u5217\u6bd4\u8f83&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"center\"><\/td>\n<td align=\"center\">\u7b2c10\u7ae0<\/td>\n<td align=\"left\">\u7b97\u6cd5\u4f18\u5316\u7b56\u7565&#xff08;\u7b56\u7565\u9009\u62e9\u3001DP\u52a0\u901f\u3001\u6570\u636e\u7ed3\u6784\u4f18\u5316\u3001\u641c\u7d22\u4f18\u5316&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"center\"><\/td>\n<td align=\"center\">\u7b2c11\u7ae0<\/td>\n<td align=\"left\">\u5728\u7ebf\u7b97\u6cd5\u8bbe\u8ba1&#xff08;\u7ade\u4e89\u5206\u6790\u3001\u9875\u8c03\u5ea6\u3001\u52bf\u51fd\u6570\u3001k-\u670d\u52a1\u5668\u3001\u8d1f\u8f7d\u5e73\u8861&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>&#x1f4d7; \u7b2c\u4e8c\u90e8\u5206&#xff1a;\u91cd\u70b9\u7b97\u6cd5\u4e13\u9898\u6df1\u5ea6\u89e3\u6790<\/h3>\n<h4>\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790&#xff1a;\u8d2a\u5fc3\u7b97\u6cd5\u5168\u9762\u6df1\u5ea6\u89e3\u6790<\/h4>\n<p>\u7bc7\u5e45&#xff1a;\u7ea612000\u5b57 \u00b7 12\u8282<\/p>\n<p>\u6838\u5fc3\u4eae\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u8d2a\u5fc3\u7b97\u6cd5\u7684\u4e24\u5927\u6838\u5fc3\u6761\u4ef6&#xff08;\u8d2a\u5fc3\u9009\u62e9\u6027\u8d28 &#043; \u6700\u4f18\u5b50\u7ed3\u6784&#xff09;\u7684\u5f62\u5f0f\u5316\u5b9a\u4e49\u4e0e\u53cd\u4f8b\u8fa8\u6790<\/li>\n<li>\u56db\u5927\u7ecf\u5178\u6848\u4f8b\u7cbe\u8bb2&#xff1a;\u6d3b\u52a8\u9009\u62e9&#xff08;\u6700\u65e9\u7ed3\u675f\u4f18\u5148&#xff09;\u3001\u54c8\u592b\u66fc\u7f16\u7801&#xff08;\u6700\u5c0f\u9891\u7387\u5408\u5e76&#xff0c;\u538b\u7f29\u738728%&#xff09;\u3001\u6700\u5c0f\u751f\u6210\u6811&#xff08;Kruskal\u5e76\u67e5\u96c6 &#043; Prim\u4f18\u5148\u961f\u5217&#xff09;\u3001Dijkstra\u6700\u77ed\u8def\u5f84<\/li>\n<li>\u6700\u5927\u96be\u70b9\u653b\u514b&#xff1a;\u8d2a\u5fc3\u6b63\u786e\u6027\u8bc1\u660e\u7684\u56db\u5927\u65b9\u6cd5\u2014\u2014\u4ea4\u6362\u8bba\u8bc1\u3001\u6570\u5b66\u5f52\u7eb3\u6cd5\u3001\u53cd\u8bc1\u6cd5\u3001\u5207\u5272\/\u5708\u6027\u8d28&#xff0c;\u9644\u5b8c\u6574\u8bc1\u660e\u8fc7\u7a0b<\/li>\n<li>\u8d2a\u5fc3 vs DP \u7684\u5224\u65ad\u6d41\u7a0b\u4e0e\u7ecf\u5178\u5bf9\u6bd4&#xff08;\u5206\u6570\u80cc\u5305\u2713 vs 0-1\u80cc\u5305\u2717&#xff09;<\/li>\n<li>9\u9053LeetCode\u5b9e\u6218\u9898 &#043; 3\u9053\u8fdb\u9636\u601d\u8003\u9898<\/li>\n<\/ul>\n<hr \/>\n<h4>\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790&#xff1a;\u52a8\u6001\u89c4\u5212\u5168\u9762\u6df1\u5ea6\u89e3\u6790<\/h4>\n<p>\u7bc7\u5e45&#xff1a;\u7ea612000\u5b57 \u00b7 13\u8282<\/p>\n<p>\u6838\u5fc3\u4eae\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u4e24\u5927\u6838\u5fc3\u7279\u5f81&#xff08;\u6700\u4f18\u5b50\u7ed3\u6784 &#043; \u91cd\u53e0\u5b50\u95ee\u9898&#xff09;\u7684\u5224\u65ad\u65b9\u6cd5\u4e0e\u526a\u5207-\u7c98\u8d34\u8bc1\u660e\u6cd5<\/li>\n<li>\u56db\u5927\u9ad8\u9891\u6a21\u578b\u9010\u4e00\u7cbe\u8bb2&#xff1a;\u77e9\u9635\u94fe\u4e58\u6cd5&#xff08;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\n<p>          O<\/p>\n<p>          (<\/p>\n<p>           n<\/p>\n<p>           3<\/p>\n<p>          )<\/p>\n<p>         O(n^3)<\/p>\n<p>      <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.0641em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\"><span class=\"mord mathnormal\">n<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8141em\"><span class=\"\" style=\"top: -3.063em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">3<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span>\u533a\u95f4DP\u539f\u578b&#xff09;\u3001LCS&#xff08;\u4e8c\u7ef4\u5e8f\u5217DP&#xff09;\u30010-1\u80cc\u5305&#xff08;\u4e00\u7ef4\u4f18\u5316\u9006\u5e8f\u904d\u5386&#xff01;&#xff09;\u3001\u533a\u95f4DP&#xff08;\u77f3\u5b50\u5408\u5e76\/\u73af\u5f62\u5904\u7406&#xff09;<\/li>\n<li>\u4e09\u5927\u5fc5\u8003\u8981\u70b9&#xff1a;\u72b6\u6001\u8bbe\u8ba1&#xff08;7\u79cd\u6a21\u5f0f&#xff09;\u3001\u8f6c\u79fb\u65b9\u7a0b&#xff08;3\u79cd\u63a8\u5bfc\u65b9\u6cd5 &#043; 8\u4e2a\u5e38\u89c1\u65b9\u7a0b\u6c47\u603b&#xff09;\u3001\u6700\u4f18\u89e3\u6784\u9020&#xff08;\u51b3\u7b56\u6570\u7ec4\/DP\u503c\u53cd\u63a8\/\u9012\u5f52\u8f93\u51fa&#xff09;<\/li>\n<li>\u4f18\u5316\u6280\u5de7\u901f\u67e5&#xff1a;\u5355\u8c03\u961f\u5217\u3001\u659c\u7387\u4f18\u5316\u3001\u56db\u8fb9\u5f62\u4e0d\u7b49\u5f0f\u3001\u4e8c\u5206\u4f18\u5316\u3001\u77e9\u9635\u5feb\u901f\u5e42<\/li>\n<li>\u7efc\u5408\u5b9e\u6218&#xff1a;\u7f16\u8f91\u8ddd\u79bb\u3001LIS&#xff08;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\n<p>          O<\/p>\n<p>          (<\/p>\n<p>          n<\/p>\n<p>          log<\/p>\n<p>          \u2061<\/p>\n<p>          n<\/p>\n<p>          )<\/p>\n<p>         O(n\\\\log n)<\/p>\n<p>      <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mop\">lo<span style=\"margin-right: 0.0139em\">g<\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span>&#xff09;\u3001\u73af\u5f62\u77f3\u5b50\u5408\u5e76\u3001\u5b8c\u5168\u80cc\u5305<\/li>\n<li>\u8003\u8bd5\u9ad8\u9891\u9898\u578b\u5206\u503c\u5360\u6bd4\u5206\u6790 &#043; \u590d\u4e60checklist<\/li>\n<\/ul>\n<hr \/>\n<h4>\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790&#xff1a;NP \u5b8c\u5168\u7406\u8bba\u6df1\u5ea6\u89e3\u6790<\/h4>\n<p>\u7bc7\u5e45&#xff1a;\u7ea612000\u5b57 \u00b7 13\u8282<\/p>\n<p>\u6838\u5fc3\u4eae\u70b9&#xff1a;<\/p>\n<ul>\n<li>P\/NP\/NPC\/NP-Hard \u56db\u5927\u6982\u5ff5\u7684\u5f62\u5f0f\u5316\u5b9a\u4e49\u3001\u97e6\u6069\u56fe\u5173\u7cfb\u4e0e\u6613\u6df7\u6dc6\u70b9\u8fa8\u6790<\/li>\n<li>\u95ee\u9898\u5f52\u7ea6\u601d\u60f3&#xff1a;\u591a\u9879\u5f0f\u65f6\u95f4\u5f52\u7ea6\u7684\u5b9a\u4e49\u3001\u4f20\u9012\u6027\u3001\u5f52\u7ea6\u94fe&#xff08;SAT\u21923-SAT\u2192CLIQUE\u2192VERTEX-COVER\u2192HAM-CYCLE\u2192TSP&#xff09;<\/li>\n<li>\u7ecf\u5178NPC\u95ee\u9898\u8be6\u89e3&#xff1a;\u54c8\u5bc6\u987f\u56de\u8def&#xff08;\u66b4\u529b\/Held-Karp DP&#xff09;\u3001TSP&#xff08;\u5224\u5b9a\u7248NPC vs \u4f18\u5316\u7248NP-Hard&#xff09;\u3001\u5b50\u96c6\u548c&#xff08;\u5f31NPC\u7279\u6027\u4e0e\u4f2a\u591a\u9879\u5f0f\u7b97\u6cd5&#xff09;<\/li>\n<li>\u6807\u51c6\u65b9\u6cd5\u8bba&#xff1a;\u8bc1\u660e\u4e00\u4e2a\u95ee\u9898\u5c5e\u4e8eNPC\u7684&#034;\u4e24\u6b65\u6cd5&#034;\u6a21\u677f&#xff08;\u2208NP &#043; \u5df2\u77e5NPC\u2264\u209a\u5b83&#xff09;&#xff0c;\u9644\u9876\u70b9\u8986\u76d6\u5b8c\u6574\u8bc1\u660e<\/li>\n<li>7\u9053\u5e38\u89c1\u7b80\u7b54\/\u8bba\u8ff0\u9898\u7cbe\u8bb2&#xff08;\u542b\u6807\u51c6\u7b54\u6848&#xff09;<\/li>\n<li>P vs NP\u5343\u79a7\u5e74\u95ee\u9898\u3001\u91cf\u5b50\u8ba1\u7b97\u4e0eNP\u7684\u73b0\u5b9e\u610f\u4e49\u8ba8\u8bba<\/li>\n<\/ul>\n<hr \/>\n<h4>\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790&#xff1a;\u56de\u6eaf\u6cd5\u6df1\u5ea6\u89e3\u6790\u2014\u2014\u89e3\u7a7a\u95f4\u6811\u3001\u526a\u679d\u6280\u5de7\u4e0e\u7ecf\u5178\u95ee\u9898\u5b9e\u6218<\/h4>\n<p>\u7bc7\u5e45&#xff1a;\u7ea612000\u5b57 \u00b7 12\u8282<\/p>\n<p>\u6838\u5fc3\u4eae\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u89e3\u7a7a\u95f4\u6811\u7684\u4e24\u79cd\u57fa\u672c\u7c7b\u578b&#xff1a;\u5b50\u96c6\u6811&#xff08;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\n<p>          O<\/p>\n<p>          (<\/p>\n<p>           2<\/p>\n<p>           n<\/p>\n<p>          )<\/p>\n<p>         O(2^n)<\/p>\n<p>      <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\"><span class=\"mord\">2<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.6644em\"><span class=\"\" style=\"top: -3.063em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mathnormal mtight\">n<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span>\u4e8c\u53c9\u6811&#xff09;\u4e0e\u6392\u5217\u6811&#xff08;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\"><\/p>\n<p>          O<\/p>\n<p>          (<\/p>\n<p>          n<\/p>\n<p>          !<\/p>\n<p>          )<\/p>\n<p>         O(n!)<\/p>\n<p>      <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mclose\">!)<\/span><\/span><\/span><\/span><\/span>\u591a\u53c9\u6811&#xff09;&#xff0c;\u9644\u5b8c\u6574\u56fe\u793a<\/li>\n<li>\u516d\u5927\u526a\u679d\u7b56\u7565\u8be6\u89e3&#xff1a;\u53ef\u884c\u6027\u526a\u679d\u3001\u5bf9\u79f0\u6027\u526a\u679d\u3001\u6392\u5e8f\u526a\u679d\u3001\u53bb\u91cd\u526a\u679d\u3001\u4e0a\u4e0b\u754c\u526a\u679d\u3001\u8bb0\u5fc6\u5316\u526a\u679d<\/li>\n<li>\u56db\u5927\u7ecf\u5178\u95ee\u9898\u5b9e\u6218&#xff08;C&#043;&#043;\/Python\u53cc\u8bed\u8a00&#xff09;&#xff1a;\n<ul>\n<li>N\u7687\u540e&#xff1a;\u6392\u5217\u6811 &#043; \u5217\/\u5bf9\u89d2\u7ebf<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\n<p>            O<\/p>\n<p>            (<\/p>\n<p>            1<\/p>\n<p>            )<\/p>\n<p>           O(1)<\/p>\n<p>        <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">1<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span>\u68c0\u67e5&#xff08;\u5b9e\u9645\u641c\u7d22\u22482057\u8282\u70b9 vs 8!&#061;40320&#xff09;<\/li>\n<li>\u5b50\u96c6\u548c&#xff1a;\u5b50\u96c6\u6811 &#043; \u6392\u5e8f &#043; \u540e\u7f00\u548c\u4e0a\u4e0b\u754c\u526a\u679d<\/li>\n<li>\u56fe\u7740\u8272&#xff1a;k\u53c9\u6811 &#043; \u90bb\u63a5\u7ea6\u675f &#043; MRV\u542f\u53d1\u5f0f<\/li>\n<li>\u5168\u6392\u5217&#xff1a;\u4ea4\u6362\u6cd5\/\u6807\u8bb0\u6cd5 &#043; \u53bb\u91cd\u526a\u679d<\/li>\n<\/ul>\n<\/li>\n<li>\u901a\u7528\u6a21\u677f&#xff08;Python\/C&#043;&#043;&#xff09;&#043; \u5de5\u7a0b\u5b9e\u8df5\u6ce8\u610f\u4e8b\u9879<\/li>\n<li>\u56de\u6eaf\u6cd5 vs DP \/ \u5206\u652f\u9650\u754c \/ \u8d2a\u5fc3 \u5168\u65b9\u4f4d\u5bf9\u6bd4\u8868<\/li>\n<li>10\u9053LeetCode\u63a8\u8350\u7ec3\u4e60\u9898<\/li>\n<\/ul>\n<hr \/>\n<h4>\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790&#xff1a;\u5206\u6cbb\u6cd5\u5168\u9762\u8be6\u89e3\u2014\u2014\u4ece\u7406\u8bba\u5230\u5b9e\u6218<\/h4>\n<p>\u7bc7\u5e45&#xff1a;\u7ea612000\u5b57 \u00b7 11\u8282<\/p>\n<p>\u6838\u5fc3\u4eae\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u5206\u6cbb\u6cd5\u6838\u5fc3\u4e09\u6b65&#xff08;\u5206\u2192\u6cbb\u2192\u5408&#xff09;\u7684\u9012\u5f52\u7ed3\u6784\u56fe\u4e0e\u9002\u7528\u6761\u4ef6<\/li>\n<li>\u4e3b\u5b9a\u7406&#xff08;Master Theorem&#xff09;\u4e09\u79cd\u60c5\u51b5\u7684\u5b8c\u6574\u63a8\u5bfc &#043; \u9012\u5f52\u6811\u65b9\u6cd5<\/li>\n<li>\u56db\u5927\u7ecf\u5178\u7b97\u6cd5\u6df1\u5ea6\u5256\u6790&#xff1a;\n<ul>\n<li>\u5f52\u5e76\u6392\u5e8f&#xff1a;\u91cd\u5728&#034;\u5408&#034;&#xff08;Merge&#xff09;&#xff0c;\u7a33\u5b9a<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\n<p>            O<\/p>\n<p>            (<\/p>\n<p>            n<\/p>\n<p>            log<\/p>\n<p>            \u2061<\/p>\n<p>            n<\/p>\n<p>            )<\/p>\n<p>           O(n\\\\log n)<\/p>\n<p>        <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mop\">lo<span style=\"margin-right: 0.0139em\">g<\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span>&#xff0c;\u9002\u5408\u5916\u90e8\u6392\u5e8f<\/li>\n<li>\u5feb\u901f\u6392\u5e8f&#xff1a;\u91cd\u5728&#034;\u5206&#034;&#xff08;Partition&#xff09;&#xff0c;\u968f\u673a\u5316\/\u4e09\u6570\u53d6\u4e2d\u907f\u514d\u6700\u574f<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\n<p>            O<\/p>\n<p>            (<\/p>\n<p>             n<\/p>\n<p>             2<\/p>\n<p>            )<\/p>\n<p>           O(n^2)<\/p>\n<p>        <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.0641em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\"><span class=\"mord mathnormal\">n<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8141em\"><span class=\"\" style=\"top: -3.063em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">2<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/li>\n<li>\u6700\u8fd1\u70b9\u5bf9&#xff1a;\u6309x\u5750\u6807\u7b49\u5206 &#043; \u5e26\u72b6\u533a\u57df&#xff08;\u22647\u70b9\u5b9a\u7406&#xff09;&#xff0c;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\n<p>            O<\/p>\n<p>            (<\/p>\n<p>            n<\/p>\n<p>            log<\/p>\n<p>            \u2061<\/p>\n<p>            n<\/p>\n<p>            )<\/p>\n<p>           O(n\\\\log n)<\/p>\n<p>        <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mop\">lo<span style=\"margin-right: 0.0139em\">g<\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/li>\n<li>\u6700\u5927\u5b50\u6570\u7ec4&#xff1a;\u4e09\u5206\u5408\u5e76&#xff08;\u5de6\/\u53f3\/\u8de8\u8d8a\u4e2d\u70b9&#xff09;&#xff0c;\u5bf9\u6bd4Kadane <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\n<p>            O<\/p>\n<p>            (<\/p>\n<p>            n<\/p>\n<p>            )<\/p>\n<p>           O(n)<\/p>\n<p>        <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/li>\n<\/ul>\n<\/li>\n<li>\u5f52\u5e76 vs \u5feb\u6392 \u6838\u5fc3\u5bf9\u6bd4&#xff1a;\u65f6\u95f4\u7a33\u5b9a\u6027\u3001\u7a7a\u95f4\u3001\u7f13\u5b58\u6027\u80fd\u3001\u9002\u7528\u573a\u666f<\/li>\n<li>\u5206\u6cbb\u6cd5 vs DP \/ \u8d2a\u5fc3 \/ \u56de\u6eaf \u7684\u5224\u65ad\u51c6\u5219<\/li>\n<li>\u4f18\u5316\u6280\u5de7&#xff1a;\u5c0f\u95ee\u9898\u5207\u6362\u63d2\u5165\u6392\u5e8f\u3001\u5c3e\u9012\u5f52\u4f18\u5316\u3001\u5e76\u884c\u5316<\/li>\n<li>\u5b9e\u6218\u7ec3\u4e60&#xff1a;\u9006\u5e8f\u5bf9\u8ba1\u6570\u3001Karatsuba\u5927\u6574\u6570\u4e58\u6cd5\u3001\u68cb\u76d8\u8986\u76d6<\/li>\n<\/ul>\n<hr \/>\n<h4>\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790&#xff1a;\u5206\u652f\u9650\u754c\u6cd5\u8be6\u89e3\u2014\u2014\u4ece\u539f\u7406\u5230\u5b9e\u6218\u5168\u9762\u5256\u6790<\/h4>\n<p>\u7bc7\u5e45&#xff1a;\u7ea612000\u5b57 \u00b7 12\u8282<\/p>\n<p>\u6838\u5fc3\u4eae\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u5206\u652f\u9650\u754c\u6cd5\u4e09\u8981\u7d20&#xff08;\u5206\u652f\/\u9650\u754c\/\u641c\u7d22&#xff09;\u4e0e\u6d3b\u8282\u70b9\/\u6b7b\u8282\u70b9\/E-\u8282\u70b9\u6982\u5ff5<\/li>\n<li>\u4e24\u79cd\u641c\u7d22\u7b56\u7565\u5bf9\u6bd4&#xff1a;\u961f\u5217\u5f0fFIFO&#xff08;BFS&#xff09;vs \u4f18\u5148\u961f\u5217\u5f0fLC&#xff08;\u6700\u4f73\u4f18\u5148&#xff09;&#xff0c;\u9644\u641c\u7d22\u8fc7\u7a0b\u56fe\u89e3<\/li>\n<li>\u9650\u754c\u51fd\u6570\u8bbe\u8ba1\u4e09\u5927\u65b9\u6cd5&#xff1a;\u8d2a\u5fc3\u677e\u5f1b&#xff08;\u80cc\u5305&#xff09;\u3001\u4ee3\u4ef7\u77e9\u9635\u5f52\u7ea6&#xff08;TSP&#xff09;\u3001\u7b80\u5355\u4f30\u8ba1<\/li>\n<li>\u5206\u652f\u9650\u754c\u6cd5 vs \u56de\u6eaf\u6cd5 \u5168\u65b9\u4f4d\u5bf9\u6bd4&#xff08;\u641c\u7d22\u7b56\u7565\/\u76ee\u6807\/\u6570\u636e\u7ed3\u6784\/\u7a7a\u95f4\u590d\u6742\u5ea6\/\u9002\u7528\u95ee\u9898&#xff09;<\/li>\n<li>\u4e24\u5927\u7ecf\u5178\u6848\u4f8b\u5b8c\u6574\u4ee3\u7801&#xff08;C&#043;&#043;&#xff09;&#xff1a;\n<ul>\n<li>0\/1\u80cc\u5305&#xff1a;\u5206\u6570\u80cc\u5305\u4e0a\u754c &#043; \u4f18\u5148\u961f\u5217&#xff0c;\u9644\u624b\u5199\u6a21\u62df\u5168\u8fc7\u7a0b<\/li>\n<li>TSP&#xff1a;\u884c\u5217\u5f52\u7ea6\u4e0b\u754c &#043; \u5b50\u56de\u8def\u9632\u6b62 &#043; \u4f18\u5148\u961f\u5217\u641c\u7d22<\/li>\n<\/ul>\n<\/li>\n<li>\u526a\u679d\u4f18\u5316\u516d\u5927\u6280\u5de7&#xff1a;\u9650\u754c\u526a\u679d\u3001\u53ef\u884c\u6027\u526a\u679d\u3001\u5bf9\u79f0\u6027\u526a\u679d\u3001\u652f\u914d\u526a\u679d\u3001\u9884\u5904\u7406\u6392\u5e8f\u3001\u521d\u59cb\u89e3\u83b7\u53d6<\/li>\n<li>\u9ad8\u9891\u8003\u70b9\u4e0e\u6613\u9519\u70b9\u603b\u7ed3 &#043; \u624b\u5199\u6a21\u62df\u9898\u6a21\u677f<\/li>\n<li>\u5de5\u7a0b\u5e94\u7528\u62d3\u5c55&#xff1a;\u6574\u6570\u89c4\u5212&#xff08;CPLEX\/Gurobi&#xff09;\u3001A*\u641c\u7d22\u3001\u5206\u652f\u5b9a\u4ef7\u5207\u5272\u6cd5<\/li>\n<\/ul>\n<hr \/>\n<h3>&#x1f5fa;\ufe0f \u7cfb\u5217\u77e5\u8bc6\u56fe\u8c31<\/h3>\n<p>\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b\u5168\u7cfb\u5217<br \/>\n\u2502<br \/>\n\u251c\u2500\u2500 &#x1f4d8; \u4e07\u5b57\u901f\u901a&#xff08;\u5168\u4e6611\u7ae0\u6982\u89c8&#xff0c;\u7ea63\u4e07\u5b57&#xff09;<br \/>\n\u2502   \u251c\u2500\u2500 &#xff08;1&#xff09;\u7b2c1~5\u7ae0&#xff1a;\u57fa\u7840\u7b97\u6cd5\u8bbe\u8ba1\u8303\u5f0f<br \/>\n\u2502   \u251c\u2500\u2500 &#xff08;2&#xff09;\u7b2c6~8\u7ae0&#xff1a;\u9ad8\u7ea7\u7b56\u7565\u4e0e\u8ba1\u7b97\u590d\u6742\u6027<br \/>\n\u2502   \u2514\u2500\u2500 &#xff08;3&#xff09;\u7b2c9~11\u7ae0&#xff1a;\u4e13\u9898\u4e0e\u524d\u6cbf<br \/>\n\u2502<br \/>\n\u2514\u2500\u2500 &#x1f4d7; \u4e13\u9898\u6df1\u5ea6\u89e3\u6790&#xff08;6\u7bc7&#xff0c;\u6bcf\u7bc7\u7ea612000\u5b57&#xff09;<br \/>\n    \u251c\u2500\u2500 \u8d2a\u5fc3\u7b97\u6cd5 \u2500\u2500\u2500 \u4e24\u5927\u6761\u4ef6 &#043; \u56db\u5927\u6848\u4f8b &#043; \u6b63\u786e\u6027\u8bc1\u660e<br \/>\n    \u251c\u2500\u2500 \u52a8\u6001\u89c4\u5212 \u2500\u2500\u2500 \u56db\u5927\u6a21\u578b &#043; \u4e09\u5927\u5fc5\u8003 &#043; \u4f18\u5316\u6280\u5de7<br \/>\n    \u251c\u2500\u2500 NP\u5b8c\u5168\u7406\u8bba \u2500\u2500 \u56db\u7c7b\u95ee\u9898 &#043; \u5f52\u7ea6\u65b9\u6cd5 &#043; NPC\u8bc1\u660e<br \/>\n    \u251c\u2500\u2500 \u56de\u6eaf\u6cd5 \u2500\u2500\u2500\u2500\u2500 \u89e3\u7a7a\u95f4\u6811 &#043; \u516d\u5927\u526a\u679d &#043; \u56db\u5927\u95ee\u9898<br \/>\n    \u251c\u2500\u2500 \u5206\u6cbb\u6cd5 \u2500\u2500\u2500\u2500\u2500 \u4e3b\u5b9a\u7406 &#043; \u56db\u5927\u7b97\u6cd5 &#043; \u7b56\u7565\u5bf9\u6bd4<br \/>\n    \u2514\u2500\u2500 \u5206\u652f\u9650\u754c\u6cd5 \u2500\u2500 \u641c\u7d22\u7b56\u7565 &#043; \u9650\u754c\u8bbe\u8ba1 &#043; \u4e24\u5927\u6848\u4f8b<\/p>\n<hr \/>\n<h3>&#x1f4cb; \u5efa\u8bae\u9605\u8bfb\u987a\u5e8f<\/h3>\n<table>\n<tr>\u9636\u6bb5\u9605\u8bfb\u5185\u5bb9\u76ee\u6807<\/tr>\n<tbody>\n<tr>\n<td align=\"center\">\u7b2c\u4e00\u904d<\/td>\n<td align=\"left\">\u901f\u901a&#xff08;1&#xff09;&#xff08;2&#xff09;&#xff08;3&#xff09;<\/td>\n<td align=\"left\">\u5efa\u7acb\u5168\u4e66\u77e5\u8bc6\u6846\u67b6&#xff0c;\u4e86\u89e3\u6bcf\u7ae0\u6838\u5fc3\u6982\u5ff5<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u7b2c\u4e8c\u904d<\/td>\n<td align=\"left\">\u5206\u6cbb\u6cd5 \u2192 \u8d2a\u5fc3 \u2192 \u52a8\u6001\u89c4\u5212<\/td>\n<td align=\"left\">\u638c\u63e1\u4e09\u5927\u57fa\u7840\u7b97\u6cd5\u8bbe\u8ba1\u8303\u5f0f<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u7b2c\u4e09\u904d<\/td>\n<td align=\"left\">\u56de\u6eaf\u6cd5 \u2192 \u5206\u652f\u9650\u754c\u6cd5<\/td>\n<td align=\"left\">\u638c\u63e1\u641c\u7d22\u7c7b\u7b97\u6cd5\u7684\u8bbe\u8ba1\u4e0e\u4f18\u5316<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u7b2c\u56db\u904d<\/td>\n<td align=\"left\">NP\u5b8c\u5168\u7406\u8bba<\/td>\n<td align=\"left\">\u7406\u89e3\u8ba1\u7b97\u590d\u6742\u6027&#xff0c;\u5efa\u7acb\u7b97\u6cd5\u9009\u62e9\u7684\u7406\u8bba\u4f9d\u636e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p>&#x1f4dd; \u4f5c\u8005&#xff1a;\u57f9\u98ce\u56fe\u5357\u4ee5\u661f\u6cb3\u63fd\u80dc<\/p>\n<p>&#x1f4c2; \u4e13\u680f&#xff1a;\u6570\u636e\u7ed3\u6784\u4e0e\u7b97\u6cd5Leetcode&#xff08;\u76ee\u524d209\u7bc7&#xff09;<\/p>\n<p>&#x1f4a1; \u5982\u679c\u89c9\u5f97\u6709\u5e2e\u52a9&#xff0c;\u6b22\u8fce \u70b9\u8d5e&#x1f44d; \u6536\u85cf\u2b50 \u5173\u6ce8&#x1f514; \u4e09\u8fde\u652f\u6301&#xff01;\u6709\u95ee\u9898\u6b22\u8fce\u8bc4\u8bba\u533a\u4ea4\u6d41\u8ba8\u8bba~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b(\u603b)  \u91cd\u70b9\u7b97\u6cd5\u5206\u6587\u7ae0\u8be6\u89e3 &#x1f4cc; \u5bfc\u8bfb&#xff1a;\u672c\u7cfb\u5217\u662f\u5bf9\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b&#xff08;\u738b\u6653\u4e1c \u7f16\u8457&#xff09;\u5168\u4e6611\u7ae0\u7684\u7cfb\u7edf\u6027\u901f\u901a\u4e0e\u6df1\u5ea6\u89e3\u6790\u3002\u5305\u542b 3\u7bc7\u4e07\u5b57\u901f\u901a&#xff08;\u8986\u76d6\u5168\u4e66\u77e5\u8bc6\u6846\u67b6&#xff09; 6\u7bc7\u4e13\u9898\u6df1\u5ea6\u89e3\u6790&#xff08;\u6bcf\u7bc7\u7ea612000\u5b57&#xff0c;\u9010\u4e00\u653b\u514b\u6838\u5fc3\u7b97\u6cd5&#xff09;&#xff0c;\u603b\u8ba1\u7ea6 10\u4e07\u5b57&#xff0c;\u9002\u5408\u671f\u672b\u590d\u4e60\u3001\u8003\u7814\u5907\u8003\u53ca\u7b97\u6cd5\u7ade\u8d5b\u5165\u95e8\u3002 &#x1f4d8;<\/p>\n","protected":false},"author":2,"featured_media":88582,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[427],"topic":[],"class_list":["post-88583","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-427"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b(\u603b) + \u91cd\u70b9\u7b97\u6cd5\u5206\u6587\u7ae0\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/88583.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b(\u603b) + \u91cd\u70b9\u7b97\u6cd5\u5206\u6587\u7ae0\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b(\u603b) \u91cd\u70b9\u7b97\u6cd5\u5206\u6587\u7ae0\u8be6\u89e3 &#x1f4cc; \u5bfc\u8bfb&#xff1a;\u672c\u7cfb\u5217\u662f\u5bf9\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b&#xff08;\u738b\u6653\u4e1c \u7f16\u8457&#xff09;\u5168\u4e6611\u7ae0\u7684\u7cfb\u7edf\u6027\u901f\u901a\u4e0e\u6df1\u5ea6\u89e3\u6790\u3002\u5305\u542b 3\u7bc7\u4e07\u5b57\u901f\u901a&#xff08;\u8986\u76d6\u5168\u4e66\u77e5\u8bc6\u6846\u67b6&#xff09; 6\u7bc7\u4e13\u9898\u6df1\u5ea6\u89e3\u6790&#xff08;\u6bcf\u7bc7\u7ea612000\u5b57&#xff0c;\u9010\u4e00\u653b\u514b\u6838\u5fc3\u7b97\u6cd5&#xff09;&#xff0c;\u603b\u8ba1\u7ea6 10\u4e07\u5b57&#xff0c;\u9002\u5408\u671f\u672b\u590d\u4e60\u3001\u8003\u7814\u5907\u8003\u53ca\u7b97\u6cd5\u7ade\u8d5b\u5165\u95e8\u3002 &#x1f4d8;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/88583.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-01T04:56:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801045628-6a6d7c7c78b7a.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/88583.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/88583.html\",\"name\":\"\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b(\u603b) + \u91cd\u70b9\u7b97\u6cd5\u5206\u6587\u7ae0\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-01T04:56:29+00:00\",\"dateModified\":\"2026-08-01T04:56:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/88583.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/88583.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/88583.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b(\u603b) + \u91cd\u70b9\u7b97\u6cd5\u5206\u6587\u7ae0\u8be6\u89e3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b(\u603b) + \u91cd\u70b9\u7b97\u6cd5\u5206\u6587\u7ae0\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/88583.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b(\u603b) + \u91cd\u70b9\u7b97\u6cd5\u5206\u6587\u7ae0\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b(\u603b) \u91cd\u70b9\u7b97\u6cd5\u5206\u6587\u7ae0\u8be6\u89e3 &#x1f4cc; \u5bfc\u8bfb&#xff1a;\u672c\u7cfb\u5217\u662f\u5bf9\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b&#xff08;\u738b\u6653\u4e1c \u7f16\u8457&#xff09;\u5168\u4e6611\u7ae0\u7684\u7cfb\u7edf\u6027\u901f\u901a\u4e0e\u6df1\u5ea6\u89e3\u6790\u3002\u5305\u542b 3\u7bc7\u4e07\u5b57\u901f\u901a&#xff08;\u8986\u76d6\u5168\u4e66\u77e5\u8bc6\u6846\u67b6&#xff09; 6\u7bc7\u4e13\u9898\u6df1\u5ea6\u89e3\u6790&#xff08;\u6bcf\u7bc7\u7ea612000\u5b57&#xff0c;\u9010\u4e00\u653b\u514b\u6838\u5fc3\u7b97\u6cd5&#xff09;&#xff0c;\u603b\u8ba1\u7ea6 10\u4e07\u5b57&#xff0c;\u9002\u5408\u671f\u672b\u590d\u4e60\u3001\u8003\u7814\u5907\u8003\u53ca\u7b97\u6cd5\u7ade\u8d5b\u5165\u95e8\u3002 &#x1f4d8;","og_url":"https:\/\/www.wsisp.com\/helps\/88583.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-01T04:56:29+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801045628-6a6d7c7c78b7a.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/88583.html","url":"https:\/\/www.wsisp.com\/helps\/88583.html","name":"\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b(\u603b) + \u91cd\u70b9\u7b97\u6cd5\u5206\u6587\u7ae0\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-01T04:56:29+00:00","dateModified":"2026-08-01T04:56:29+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/88583.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/88583.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/88583.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4e07\u5b57\u4e66\u7c4d\u901f\u901a\u4e4b\u300a\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u300b(\u603b) + \u91cd\u70b9\u7b97\u6cd5\u5206\u6587\u7ae0\u8be6\u89e3"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/88583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=88583"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/88583\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/88582"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=88583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=88583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=88583"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=88583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}