{"id":1706,"date":"2017-01-27T01:30:19","date_gmt":"2017-01-26T17:30:19","guid":{"rendered":"http:\/\/cn.hostease.com\/xueyuan\/?p=1706"},"modified":"2025-01-06T20:51:32","modified_gmt":"2025-01-06T12:51:32","slug":"%e7%bb%8f%e5%85%b8%e7%ae%97%e6%b3%95%e9%a2%98%e6%af%8f%e6%97%a5%e6%bc%94%e7%bb%83-%e7%ac%ac%e5%9b%9b%e9%a2%98-%e6%9c%80%e9%95%bf%e5%85%ac%e5%85%b1%e5%ad%90%e5%ba%8f%e5%88%97","status":"publish","type":"post","link":"https:\/\/cn.hostease.com\/xueyuan\/jishu\/%e7%bb%8f%e5%85%b8%e7%ae%97%e6%b3%95%e9%a2%98%e6%af%8f%e6%97%a5%e6%bc%94%e7%bb%83-%e7%ac%ac%e5%9b%9b%e9%a2%98-%e6%9c%80%e9%95%bf%e5%85%ac%e5%85%b1%e5%ad%90%e5%ba%8f%e5%88%97\/","title":{"rendered":"\u7ecf\u5178\u7b97\u6cd5\u9898\u6bcf\u65e5\u6f14\u7ec3\u2014\u2014\u7b2c\u56db\u9898 \u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217"},"content":{"rendered":"\n<p>\u4e00\uff1a \u4f5c\u7528<\/p>\n\n\n\n<p>\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u7684\u95ee\u9898\u5e38\u7528\u4e8e\u89e3\u51b3\u5b57\u7b26\u4e32\u7684\u76f8\u4f3c\u5ea6\uff0c\u662f\u4e00\u4e2a\u975e\u5e38\u5b9e\u7528\u7684\u7b97\u6cd5\uff0c\u4f5c\u4e3a\u7801\u519c\uff0c\u6b64\u7b97\u6cd5\u662f\u6211\u4eec\u7684\u5fc5\u5907\u57fa\u672c\u529f\u3002<\/p>\n\n\n\n<p>\u4e8c\uff1a\u6982\u5ff5<\/p>\n\n\n\n<p>\u4e3e\u4e2a\u4f8b\u5b50\uff0ccnblogs\u8fd9\u4e2a\u5b57\u7b26\u4e32\u4e2d\u5b50\u5e8f\u5217\u6709\u591a\u5c11\u4e2a\u5462\uff1f\u5f88\u663e\u7136\u67092<sup>7<\/sup>\u4e2a\uff0c\u6bd4\u5982\u5176\u4e2d\u7684cb,cgs\u7b49\u7b49\u90fd\u662f\u5176\u5b50\u5e8f\u5217\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u51fa<\/p>\n\n\n\n<p>\u5b50\u5e8f\u5217\u4e0d\u89c1\u5f97\u4e00\u5b9a\u662f\u8fde\u7eed\u7684\uff0c\u8fde\u7eed\u7684\u90a3\u662f\u5b50\u4e32\u3002<\/p>\n\n\n\n<p>\u6211\u60f3\u5927\u5bb6\u5df2\u7ecf\u4e86\u89e3\u4e86\u5b50\u5e8f\u5217\u7684\u6982\u5ff5\uff0c\u90a3\u73b0\u5728\u53ef\u4ee5\u5ef6\u4f38\u5230\u4e24\u4e2a\u5b57\u7b26\u4e32\u4e86\uff0c\u90a3\u4e48\u5927\u5bb6\u80fd\u591f\u770b\u51fa\uff1acnblogs\u548cbelong\u7684\u516c\u5171\u5b50\u5e8f\u5217\u5417\uff1f<\/p>\n\n\n\n<p>\u5728\u4f60\u627e\u51fa\u7684\u516c\u5171\u5b50\u5e8f\u5217\u4e2d\uff0c\u4f60\u80fd\u627e\u51fa\u6700\u957f\u7684\u516c\u5171\u5b50\u5e8f\u5217\u5417\uff1f<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/cnblogs.png\"><img loading=\"lazy\" decoding=\"async\" width=\"385\" height=\"142\" src=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/cnblogs.png\" alt=\"\" class=\"wp-image-9024\" srcset=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/cnblogs.png 385w, https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/cnblogs-300x111.png 300w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4ece\u56fe\u4e2d\u6211\u4eec\u770b\u5230\u4e86\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u4e3ablog\uff0c\u4ed4\u7ec6\u60f3\u60f3\u6211\u4eec\u53ef\u4ee5\u53d1\u73b0\u5176\u5b9e\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u7684\u4e2a\u6570\u4e0d\u662f\u552f\u4e00\u7684\uff0c\u53ef\u80fd\u4f1a\u6709\u4e24\u4e2a\u4ee5\u4e0a\uff0c<\/p>\n\n\n\n<p>\u4f46\u662f\u957f\u5ea6\u4e00\u5b9a\u662f\u552f\u4e00\u7684\uff0c\u6bd4\u5982\u8fd9\u91cc\u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u7684\u957f\u5ea6\u4e3a4\u3002<\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p>\u4e09\uff1a\u89e3\u51b3\u65b9\u6848<\/p>\n\n\n\n<p>&lt;1&gt; \u679a\u4e3e\u6cd5<\/p>\n\n\n\n<p>\u8fd9\u79cd\u65b9\u6cd5\u662f\u6700\u7b80\u5355\uff0c\u4e5f\u662f\u6700\u5bb9\u6613\u60f3\u5230\u7684\uff0c\u5f53\u7136\u65f6\u95f4\u590d\u6742\u5ea6\u4e5f\u662f\u9f9f\u901f\u7684\uff0c\u6211\u4eec\u53ef\u4ee5\u5206\u6790\u4e00\u4e0b\uff0c\u521a\u624d\u4e5f\u8bf4\u8fc7\u4e86cnblogs\u7684\u5b50\u5e8f\u5217<\/p>\n\n\n\n<p>\u4e2a\u6570\u67092<sup>7<\/sup>\u4e2a \uff0c\u5ef6\u4f38\u4e00\u4e0b\uff1a\u4e00\u4e2a\u957f\u5ea6\u4e3aN\u7684\u5b57\u7b26\u4e32\uff0c\u5176\u5b50\u5e8f\u5217\u67092<sup>N<\/sup>\u4e2a\uff0c\u6bcf\u4e2a\u5b50\u5e8f\u5217\u8981\u5728\u7b2c\u4e8c\u4e2a\u957f\u5ea6\u4e3aN\u7684\u5b57\u7b26\u4e32\u4e2d\u53bb\u5339\u914d\uff0c\u5339\u914d\u4e00\u6b21<\/p>\n\n\n\n<p>\u9700\u8981O(N)\u7684\u65f6\u95f4\uff0c\u603b\u5171\u4e5f\u5c31\u662fO(N*2<sup>N<\/sup>)\uff0c\u53ef\u4ee5\u770b\u51fa\uff0c\u65f6\u95f4\u590d\u6742\u5ea6\u4e3a\u6307\u6570\u7ea7\uff0c\u6050\u6016\u7684\u4ee4\u4eba\u7a92\u606f\u3002<\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p>&lt;2&gt; \u52a8\u6001\u89c4\u5212<\/p>\n\n\n\n<p>\u65e2\u7136\u662f\u7ecf\u5178\u7684\u9898\u76ee\u80af\u5b9a\u662f\u6709\u4f18\u5316\u7a7a\u95f4\u7684\uff0c\u5e76\u4e14\u89e3\u9898\u65b9\u5f0f\u662f\u6709\u56fa\u5b9a\u6d41\u7a0b\u7684\uff0c\u8fd9\u91cc\u6211\u4eec\u91c7\u7528\u7684\u662f\u77e9\u9635\u5b9e\u73b0\uff0c\u4e5f\u5c31\u662f\u4e8c\u7ef4\u6570\u7ec4\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e00\u6b65\uff1a\u5148\u8ba1\u7b97\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u7684\u957f\u5ea6\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e8c\u6b65\uff1a\u6839\u636e\u957f\u5ea6\uff0c\u7136\u540e\u901a\u8fc7\u56de\u6eaf\u6c42\u51fa\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u3002<\/p>\n\n\n\n<p>\u73b0\u6709\u4e24\u4e2a\u5e8f\u5217X={x<sub>1<\/sub>,x<sub>2<\/sub>,x<sub>3\uff0c<\/sub>&#8230;x<sub>i<\/sub>}\uff0cY={y<sub>1<\/sub>,y<sub>2<\/sub>,y<sub>3\uff0c<\/sub>&#8230;.\uff0cy<sub>i<\/sub>}\uff0c<\/p>\n\n\n\n<p>\u8bbe\u4e00\u4e2aC[i,j]: \u4fdd\u5b58X<sub>i<\/sub>\u4e0eY<sub>j<\/sub>\u7684LCS\u7684\u957f\u5ea6\u3002<\/p>\n\n\n\n<p>\u9012\u63a8\u65b9\u7a0b\u4e3a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/cx.png\"><img loading=\"lazy\" decoding=\"async\" width=\"874\" height=\"181\" src=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/cx.png\" alt=\"\" class=\"wp-image-9025\" srcset=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/cx.png 874w, https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/cx-300x62.png 300w, https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/cx-768x159.png 768w\" sizes=\"auto, (max-width: 874px) 100vw, 874px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4e0d\u77e5\u9053\u5927\u5bb6\u770b\u61c2\u4e86\u6ca1\uff1f\u52a8\u6001\u89c4\u5212\u7684\u4e00\u4e2a\u91cd\u8981\u6027\u8d28\u7279\u70b9\u5c31\u662f\u89e3\u51b3\u201c\u5b50\u95ee\u9898\u91cd\u53e0\u201d\u7684\u573a\u666f\uff0c\u53ef\u4ee5\u6709\u6548\u7684\u907f\u514d\u91cd\u590d\u8ba1\u7b97\uff0c\u6839\u636e\u4e0a\u9762\u7684<\/p>\n\n\n\n<p>\u516c\u5f0f\u5176\u5b9e\u53ef\u4ee5\u53d1\u73b0C[i,j]\u4e00\u76f4\u4fdd\u5b58\u7740\u5f53\u524d(X<sub>i,<\/sub>Y<sub>i<\/sub>)\u7684\u6700\u5927\u5b50\u5e8f\u5217\u957f\u5ea6\u3002<\/p>\n\n\n\n<div class=\"cnblogs_code\">\n<div class=\"cnblogs_code_toolbar\">&nbsp;<\/div>\n<pre> 1 using System;\n 2 namespace ConsoleApplication2\n 3 {\n 4     public class Program\n 5     {\n 6         static int[,] martix;\n 7 \n 8         static string str1 = \"cnblogs\";\n 9         static string str2 = \"belong\";\n10 \n11         static void Main(string[] args)\n12         {\n13             martix = new int[str1.Length + 1, str2.Length + 1];\n14 \n15             LCS(str1, str2);\n16 \n17             \/\/\u53ea\u8981\u62ff\u51fa\u77e9\u9635\u6700\u540e\u4e00\u4e2a\u4f4d\u7f6e\u7684\u6570\u5b57\u5373\u53ef\n18             Console.WriteLine(\"\u5f53\u524d\u6700\u5927\u516c\u5171\u5b50\u5e8f\u5217\u7684\u957f\u5ea6\u4e3a:{0}\", martix[str1.Length, str2.Length]);\n19 \n20             Console.Read();\n21         }\n22 \n23         static void LCS(string str1, string str2)\n24         {\n25             \/\/\u521d\u59cb\u5316\u8fb9\u754c\uff0c\u8fc7\u6ee4\u63890\u7684\u60c5\u51b5\n26             for (int i = 0; i &lt;= str1.Length; i++)\n27                 martix[i, 0] = 0;\n28 \n29             for (int j = 0; j &lt;= str2.Length; j++)\n30                 martix[0, j] = 0;\n31 \n32             \/\/\u586b\u5145\u77e9\u9635\n33             for (int i = 1; i &lt;= str1.Length; i++)\n34             {\n35                 for (int j = 1; j &lt;= str2.Length; j++)\n36                 {\n37                     \/\/\u76f8\u7b49\u7684\u60c5\u51b5\n38                     if (str1[i - 1] == str2[j - 1])\n39                     {\n40                         martix[i, j] = martix[i - 1, j - 1] + 1;\n41                     }\n42                     else\n43                     {\n44                         \/\/\u6bd4\u8f83\u201c\u5de6\u8fb9\u201d\u548c\u201c\u4e0a\u8fb9\u201c\uff0c\u6839\u636e\u5176max\u6765\u586b\u5145\n45                         if (martix[i - 1, j] &gt;= martix[i, j - 1])\n46                             martix[i, j] = martix[i - 1, j];\n47                         else\n48                             martix[i, j] = martix[i, j - 1];\n49                     }\n50                 }\n51             }\n52         }\n53     }\n54 }<\/pre>\n<div class=\"cnblogs_code_toolbar\">&nbsp;<\/div>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/pachong.png\"><img loading=\"lazy\" decoding=\"async\" width=\"306\" height=\"105\" src=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/pachong.png\" alt=\"\" class=\"wp-image-9026\" srcset=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/pachong.png 306w, https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/pachong-300x103.png 300w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u56fe\u5927\u5bb6\u53ef\u4ee5\u81ea\u5df1\u753b\u4e00\u753b\uff0c\u4ee3\u7801\u5b8c\u5168\u662f\u6839\u636e\u4e0a\u9762\u7684\u516c\u5f0f\u7167\u642c\u8fc7\u6765\u7684\uff0c\u957f\u5ea6\u7684\u95ee\u9898\u6211\u4eec\u5df2\u7ecf\u89e3\u51b3\u4e86\uff0c\u8fd9\u6b21\u8981\u89e3\u51b3\u8f93\u51fa\u6700\u957f\u5b50\u5e8f\u5217\u7684\u95ee\u9898\uff0c<\/p>\n\n\n\n<p>\u6211\u4eec\u91c7\u7528\u4e00\u4e2a\u6807\u8bb0\u51fd\u6570Flag[i,j]\uff0c\u5f53<\/p>\n\n\n\n<p>\u2460\uff1aC[i,j]=C[i-1,j-1]+1 &nbsp;\u65f6 \u6807\u8bb0Flag[i,j]=&#8221;left_up&#8221;; &nbsp; &nbsp;\uff08\u5de6\u4e0a\u65b9\u7bad\u5934\uff09<\/p>\n\n\n\n<p>\u2461\uff1aC[i-1,j]&gt;=C[i,j-1] &nbsp; \u65f6 \u6807\u8bb0Flag[i,j]=&#8221;left&#8221;; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\uff08\u5de6\u7bad\u5934\uff09<\/p>\n\n\n\n<p>\u2462: C[i-1,j]&lt;C[i,j-1] &nbsp; &nbsp; \u65f6 \u6807\u8bb0Flag[i,j]=&#8221;up&#8221;; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\uff08\u4e0a\u7bad\u5934\uff09<\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p>\u4f8b\u5982\uff1a\u6211\u8f93\u5165\u4e24\u4e2a\u5e8f\u5217X=acgbfhk\uff0cY=cegefkh\u3002<\/p>\n\n\n\n<div class=\"cnblogs_code\">\n<div class=\"cnblogs_code_toolbar\">&nbsp;<\/div>\n<pre> 1 using System;\n 2 \n 3 namespace ConsoleApplication2\n 4 {\n 5     public class Program\n 6     {\n 7         static int[,] martix;\n 8 \n 9         static string[,] flag;\n10 \n11         static string str1 = \"acgbfhk\";\n12 \n13         static string str2 = \"cegefkh\";\n14 \n15         static void Main(string[] args)\n16         {\n17             martix = new int[str1.Length + 1, str2.Length + 1];\n18 \n19             flag = new string[str1.Length + 1, str2.Length + 1];\n20 \n21             LCS(str1, str2);\n22 \n23             \/\/\u6253\u5370\u5b50\u5e8f\u5217\n24             SubSequence(str1.Length, str2.Length);\n25 \n26             Console.Read();\n27         }\n28 \n29         static void LCS(string str1, string str2)\n30         {\n31             \/\/\u521d\u59cb\u5316\u8fb9\u754c\uff0c\u8fc7\u6ee4\u63890\u7684\u60c5\u51b5\n32             for (int i = 0; i &lt;= str1.Length; i++)\n33                 martix[i, 0] = 0;\n34 \n35             for (int j = 0; j &lt;= str2.Length; j++)\n36                 martix[0, j] = 0;\n37 \n38             \/\/\u586b\u5145\u77e9\u9635\n39             for (int i = 1; i &lt;= str1.Length; i++)\n40             {\n41                 for (int j = 1; j &lt;= str2.Length; j++)\n42                 {\n43                     \/\/\u76f8\u7b49\u7684\u60c5\u51b5\n44                     if (str1[i - 1] == str2[j - 1])\n45                     {\n46                         martix[i, j] = martix[i - 1, j - 1] + 1;\n47                         flag[i, j] = \"left_up\";\n48                     }\n49                     else\n50                     {\n51                         \/\/\u6bd4\u8f83\u201c\u5de6\u8fb9\u201d\u548c\u201c\u4e0a\u8fb9\u201c\uff0c\u6839\u636e\u5176max\u6765\u586b\u5145\n52                         if (martix[i - 1, j] &gt;= martix[i, j - 1])\n53                         {\n54                             martix[i, j] = martix[i - 1, j];\n55                             flag[i, j] = \"left\";\n56                         }\n57                         else\n58                         {\n59                             martix[i, j] = martix[i, j - 1];\n60                             flag[i, j] = \"up\";\n61                         }\n62                     }\n63                 }\n64             }\n65         }\n66 \n67         static void SubSequence(int i, int j)\n68         {\n69             if (i == 0 || j == 0)\n70                 return;\n71 \n72             if (flag[i, j] == \"left_up\")\n73             {\n74                 Console.WriteLine(\"{0}: \u5f53\u524d\u5750\u6807:\uff08{1},{2}\uff09\", str2[j - 1], i - 1, j - 1);\n75 \n76                 \/\/\u5de6\u524d\u65b9\n77                 SubSequence(i - 1, j - 1);\n78             }\n79             else\n80             {\n81                 if (flag[i, j] == \"up\")\n82                 {\n83                     SubSequence(i, j - 1);\n84                 }\n85                 else\n86                 {\n87                     SubSequence(i - 1, j);\n88                 }\n89             }\n90         }\n91     }\n92 }<\/pre>\n<div class=\"cnblogs_code_toolbar\">&nbsp;<\/div>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/zb.png\"><img loading=\"lazy\" decoding=\"async\" width=\"204\" height=\"119\" src=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/zb.png\" alt=\"\" class=\"wp-image-9027\"\/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u7531\u4e8e\u76f4\u63a5\u7ed8\u56fe\u5f88\u9ebb\u70e6\uff0c\u563f\u563f\uff0c\u6211\u5c31\u7528\u624b\u673a\u62cd\u4e86\u5f20\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/huitu.png\"><img loading=\"lazy\" decoding=\"async\" width=\"733\" height=\"608\" src=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/huitu.png\" alt=\"\" class=\"wp-image-9028\" srcset=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/huitu.png 733w, https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/huitu-300x249.png 300w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u597d\uff0c\u6211\u4eec\u518d\u8f93\u5165\u4e24\u4e2a\u5b57\u7b26\u4e32\uff1a<\/p>\n\n\n\n<div class=\"cnblogs_code\">\n<pre>1         static string str1 = \"abcbdab\";\n2 \n3         static string str2 = \"bdcaba\";<\/pre>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/ca.png\"><img loading=\"lazy\" decoding=\"async\" width=\"203\" height=\"122\" src=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/ca.png\" alt=\"\" class=\"wp-image-9029\"\/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/55.png\"><img loading=\"lazy\" decoding=\"async\" width=\"780\" height=\"501\" src=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/55.png\" alt=\"\" class=\"wp-image-9030\" srcset=\"https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/55.png 780w, https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/55-300x193.png 300w, https:\/\/cn.hostease.com\/xueyuan\/wp-content\/uploads\/2017\/01\/55-768x493.png 768w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u901a\u8fc7\u4e0a\u9762\u7684\u4e24\u5f20\u56fe\uff0c\u6211\u4eec\u6765\u5206\u6790\u4e0b\u5b83\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u548c\u7a7a\u95f4\u590d\u6742\u5ea6\u3002<\/p>\n\n\n\n<p>\u65f6\u95f4\u590d\u6742\u5ea6\uff1a\u6784\u5efa\u77e9\u9635\u6211\u4eec\u82b1\u8d39\u4e86O(MN)\u7684\u65f6\u95f4\uff0c\u56de\u6eaf\u65f6\u6211\u4eec\u82b1\u8d39\u4e86O\uff08M+N)\u7684\u65f6\u95f4\uff0c\u4e24\u8005\u76f8\u52a0\u6700\u7ec8\u6211\u4eec\u82b1\u8d39\u4e86O(MN)\u7684\u65f6\u95f4\u3002<\/p>\n\n\n\n<p>\u7a7a\u95f4\u590d\u6742\u5ea6\uff1a\u6784\u5efa\u77e9\u9635\u6211\u4eec\u82b1\u8d39\u4e86O(MN)\u7684\u7a7a\u95f4\uff0c\u6807\u8bb0\u51fd\u6570\u4e5f\u82b1\u8d39\u4e86O(MN)\u7684\u7a7a\u95f4\uff0c\u4e24\u8005\u76f8\u52a0\u6700\u7ec8\u6211\u4eec\u82b1\u8d39\u4e86O(MN)\u7684\u7a7a\u95f4\u3002<\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\uff1a \u4f5c\u7528 \u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u7684\u95ee\u9898\u5e38\u7528\u4e8e\u89e3\u51b3\u5b57\u7b26\u4e32\u7684\u76f8\u4f3c\u5ea6\uff0c\u662f\u4e00\u4e2a\u975e\u5e38\u5b9e\u7528\u7684\u7b97\u6cd5\uff0c\u4f5c\u4e3a\u7801\u519c\uff0c\u6b64\u7b97\u6cd5\u662f\u6211\u4eec\u7684\u5fc5\u5907\u57fa &#8230; <a title=\"\u7ecf\u5178\u7b97\u6cd5\u9898\u6bcf\u65e5\u6f14\u7ec3\u2014\u2014\u7b2c\u56db\u9898 \u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\" class=\"read-more\" href=\"https:\/\/cn.hostease.com\/xueyuan\/jishu\/%e7%bb%8f%e5%85%b8%e7%ae%97%e6%b3%95%e9%a2%98%e6%af%8f%e6%97%a5%e6%bc%94%e7%bb%83-%e7%ac%ac%e5%9b%9b%e9%a2%98-%e6%9c%80%e9%95%bf%e5%85%ac%e5%85%b1%e5%ad%90%e5%ba%8f%e5%88%97\/\" aria-label=\"\u9605\u8bfb \u7ecf\u5178\u7b97\u6cd5\u9898\u6bcf\u65e5\u6f14\u7ec3\u2014\u2014\u7b2c\u56db\u9898 \u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1706","post","type-post","status-publish","format-standard","hentry","category-jishu"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/1706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/comments?post=1706"}],"version-history":[{"count":2,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/1706\/revisions"}],"predecessor-version":[{"id":9031,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/1706\/revisions\/9031"}],"wp:attachment":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/media?parent=1706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/categories?post=1706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/tags?post=1706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}