{"id":1709,"date":"2026-06-02T16:50:35","date_gmt":"2026-06-02T08:50:35","guid":{"rendered":"http:\/\/wordpress.fangt.online\/?p=1709"},"modified":"2026-06-02T16:50:54","modified_gmt":"2026-06-02T08:50:54","slug":"%e9%80%92%e5%bd%92%e7%ae%97%e6%b3%95","status":"publish","type":"post","link":"http:\/\/wordpress.fangt.online\/index.php\/2026\/06\/02\/%e9%80%92%e5%bd%92%e7%ae%97%e6%b3%95\/","title":{"rendered":"\u9012\u5f52\u7b97\u6cd5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>\u9012\u5f52\u7b97\u6cd5<\/strong>\u662f\u4e00\u79cd\u76f4\u63a5\u6216\u95f4\u63a5\u5730\u8c03\u7528\u81ea\u8eab\u6765\u89e3\u51b3\u95ee\u9898\u7684\u65b9\u6cd5\u3002\u5b83\u901a\u8fc7\u5c06\u539f\u95ee\u9898\u5206\u89e3\u4e3a<strong>\u89c4\u6a21\u66f4\u5c0f\u3001\u7ed3\u6784\u76f8\u540c<\/strong>\u7684\u5b50\u95ee\u9898\uff0c\u5e76\u5229\u7528\u5b50\u95ee\u9898\u7684\u89e3\u6765\u6784\u9020\u539f\u95ee\u9898\u7684\u89e3\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u9012\u5f52\u7b97\u6cd5 \u2260 \u9012\u5f52\u51fd\u6570<br>\u9012\u5f52\u51fd\u6570\u662f\u7f16\u7a0b\u8bed\u8a00\u7684\u5b9e\u73b0\u624b\u6bb5\uff0c\u800c\u9012\u5f52\u7b97\u6cd5\u662f\u66f4\u5b8f\u89c2\u7684<strong>\u89e3\u9898\u7b56\u7565<\/strong>\u3002\u6bd4\u5982\uff0c\u6c49\u8bfa\u5854\u95ee\u9898\u3001\u5f52\u5e76\u6392\u5e8f\u3001\u5feb\u901f\u6392\u5e8f\u3001\u56de\u6eaf\u641c\u7d22\u7b49\uff0c\u90fd\u662f\u5178\u578b\u7684\u9012\u5f52\u7b97\u6cd5\u3002<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u6838\u5fc3\u8981\u7d20<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4efb\u4f55\u4e00\u4e2a\u6b63\u786e\u7684\u9012\u5f52\u7b97\u6cd5\u90fd\u5fc5\u987b\u5305\u542b\u4ee5\u4e0b\u4e09\u4e2a\u8981\u7d20\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table has-small-font-size\"><table><thead><tr><th class=\"has-text-align-left\" data-align=\"left\">\u8981\u7d20<\/th><th class=\"has-text-align-left\" data-align=\"left\">\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-left\" data-align=\"left\"><strong>1. \u660e\u786e\u7684\u5b50\u95ee\u9898\u7ed3\u6784<\/strong><\/td><td class=\"has-text-align-left\" data-align=\"left\">\u539f\u95ee\u9898\u5982\u4f55\u5212\u5206\u4e3a\u4e00\u4e2a\u6216\u591a\u4e2a\u5b50\u95ee\u9898\uff0c\u5b50\u95ee\u9898\u4e0e\u539f\u95ee\u9898\u5f62\u5f0f\u76f8\u540c\u3002<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\"><strong>2. \u9012\u63a8\u5173\u7cfb<\/strong><\/td><td class=\"has-text-align-left\" data-align=\"left\">\u5b50\u95ee\u9898\u7684\u89e3\u5982\u4f55\u5408\u5e76\u5f97\u5230\u539f\u95ee\u9898\u7684\u89e3\u3002<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\"><strong>3. \u8fb9\u754c\u6761\u4ef6<\/strong><\/td><td class=\"has-text-align-left\" data-align=\"left\">\u95ee\u9898\u89c4\u6a21\u5c0f\u5230\u53ef\u4ee5\u76f4\u63a5\u6c42\u89e3\uff0c\u4e0d\u518d\u9012\u5f52\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e09\u4e2a\u8981\u7d20\u7f3a\u4e00\u4e0d\u53ef\u3002\u7f3a\u5c11\u8fb9\u754c\u6761\u4ef6 \u2192 \u65e0\u9650\u9012\u5f52\uff1b\u7f3a\u5c11\u9012\u63a8\u5173\u7cfb \u2192 \u65e0\u6cd5\u5f97\u5230\u89e3\uff1b\u5b50\u95ee\u9898\u7ed3\u6784\u4e0d\u6b63\u786e \u2192 \u7b97\u6cd5\u9519\u8bef\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u9002\u7528\u6761\u4ef6<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5e76\u4e0d\u662f\u6240\u6709\u95ee\u9898\u90fd\u9002\u5408\u9012\u5f52\u7b97\u6cd5\u3002\u901a\u5e38\uff0c\u6ee1\u8db3\u4ee5\u4e0b\u6761\u4ef6\u7684\u95ee\u9898\u66f4\u5bb9\u6613\u7528\u9012\u5f52\u8bbe\u8ba1\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u95ee\u9898\u53ef\u4ee5\u5206\u89e3\u4e3a\u89c4\u6a21\u66f4\u5c0f\u7684\u540c\u7c7b\u5b50\u95ee\u9898<\/strong>\uff08\u81ea\u76f8\u4f3c\u6027\uff09\u3002\u4f8b\u5982\uff1a\u6c49\u8bfa\u5854\u3001\u6590\u6ce2\u90a3\u5951\u3001\u6811\u7684\u904d\u5386\u3002<\/li>\n\n\n\n<li><strong>\u5b50\u95ee\u9898\u4e4b\u95f4\u76f8\u4e92\u72ec\u7acb<\/strong>\uff08\u9664\u4e86\u5206\u6cbb\u7b97\u6cd5\uff0c\u56de\u6eaf\u4e2d\u53ef\u80fd\u6709\u4f9d\u8d56\uff0c\u4f46\u603b\u4f53\u4e0a\u662f\u9012\u5f52\u63a2\u7d22\uff09\u3002\u6bd4\u5982\u5f52\u5e76\u6392\u5e8f\u7684\u5de6\u53f3\u4e24\u534a\u72ec\u7acb\u6392\u5e8f\u3002<\/li>\n\n\n\n<li><strong>\u5b50\u95ee\u9898\u7684\u89e3\u53ef\u4ee5\u9ad8\u6548\u5408\u5e76<\/strong>\uff0c\u4e14\u5408\u5e76\u4ee3\u4ef7\u4e0d\u9ad8\u3002<\/li>\n\n\n\n<li><strong>\u95ee\u9898\u8fb9\u754c\u6e05\u6670<\/strong>\uff0c\u5bb9\u6613\u5b9a\u4e49\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u6267\u884c\u8fc7\u7a0b\u5206\u6790<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u9012\u5f52\u7b97\u6cd5\u7684\u6267\u884c\u53ef\u4ee5\u5206\u4e3a\u4e24\u4e2a\u9636\u6bb5\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u9012\u63a8\u9636\u6bb5<\/strong>\uff1a\u4ece\u539f\u95ee\u9898\u51fa\u53d1\uff0c\u4e0d\u65ad\u7f29\u5c0f\u95ee\u9898\u89c4\u6a21\uff0c\u76f4\u5230\u8fbe\u5230\u8fb9\u754c\u6761\u4ef6\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u76f8\u5f53\u4e8e<strong>\u5411\u4e0b\u5c55\u5f00<\/strong>\u3002<\/li>\n\n\n\n<li><strong>\u56de\u5f52\u9636\u6bb5<\/strong>\uff1a\u4ece\u8fb9\u754c\u6761\u4ef6\u5f00\u59cb\uff0c\u9010\u5c42\u8fd4\u56de\uff0c\u5229\u7528\u5b50\u95ee\u9898\u7684\u89e3\u6784\u9020\u4e0a\u4e00\u5c42\u95ee\u9898\u7684\u89e3\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u76f8\u5f53\u4e8e<strong>\u5411\u4e0a\u56de\u6eaf<\/strong>\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u590d\u6742\u5ea6\u5206\u6790<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u65f6\u95f4\u590d\u6742\u5ea6 \u901a\u7528\u65b9\u6cd5\uff1a\u9012\u5f52\u6811 + \u4e3b\u5b9a\u7406<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u4e8e\u5206\u6cbb\u578b\u7684\u9012\u5f52\u7b97\u6cd5\uff0c\u5176\u65f6\u95f4\u590d\u6742\u5ea6\u901a\u5e38\u6ee1\u8db3\u9012\u63a8\u5f0f\uff1a<math data-latex=\"T(n) = a \\cdot T\\left(\\frac{n}{b}\\right) + f(n)\"><semantics><mrow><mi>T<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>n<\/mi><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mo>=<\/mo><mi>a<\/mi><mo>\u22c5<\/mo><mi>T<\/mi><mrow><mo fence=\"true\" form=\"prefix\">(<\/mo><mfrac><mi>n<\/mi><mi>b<\/mi><\/mfrac><mo fence=\"true\" form=\"postfix\">)<\/mo><\/mrow><mo>+<\/mo><mi>f<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>n<\/mi><mo form=\"postfix\" stretchy=\"false\">)<\/mo><\/mrow><annotation encoding=\"application\/x-tex\">T(n) = a \\cdot T\\left(\\frac{n}{b}\\right) + f(n)<\/annotation><\/semantics><\/math><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5176\u4e2d\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>a \u662f\u5b50\u95ee\u9898\u4e2a\u6570<\/li>\n\n\n\n<li>b \u662f\u6bcf\u6b21\u7f29\u5c0f\u7684\u500d\u6570<\/li>\n\n\n\n<li>f(n) \u662f\u5408\u5e76\/\u5206\u89e3\u7684\u4ee3\u4ef7<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u7ade\u8d5b\u4e2d\u5e38\u7528\u5b9e\u4f8b\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5f52\u5e76\u6392\u5e8f\uff1a<math data-latex=\"T(n)=2T(n\/2)+O(n) \u2192 O(n\\log n)\"><semantics><mrow><mi>T<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>n<\/mi><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mo>=<\/mo><mn>2<\/mn><mi>T<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>n<\/mi><mi>\/<\/mi><mn>2<\/mn><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mo>+<\/mo><mi>O<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>n<\/mi><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mo stretchy=\"false\">\u2192<\/mo><mi>O<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>n<\/mi><mrow><mspace width=\"0.1667em\"><\/mspace><mi>log<\/mi><mo>\u2061<\/mo><mspace width=\"0.1667em\"><\/mspace><\/mrow><mi>n<\/mi><mo form=\"postfix\" stretchy=\"false\">)<\/mo><\/mrow><annotation encoding=\"application\/x-tex\">T(n)=2T(n\/2)+O(n) \u2192 O(n\\log n)<\/annotation><\/semantics><\/math><\/li>\n\n\n\n<li>\u4e8c\u5206\u67e5\u627e\uff1a<math data-latex=\"T(n)=T(n\/2)+O(1) \u2192 O(\\log n)\"><semantics><mrow><mi>T<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>n<\/mi><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mo>=<\/mo><mi>T<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>n<\/mi><mi>\/<\/mi><mn>2<\/mn><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mo>+<\/mo><mi>O<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mn>1<\/mn><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mo stretchy=\"false\">\u2192<\/mo><mi>O<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mrow><mi>log<\/mi><mo>\u2061<\/mo><mspace width=\"0.1667em\"><\/mspace><\/mrow><mi>n<\/mi><mo form=\"postfix\" stretchy=\"false\">)<\/mo><\/mrow><annotation encoding=\"application\/x-tex\">T(n)=T(n\/2)+O(1) \u2192 O(\\log n)<\/annotation><\/semantics><\/math><\/li>\n\n\n\n<li>\u6734\u7d20\u6590\u6ce2\u90a3\u5951\uff1a<math data-latex=\"T(n)=T(n-1)+T(n-2)+O(1) \u2192 O(2^n)\"><semantics><mrow><mi>T<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>n<\/mi><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mo>=<\/mo><mi>T<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>n<\/mi><mo>\u2212<\/mo><mn>1<\/mn><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mo>+<\/mo><mi>T<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>n<\/mi><mo>\u2212<\/mo><mn>2<\/mn><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mo>+<\/mo><mi>O<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mn>1<\/mn><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mo stretchy=\"false\">\u2192<\/mo><mi>O<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><msup><mn>2<\/mn><mi>n<\/mi><\/msup><mo form=\"postfix\" stretchy=\"false\">)<\/mo><\/mrow><annotation encoding=\"application\/x-tex\">T(n)=T(n-1)+T(n-2)+O(1) \u2192 O(2^n)<\/annotation><\/semantics><\/math>\uff08\u6307\u6570\u7ea7\uff0c\u4e0d\u53ef\u63a5\u53d7\uff09<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u7a7a\u95f4\u590d\u6742\u5ea6<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u9012\u5f52\u7b97\u6cd5\u4f1a\u4f7f\u7528<strong>\u8c03\u7528\u6808<\/strong>\uff0c\u7a7a\u95f4\u590d\u6742\u5ea6\u901a\u5e38\u5305\u542b\u4e24\u90e8\u5206\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9012\u5f52\u6df1\u5ea6\u5bf9\u5e94\u7684\u6808\u7a7a\u95f4\uff08\u6700\u574f\u60c5\u51b5\uff09<\/li>\n\n\n\n<li>\u7b97\u6cd5\u672c\u8eab\u989d\u5916\u5206\u914d\u7684\u7a7a\u95f4\uff08\u5982\u5f52\u5e76\u6392\u5e8f\u7684\u4e34\u65f6\u6570\u7ec4\uff09<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u603b\u7ed3<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u9012\u5f52\u7b97\u6cd5\u7684\u6838\u5fc3\u5728\u4e8e<strong>\u5229\u7528\u95ee\u9898\u672c\u8eab\u7684\u81ea\u76f8\u4f3c\u6027\uff0c\u7528\u7b80\u6d01\u7684\u65b9\u5f0f\u63cf\u8ff0\u590d\u6742\u8fc7\u7a0b<\/strong>\u3002\u5b83\u4e0d\u4ec5\u662f\u7f16\u7a0b\u6280\u5de7\uff0c\u66f4\u662f\u4e00\u79cd\u89e3\u51b3\u95ee\u9898\u7684\u6570\u5b66\u601d\u7ef4\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u4f18\u52bf<\/strong>\uff1a\u4ee3\u7801\u7b80\u6d01\uff0c\u903b\u8f91\u6e05\u6670\uff0c\u7279\u522b\u9002\u5408\u6811\u3001\u56fe\u3001\u5206\u6cbb\u3001\u56de\u6eaf\u7c7b\u95ee\u9898\u3002<\/li>\n\n\n\n<li><strong>\u52a3\u52bf<\/strong>\uff1a\u53ef\u80fd\u5b58\u5728\u91cd\u590d\u8ba1\u7b97\u548c\u6808\u7a7a\u95f4\u5f00\u9500\uff0c\u9700\u8981\u89c6\u60c5\u51b5\u4f18\u5316\u3002<\/li>\n\n\n\n<li><strong>\u7ade\u8d5b\u7b56\u7565<\/strong>\uff1a\u4f18\u5148\u7528\u9012\u5f52\u8bbe\u8ba1\u7b97\u6cd5\u539f\u578b\uff0c\u518d\u6839\u636e\u9700\u8981\u6539\u5199\u6210\u8fed\u4ee3\u6216\u6dfb\u52a0\u8bb0\u5fc6\u5316\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u9012\u5f52\u7b97\u6cd5\u662f\u4e00\u79cd\u76f4\u63a5\u6216\u95f4\u63a5\u5730\u8c03\u7528\u81ea\u8eab\u6765\u89e3\u51b3\u95ee\u9898\u7684\u65b9\u6cd5\u3002\u5b83\u901a\u8fc7\u5c06\u539f\u95ee\u9898\u5206\u89e3\u4e3a\u89c4\u6a21\u66f4\u5c0f\u3001\u7ed3\u6784\u76f8\u540c\u7684\u5b50\u95ee\u9898\uff0c\u5e76\u5229\u7528\u5b50\u95ee [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-1709","post","type-post","status-publish","format-standard","hentry","category-zl"],"_links":{"self":[{"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/posts\/1709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/comments?post=1709"}],"version-history":[{"count":2,"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/posts\/1709\/revisions"}],"predecessor-version":[{"id":1712,"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/posts\/1709\/revisions\/1712"}],"wp:attachment":[{"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/media?parent=1709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/categories?post=1709"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/tags?post=1709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}