{"id":370,"date":"2023-05-02T11:20:12","date_gmt":"2023-05-02T03:20:12","guid":{"rendered":"https:\/\/blog.taiyang.space\/?p=370"},"modified":"2023-05-02T11:20:13","modified_gmt":"2023-05-02T03:20:13","slug":"%e7%ac%ac4%e7%ab%a0-%e4%b8%b2%e3%80%81%e6%95%b0%e7%bb%84%e5%92%8c%e5%b9%bf%e4%b9%89%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/blog.taiyang.space\/?p=370","title":{"rendered":"\u7b2c4\u7ae0-\u4e32\u3001\u6570\u7ec4\u548c\u5e7f\u4e49\u8868"},"content":{"rendered":"<h2>4.1 \u4e32<\/h2>\n<h3>4.1.1 \u5b9a\u4e49<\/h3>\n<p>\u4e32(string)\uff1a\u7531\u96f6\u4e2a\u6216\u4efb\u610f<strong>\u5b57\u7b26\u7ec4\u6210\u7684\u6709\u9650\u6570\u5217<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439177.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>\u5b50\u4e32\uff1a\u4e32\u4e2d\u4efb\u610f\u8fde\u7eed\u5b57\u7b26\u7ec4\u6210\u7684\u5b50\u5e8f\u5217\uff08\u542b\u7a7a\u4e32\uff09\u79f0\u4e3a\u8be5\u4e32\u7684<strong>\u5b50\u4e32<\/strong><\/p>\n<p>\u771f\u5b50\u4e32\uff1a\u4e0d\u5305\u542b\u81ea\u8eab\u7684\u6240\u6709\u5b50\u4e32<\/p>\n<p>\u4e3b\u4e32\uff1a\u5305\u542b\u5b50\u4e32\u7684\u4e32\u76f8\u5e94\u5730\u79f0\u4e3a<strong>\u4e3b\u4e32<\/strong><\/p>\n<p>\u5b57\u7b26\u4f4d\u7f6e\uff1a\u5b57\u7b26\u5728<strong>\u5e8f\u5217\u4e2d\u7684\u5e8f\u53f7<\/strong>\u4e3a\u8be5\u5b57\u7b26\u5728\u4e32\u4e2d\u7684\u4f4d\u7f6e<\/p>\n<p>\u5b50\u4e32\u4f4d\u7f6e\uff1a\u5b50\u4e32\u7b2c\u4e00\u4e2a\u5b57\u7b26\u5728\u4e3b\u4e32\u4e2d\u7684\u4f4d\u7f6e<\/p>\n<p>\u7a7a\u683c\u4e32\uff1a\u7531\u4e00\u4e2a\u6216\u591a\u4e2a\u7a7a\u683c\u7ec4\u6210\u7684\u4e32\uff0c<strong>\u4e0e\u7a7a\u4e32\u4e0d\u540c<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u4e32\u76f8\u7b49\uff1a\u5f53\u4e14\u4ec5\u5f53\u4e24\u4e2a\u4e32\u7684\u957f\u5ea6\u76f8\u7b49\u5e76\u4e14\u5404\u4e2a\u5bf9\u5e94\u4f4d\u7f6e\u4e0a\u7684\u5b57\u7b26\u90fd\u76f8\u540c\uff0c\u8fd9\u4e24\u4e2a\u4e32\u624d\u662f\u76f8\u7b49\u7684<\/p>\n<p>\u5982\uff1a\u201cabcd\u201d\u2260 \u201cabc\u201d<\/p>\n<p>\u6240\u6709\u7a7a\u4e32\u662f\u76f8\u7b49\u7684<\/p>\n<p>&nbsp;<\/p>\n<h3>4.1.2 \u6848\u4f8b\u5f15\u5165<\/h3>\n<p>\u4e32\u7684\u5f15\u7528\u975e\u5e38\u5e7f\u6cdb\uff0c\u8ba1\u7b97\u673a\u4e0a\u7684\u975e\u6570\u503c\u5904\u7406\u7684\u5bf9\u8c61\u5927\u90e8\u5206\u662f\u5b57\u7b26\u4e32\u6570\u636e\uff0c\u4f8b\u5982\uff1a\u6587\u5b57\u7f16\u8f91\u3001\u7b26\u53f7\u5904\u7406\u3001\u5404\u79cd\u4fe1\u606f\u5904\u7406\u7cfb\u7edf\u7b49\u7b49<\/p>\n<p>&nbsp;<\/p>\n<p>\u75c5\u6bd2\u611f\u67d3\u68c0\u6d4b<\/p>\n<ul>\n<li>\u7814\u7a76\u8005\u5c06\u4eba\u7684DNA\u548c\u75c5\u6bd2\u7684DNA\u5747\u8868\u793a\u6210\u4e00\u4e9b\u5b57\u6bcd\u7ec4\u6210\u7684\u5b57\u7b26\u4e32\u5e8f\u5217<\/li>\n<li>\u7136\u540e\u68c0\u6d4b\u67d0\u79cd\u75c5\u6bd2DNA\u5e8f\u5217\u662f\u5426\u5728\u60a3\u8005\u7684DNA\u5e8f\u5217\u4e2d\u51fa\u73b0\u8fc7\uff0c\u5982\u679c\u51fa\u73b0\u8fc7\uff0c\u5219\u6b64\u4eba\u611f\u67d3\u4e86\u8be5\u75c5\u6bd2\uff0c\u5426\u5219\u6ca1\u6709\u611f\u67d3<\/li>\n<li>\u4f8b\u5982\uff1a\u5047\u8bbe\u75c5\u6bd2\u7684DNA\u5e8f\u5217\u4e3abaa\uff0c\u60a3\u80051\u7684DNA\u5e8f\u5217\u4e3aaaabbba\uff0c\u5219\u611f\u67d3\uff1b\u60a3\u80052\u7684DNA\u5e8f\u5217\u4e3ababbaa\uff0c\u5219\u672a\u611f\u67d3<\/li>\n<\/ul>\n<p>\uff08\u6ce8\u610f\uff0c\u4eba\u7684DNA\u5e8f\u5217\u662f\u7ebf\u6027\u7684\uff0c\u800c\u75c5\u6bd2\u7684DNA\u5e8f\u5217\u662f\u73af\u72b6\u7684\uff09<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439180.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h3>4.1.3 \u7c7b\u578b\u5b9a\u4e49\u3001\u5b58\u50a8\u7ed3\u6784\u53ca\u5176\u8fd0\u7b97<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439181.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h4>\u987a\u5e8f\u5b58\u50a8<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">#define MAXSTRINGSIZE 255\n\ntypedef struct {\n\tchar ch[MAXSTRINGSIZE + 1];\t\t\/\/ \u5b58\u50a8\u4e32\u7684\u4e00\u7ef4\u6570\u7ec4\n\tint length;\t\t\t\t\t\t\/\/ \u4e32\u7684\u5f53\u524d\u957f\u5ea6\n}mystring;\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u94fe\u5f0f\u5b58\u50a8<\/h4>\n<p>\u94fe\u5f0f\u5b58\u50a8\u7ed3\u6784\u548c\u94fe\u8868\u4e00\u6837<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439185.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u4e0b\u9762\u8fd9\u79cd\u7ed3\u6784\u79f0\u4e3a\uff1a\u5757\u94fe\u7ed3\u6784<\/p>\n<pre><code class=\"language-cpp\" lang=\"cpp\">#define MAXBLOCKLINKSTRINGSIZE 80\n\ntypedef struct BlockLinkString {\n\tchar ch[MAXBLOCKLINKSTRINGSIZE];\t\t\/\/ \u5b58\u50a8\u4e32\u7684\u4e00\u7ef4\u6570\u7ec4\n\tstruct BlockLinkString* next;\t\t\t\/\/ \u6307\u5411\u4e0b\u4e00\u4e2a\u5757\u7684\u6307\u9488\n}Block;\n\n\ntypedef struct {\n\tBlock* head;\t\t\/\/ \u6307\u5411\u4e32\u7684\u5934\u5757\n\tBlock* tail;\t\t\/\/ \u6307\u5411\u4e32\u7684\u5c3e\u5757\n\tint length;\t\t\t\/\/ \u4e32\u7684\u5f53\u524d\u957f\u5ea6\n}blockLinkString;\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u6a21\u5f0f\u5339\u914d\u7b97\u6cd5<\/h4>\n<p>\u7b97\u6cd5\u76ee\u7684\uff1a\u786e\u5b9a<strong>\u4e3b\u4e32<\/strong>\u4e2d\u6240\u542b<strong>\u5b50\u4e32<\/strong>\uff08<strong>\u6a21\u5f0f\u4e32<\/strong>\uff09\u7b2c\u4e00\u6b21\u51fa\u73b0\u7684\u4f4d\u7f6e\uff08\u5b9a\u4f4d\uff09<\/p>\n<p>\u7b97\u6cd5\u5e94\u7528\uff1a\u641c\u7d22\u5f15\u64ce\u3001\u62fc\u5199\u68c0\u67e5\u3001\u8bed\u8a00\u7ffb\u8bd1\u3001\u6570\u636e\u538b\u7f29<\/p>\n<p>\u7b97\u6cd5\u79cd\u7c7b\uff1a<\/p>\n<ul>\n<li>BF(Brute-Force)\uff0c\u53c8\u79f0\u53e4\u5178\u7684\u3001\u7ecf\u5178\u7684\u3001\u6734\u7d20\u7684\u3001\u7a77\u4e3e\u7684<\/li>\n<li>KMP\u7b97\u6cd5\uff08\u7279\u70b9\uff1a\u901f\u5ea6\u5feb\uff09<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439187.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p><strong>BF\u7b97\u6cd5<\/strong><\/p>\n<p>\u7b97\u6cd5\u601d\u8def\uff1a<\/p>\n<ol start=\"\">\n<li>\u5c06\u4e3b\u4e32\u7684\u7b2cpos\u4e2a\u5b57\u7b26\u548c\u6a21\u5f0f\u4e32\u7684\u7b2c\u4e00\u4e2a\u5b57\u7b26\u6bd4\u8f83\n<ol>\n<li>\u82e5\u76f8\u7b49\uff0c\u7ee7\u7eed\u9010\u4e2a\u6bd4\u8f83\u540e\u7eed\u5b57\u7b26<\/li>\n<li>\u82e5\u4e0d\u7b49\uff0c\u4ece\u4e3b\u4e32\u7684\u4e0b\u4e00\u4e2a\u5b57\u7b26\u8d77\uff0c\u91cd\u65b0\u4e0e\u6a21\u5f0f\u4e32\u7684\u7b2c\u4e00\u4e2a\u5b57\u7b26\u6bd4\u8f83<\/li>\n<\/ol>\n<\/li>\n<li>\u76f4\u5230\u4e3b\u4e32\u7684\u4e00\u4e2a\u8fde\u7eed\u5b50\u4e32\u5b57\u7b26\u5e8f\u5217\u4e0e\u6a21\u5f0f\u4e32\u76f8\u7b49\u3002\u8fd4\u56de\u503c\u4e0eS\u4e2dT\u5339\u914d\u7684\u5b50\u5e8f\u5217\u7b2c\u4e00\u4e2a\u5b57\u7b26\u7684\u5e8f\u53f7\uff0c\u5373\u5339\u914d\u6210\u529f\u3002<\/li>\n<li>\u5426\u5219\uff0c\u5339\u914d\u5931\u8d25\uff0c\u8fd4\u56de\u503c 0<\/li>\n<\/ol>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1aBF\u7b97\u6cd5\n * @param\uff1aS\t\u4e3b\u4e32\n * @param\uff1aT\t\u5b50\u4e32\n * @param\uff1apos\t\u5f00\u59cb\u4f4d\u7f6e\n * @return\uff1a\t\u5339\u914d\u6210\u529f\u8fd4\u56de1\uff1b\u5426\u5219\u8fd4\u56de0\n *\/\nint index_BF(mystring S, mystring T, int pos)\n{\n\tint i = pos;\n\tint j = 1;\n\twhile (i &lt;= S.length &amp;&amp; j &lt;= T.length)\n\t{\n\t\tif (S.ch[i] == T.ch[j]){\n\t\t\t++i;\n\t\t\t++j;\n\t\t}\n\t\telse{\n\t\t\ti = i - j + 2;\t\/\/ \u56de\u6eaf\n\t\t\tj = 1;\n\t\t}\n\t}\n\tif (j &gt; T.length)\t\/\/ \u5339\u914d\u6210\u529f\n\t\treturn i - T.length;\n\telse\n\t\treturn 0;\n}\n<\/code><\/pre>\n<p>\u65f6\u95f4\u590d\u6742\u5ea6\uff1aO(n*m)<\/p>\n<p>&nbsp;<\/p>\n<p><strong>KMP\u7b97\u6cd5<\/strong><\/p>\n<p>\u5229\u7528\u5df2\u7ecf\u90e8\u5206\u5339\u914d\u7684\u7ed3\u679c\u800c\u52a0\u5feb\u6a21\u5f0f\u4e32\u7684\u6ed1\u52a8\u901f\u5ea6\uff0c\u4e14\u4e3b\u4e32S\u7684\u6307\u9488I\u4e0d\u5fc5\u56de\u6eaf\uff0c\u53ef\u63d0\u901f\u5230O(n+m)<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439189.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u56e0\u6b64\u9700\u8981\u4e00\u4e2anext[j]\u6570\u7ec4\uff0c\u8868\u660e\u5f53\u6a21\u5f0f\u4e2d\u7b2cj\u4e2a\u5b57\u7b26\u4e0e\u4e3b\u4e32\u4e2d\u76f8\u5e94\u5b57\u7b26\u201c\u5931\u8d25\u201d\u65f6\uff0c\u5728\u6a21\u5f0f\u4e2d\u9700\u8981\u91cd\u65b0\u548c\u4e3b\u4e32\u4e2d\u8be5\u5b57\u7b26\u8fdb\u884c\u6bd4\u8f83\u7684\u5b57\u7b26\u7684\u4f4d\u7f6e<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439494.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439986.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>next\u51fd\u6570\u7684\u6539\u8fdb<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439988.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439998.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u6784\u9020next\u6570\u7ec4\n * @param\uff1aT\t\u6a21\u5f0f\u4e32\n * @param\uff1anext\n *\/\nstatic void get_next(mystring T, int next[])\n{\n\tint i = 1;\n\tint j = 0;\n\tnext[1] = 0;\n\twhile (i &lt; T.length)\n\t{\n\t\tif (j == 0 || T.ch[i] == T.ch[j])\n\t\t{\n\t\t\t++i;\n\t\t\t++j;\n\t\t\tif (T.ch[i] != T.ch[j])\n\t\t\t\tnext[i] = j;\n\t\t\telse\n\t\t\t\tnext[i] = next[j];\n\t\t}\n\t\telse\n\t\t\tj = next[j];\n\t}\n}\n\n\n\n\n\n\/*******************************************************************************************************************************\n * @description\uff1aKMP\u7b97\u6cd5\n * @param\uff1aS\t\u4e3b\u4e32\n * @param\uff1aT\t\u6a21\u5f0f\u4e32\n * @param\uff1apos\t\u5f00\u59cb\u4f4d\u7f6e\n * @return\uff1a\n *\/\nint index_KMP(mystring S, mystring T, int pos)\n{\n\tint i = pos;\n\tint j = 1;\n\tint next[255];\n\tget_next(T, next);\n\twhile (i &lt;= S.length &amp;&amp; j &lt;= T.length)\n\t{\n\t\tif (j == 0 || S.ch[i] == T.ch[j]) {\n\t\t\t++i;\n\t\t\t++j;\n\t\t}\n\t\telse\n\t\t\tj = next[j];\n\t}\n\tif (j &gt; T.length)\n\t\treturn i - T.length;\n\telse\n\t\treturn 0;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u6d4b\u8bd5\u4ee3\u7801<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">void StringMain()\n{\n\tmystring S = { ' ', 'a','a','a','b','a','a','a','a','b' };\t\t\/\/ \u4e3b\u4e32\uff0c\u7b2c\u4e00\u4e2a\u4f4d\u7f6e\u4e0d\u7528\n\tS.length = 9;\n\tmystring T = { ' ','a','a','a','a' };\t\t\t\t\t\t\t\/\/ \u6a21\u5f0f\u4e32\uff0c\u7b2c\u4e00\u4e2a\u4f4d\u7f6e\u4e0d\u7528\n\tT.length = 4;\n\tprintf(\"\u4e3b\u4e32\uff1a\");\n\tprintString(S);\n\tprintf(\"\\n\u6a21\u5f0f\u4e32\uff1a\");\n\tprintString(T);\n\n\t\/\/ \u6d4b\u8bd5BF\u7b97\u6cd5\n\tint pos = index_BF(S, T, 1);\n\tif (pos)\n\t\tprintf(\"\\nBF\u7b97\u6cd5\uff1a\u5339\u914d\u6210\u529f\uff0c\u4f4d\u7f6e\u4e3a\uff1a%d\\n\\n\", pos);\n\telse\n\t\tprintf(\"\\nBF\u7b97\u6cd5\uff1a\u5339\u914d\u5931\u8d25\\n\\n\");\n\n\t\/\/ \u6d4b\u8bd5KMP\u7b97\u6cd5\n\tpos = index_KMP(S, T, 1);\n\tif (pos)\n\t\tprintf(\"\\nKMP\u7b97\u6cd5\uff1a\u5339\u914d\u6210\u529f\uff0c\u4f4d\u7f6e\u4e3a\uff1a%d\\n\", pos);\n\telse\n\t\tprintf(\"\\nKMP\u7b97\u6cd5\uff1a\u5339\u914d\u5931\u8d25\\n\");\n\n}\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439993.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h2>4.2 \u6570\u7ec4<\/h2>\n<p>\u6570\u7ec4\uff1a\u6309\u4e00\u5b9a\u683c\u5f0f\u6392\u5217\u8d77\u6765\u7684\u5177\u6709\u76f8\u540c\u7c7b\u578b\u7684\u6570\u636e\u5143\u7d20\u7684\u96c6\u5408<\/p>\n<p>\u4e00\u7ef4\u6570\u7ec4\uff1a\u82e5\u7ebf\u6027\u8868\u4e2d\u7684\u6570\u636e\u5143\u7d20\u4e3a\u975e\u7ed3\u6784\u7684\u7b80\u5355\u5143\u7d20\uff0c\u5219\u79f0\u4e3a\u4e00\u7ef4\u6570\u7ec4<\/p>\n<p>\u4e00\u7ef4\u6570\u7ec4\u7684\u903b\u8f91\u7ed3\u6784\uff1a\u7ebf\u6027\u7ed3\u6784\u3002\u5b9a\u957f\u7684\u7ebf\u6027\u8868<\/p>\n<p>\u58f0\u660e\u683c\u5f0f\uff1a\u6570\u636e\u7c7b\u578b  \u53d8\u91cf\u540d\u79f0[\u957f\u5ea6];<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e8c\u7ef4\u6570\u7ec4\uff1a\u82e5\u4e00\u7ef4\u6570\u7ec4\u4e2d\u7684\u6570\u636e\u5143\u7d20\u53c8\u662f\u4e00\u7ef4\u6570\u7ec4\u7ed3\u6784\uff0c\u5219\u79f0\u4e3a\u4e8c\u7ef4\u6570\u7ec4\u3002<\/p>\n<p>\u4e8c\u7ef4\u6570\u7ec4\u7684\u903b\u8f91\u7ed3\u6784\uff1a<\/p>\n<ul>\n<li>\u975e\u7ebf\u6027\u7ed3\u6784\uff1a\u6bcf\u4e00\u4e2a\u6570\u636e\u5143\u7d20\u5373\u5728\u4e00\u4e2a\u884c\u8868\u4e2d\uff0c\u53c8\u5728\u4e00\u4e2a\u5217\u8868\u4e2d<\/li>\n<li>\u7ebf\u6027\u7ed3\u6784\uff1a\u8be5\u7ebf\u6027\u8868\u7684\u6bcf\u4e2a\u6570\u636e\u5143\u7d20\u4e5f\u662f\u4e00\u4e2a\u5b9a\u957f\u7684\u7ebf\u6027\u8868<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u6570\u7ec4\u7279\u70b9\uff1a\u7ed3\u6784\u56fa\u5b9a-\u5b9a\u4e49\u540e\uff0c\u7ef4\u6570\u548c\u7ef4\u754c\u4e0d\u518d\u6539\u53d8<\/p>\n<p>\u6570\u7ec4\u57fa\u672c\u64cd\u4f5c\uff1a\u9664\u4e86\u7ed3\u6784\u7684\u521d\u59cb\u5316\u548c\u9500\u6bc1\u4e4b\u5916\uff0c\u53ea\u6709\u53d6\u5143\u7d20\u548c\u4fee\u6539\u5143\u7d20\u503c\u7684\u64cd\u4f5c<\/p>\n<p>&nbsp;<\/p>\n<h3>4.2.1 \u62bd\u8c61\u6570\u636e\u7c7b\u578b\u5b9a\u4e49<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439994.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>\u4e8c\u7ef4\u6570\u7ec4\u5b58\u50a8\u65b9\u5f0f\uff1a<\/p>\n<ul>\n<li>\u4ee5\u884c\u5e8f\u4e3a\u4e3b\u5e8f\uff1aC\u3001PASCAL\u3001JAVA\u3001Basic<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439002.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439133.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u4ee5\u5217\u5e8f\u4e3a\u4e3b\u5e8f\uff1aFORTRAN<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439187.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h3>4.2.2 \u7279\u6b8a\u77e9\u9635\u7684\u538b\u7f29\u5b58\u50a8<\/h3>\n<p>\u4ec0\u4e48\u65f6\u538b\u7f29\u5b58\u50a8\uff1f<\/p>\n<p>\u4e3a\u591a\u4e2a\u76f8\u540c\u7684\u975e\u96f6\u5143\u7d20\u53ea\u5206\u914d\u4e00\u4e2a\u5b58\u50a8\u7a7a\u95f4\uff1b\u5bf9\u96f6\u5143\u7d20\u4e0d\u5206\u914d\u7a7a\u95f4<\/p>\n<p>\u4ec0\u4e48\u6837\u7684\u77e9\u9635\u80fd\u591f\u538b\u7f29\uff1f<\/p>\n<p>\u4e00\u4e9b\u7279\u6b8a\u77e9\u9635\uff1a\u5bf9\u79f0\u77e9\u9635\uff0c\u5bf9\u89d2\u77e9\u9635\uff0c\u4e09\u89d2\u77e9\u9635\uff0c\u7a00\u758f\u77e9\u9635\u7b49<\/p>\n<p>\u4ec0\u4e48\u53eb\u7a00\u758f\u77e9\u9635\uff1f<\/p>\n<p>\u77e9\u9635\u4e2d\u975e\u96f6\u5143\u7d20\u7684\u4e2a\u6570\u8f83\u5c11\uff08\u4e00\u822c\u5c0f\u4e8e5%\uff09<\/p>\n<p>&nbsp;<\/p>\n<h4>\u5bf9\u79f0\u77e9\u9635<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439578.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439580.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h4>\u4e09\u89d2\u77e9\u9635<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439584.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h4>\u5bf9\u89d2\u77e9\u9635<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439588.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h4>\u7a00\u758f\u77e9\u9635<\/h4>\n<p><strong>\u4e09\u5143\u7ec4<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439404.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439406.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u5341\u5b57\u94fe\u8868<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439410.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439414.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h2>4.3 \u5e7f\u4e49\u8868<\/h2>\n<h3>4.3.1 \u5b9a\u4e49<\/h3>\n<p>\u5e7f\u4e49\u8868\uff08\u53c8\u79f0\u5217\u8868Lists\uff09\u662fn\u22650\u4e2a\u5143\u7d20 a0\uff0ca1\uff0c&#8230; \uff0ca(n-1)\u7684\u6709\u9650\u5e8f\u5217\uff0c\u5176\u4e2d\u6bcf\u4e00\u4e2aai\u6216\u8005\u662f\u539f\u5b50\uff0c\u6216\u8005\u662f\u4e00\u4e2a\u5e7f\u4e49\u8868<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439425.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439430.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>\u5e7f\u4e49\u8868\u7684\u6027\u8d28\uff1a<\/p>\n<ol start=\"\">\n<li>\u5e7f\u4e49\u8868\u4e2d\u7684\u6570\u636e\u5143\u7d20\u6709\u76f8\u5bf9<strong>\u6b21\u5e8f<\/strong>\uff1b<strong>\u4e00\u4e2a\u76f4\u63a5\u524d\u9a71\u548c\u4e00\u4e2a\u76f4\u63a5\u540e\u7ee7<\/strong><\/li>\n<li>\u5e7f\u4e49\u8868\u7684<strong>\u957f\u5ea6<\/strong>\u5b9a\u4e49\u4e3a<strong>\u6700\u5916\u5c42<\/strong>\u6240\u5305\u542b\u5143\u7d20\u7684\u4e2a\u6570\uff1b\u5982\uff1aC = (a\uff0c(b, c))\u662f\u957f\u5ea6\u4e3a2\u7684\u5e7f\u4e49\u8868<\/li>\n<li>\u5e7f\u4e49\u8868\u7684<strong>\u6df1\u5ea6<\/strong>\u5b9a\u4e49\u4e3a\u8be5\u5e7f\u4e49\u8868\u5c55\u5f00\u540e\u6240\u542b\u62ec\u53f7\u7684\u91cd\u6570\uff1bA = (b, c)\u7684\u6df1\u5ea6\u4e3a1\uff0cB = (A, b)\u7684\u6df1\u5ea6\u4e3a2\uff0cC = (f, B, h)\u7684\u6df1\u5ea6\u4e3a3\t\t\u6ce8\u610f\uff1a\u201c\u539f\u5b50\u201d\u7684\u6df1\u5ea6\u4e3a 0\uff1b\u201c\u7a7a\u8868\u201d\u7684\u6df1\u5ea6\u4e3a 1<\/li>\n<li>\u5e7f\u4e49\u8868\u53ef\u4ee5\u4e3a\u5176\u5b83\u5e7f\u4e49\u8868<strong>\u5171\u4eab<\/strong>\uff1b\u5982\uff1a\u5e7f\u4e49\u8868B\u5c31\u5171\u4eab\u8868A\u3002\u5728B\u4e2d\u4e0d\u5fc5\u5217\u51faA\u7684\u503c\uff0c\u800c\u662f\u901a\u8fc7\u540d\u79f0\u6765\u5f15\u7528\uff0cB = \uff08A\uff09<\/li>\n<li>\u5e7f\u4e49\u8868\u53ef\u4ee5\u662f\u4e00\u4e2a<strong>\u9012\u5f52<\/strong>\u7684\u8868\uff0c\u5982 F = (a, F=(a, (a, (a, &#8230;))))\t\u6ce8\u610f\uff1a\u9012\u5f52\u8868\u7684\u6df1\u5ea6\u662f\u65e0\u7a77\u503c\uff0c\u957f\u5ea6\u662f\u6709\u9650\u503c<\/li>\n<li>\u5e7f\u4e49\u8868\u662f\u591a\u5c42\u6b21\u7ed3\u6784\uff0c\u5e7f\u4e49\u8868\u7684\u5143\u7d20\u53ef\u4ee5\u662f\u5355\u5143\u7d20\uff0c\u4e5f\u53ef\u4ee5\u662f\u5b50\u8868\uff0c\u800c\u5b50\u8868\u7684\u5143\u7d20\u8fd8\u53ef\u4ee5\u662f\u5b50\u8868<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439690.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h3>4.3.2 \u57fa\u672c\u8fd0\u7b97<\/h3>\n<ol start=\"\">\n<li>\u6c42\u8868\u5934GetHead(L)\uff1a\u975e\u7a7a\u5e7f\u4e49\u8868\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\uff0c\u53ef\u4ee5\u662f\u4e00\u4e2a\u539f\u5b50\u4e5f\u53ef\u4ee5\u662f\u4e00\u4e2a\u5b50\u8868<\/li>\n<li>\u6c42\u8868\u5c3eGetTail(L)\uff1a\u975e\u7a7a\u5e7f\u4e49\u8868\u9664\u53bb\u8868\u5934\u5143\u7d20\u4ee5\u5916\u5176\u5b83\u5143\u7d20\u6240\u6784\u6210\u7684\u8868\u3002\u8868\u5c3e\u4e00\u5b9a\u662f\u4e00\u4e2a\u8868<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251439694.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h2>4.4 \u5199\u5728\u6700\u540e<\/h2>\n<p>\u5b8c\u6574\u4ee3\u7801\uff1a<a href=\"https:\/\/github.com\/kisstaiyang\/DataStruct\/tree\/main\/%E7%AC%AC4%E7%AB%A0-%E4%B8%B2%E3%80%81%E6%95%B0%E7%BB%84%E5%92%8C%E5%B9%BF%E4%B9%89%E8%A1%A8\">\u6233\u6211\ud83c\udf39<\/a><\/p>\n<p>\u672c\u6587\u5b8c<\/p>\n<p>\u656c\u7231\u4e0e\u660e\u5929\ud83c\udf39<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u91cd\u70b9\uff1a\u6c42KMP\u7b97\u6cd5\u7684next\u6570\u7ec4<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[90,82,91,87,88,89],"class_list":["post-370","post","type-post","status-publish","format-standard","hentry","category-11","tag-bf","tag-ds","tag-kmp","tag-87","tag-88","tag-89"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7b2c4\u7ae0-\u4e32\u3001\u6570\u7ec4\u548c\u5e7f\u4e49\u8868 - #\u762b\u7537\u65e5\u8bb0<\/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:\/\/blog.taiyang.space\/?p=370\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7b2c4\u7ae0-\u4e32\u3001\u6570\u7ec4\u548c\u5e7f\u4e49\u8868 - #\u762b\u7537\u65e5\u8bb0\" \/>\n<meta property=\"og:description\" content=\"\u91cd\u70b9\uff1a\u6c42KMP\u7b97\u6cd5\u7684next\u6570\u7ec4\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.taiyang.space\/?p=370\" \/>\n<meta property=\"og:site_name\" content=\"#\u762b\u7537\u65e5\u8bb0\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-02T03:20:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-02T03:20:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/picture.chentaiyang.space\/202304251439177.png\" \/>\n<meta name=\"author\" content=\"taiyang\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"taiyang\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.taiyang.space\/?p=370#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.taiyang.space\/?p=370\"},\"author\":{\"name\":\"taiyang\",\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\"},\"headline\":\"\u7b2c4\u7ae0-\u4e32\u3001\u6570\u7ec4\u548c\u5e7f\u4e49\u8868\",\"datePublished\":\"2023-05-02T03:20:12+00:00\",\"dateModified\":\"2023-05-02T03:20:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.taiyang.space\/?p=370\"},\"wordCount\":108,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\"},\"keywords\":[\"BF\u7b97\u6cd5\",\"DS\",\"KMP\u7b97\u6cd5\",\"\u4e32\",\"\u5e7f\u4e49\u8868\",\"\u77e9\u9635\u538b\u7f29\u5b58\u50a8\"],\"articleSection\":[\"\u6570\u636e\u7ed3\u6784\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.taiyang.space\/?p=370#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.taiyang.space\/?p=370\",\"url\":\"https:\/\/blog.taiyang.space\/?p=370\",\"name\":\"\u7b2c4\u7ae0-\u4e32\u3001\u6570\u7ec4\u548c\u5e7f\u4e49\u8868 - #\u762b\u7537\u65e5\u8bb0\",\"isPartOf\":{\"@id\":\"https:\/\/blog.taiyang.space\/#website\"},\"datePublished\":\"2023-05-02T03:20:12+00:00\",\"dateModified\":\"2023-05-02T03:20:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.taiyang.space\/?p=370#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.taiyang.space\/?p=370\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.taiyang.space\/?p=370#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/blog.taiyang.space\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7b2c4\u7ae0-\u4e32\u3001\u6570\u7ec4\u548c\u5e7f\u4e49\u8868\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.taiyang.space\/#website\",\"url\":\"https:\/\/blog.taiyang.space\/\",\"name\":\"#\u762b\u7537\u65e5\u8bb0\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.taiyang.space\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\",\"name\":\"taiyang\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg\",\"contentUrl\":\"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg\",\"width\":612,\"height\":640,\"caption\":\"taiyang\"},\"logo\":{\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/blog.taiyang.space\"],\"url\":\"https:\/\/blog.taiyang.space\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7b2c4\u7ae0-\u4e32\u3001\u6570\u7ec4\u548c\u5e7f\u4e49\u8868 - #\u762b\u7537\u65e5\u8bb0","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:\/\/blog.taiyang.space\/?p=370","og_locale":"zh_CN","og_type":"article","og_title":"\u7b2c4\u7ae0-\u4e32\u3001\u6570\u7ec4\u548c\u5e7f\u4e49\u8868 - #\u762b\u7537\u65e5\u8bb0","og_description":"\u91cd\u70b9\uff1a\u6c42KMP\u7b97\u6cd5\u7684next\u6570\u7ec4","og_url":"https:\/\/blog.taiyang.space\/?p=370","og_site_name":"#\u762b\u7537\u65e5\u8bb0","article_published_time":"2023-05-02T03:20:12+00:00","article_modified_time":"2023-05-02T03:20:13+00:00","og_image":[{"url":"https:\/\/picture.chentaiyang.space\/202304251439177.png"}],"author":"taiyang","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"taiyang","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.taiyang.space\/?p=370#article","isPartOf":{"@id":"https:\/\/blog.taiyang.space\/?p=370"},"author":{"name":"taiyang","@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c"},"headline":"\u7b2c4\u7ae0-\u4e32\u3001\u6570\u7ec4\u548c\u5e7f\u4e49\u8868","datePublished":"2023-05-02T03:20:12+00:00","dateModified":"2023-05-02T03:20:13+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.taiyang.space\/?p=370"},"wordCount":108,"commentCount":0,"publisher":{"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c"},"keywords":["BF\u7b97\u6cd5","DS","KMP\u7b97\u6cd5","\u4e32","\u5e7f\u4e49\u8868","\u77e9\u9635\u538b\u7f29\u5b58\u50a8"],"articleSection":["\u6570\u636e\u7ed3\u6784"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.taiyang.space\/?p=370#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.taiyang.space\/?p=370","url":"https:\/\/blog.taiyang.space\/?p=370","name":"\u7b2c4\u7ae0-\u4e32\u3001\u6570\u7ec4\u548c\u5e7f\u4e49\u8868 - #\u762b\u7537\u65e5\u8bb0","isPartOf":{"@id":"https:\/\/blog.taiyang.space\/#website"},"datePublished":"2023-05-02T03:20:12+00:00","dateModified":"2023-05-02T03:20:13+00:00","breadcrumb":{"@id":"https:\/\/blog.taiyang.space\/?p=370#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.taiyang.space\/?p=370"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.taiyang.space\/?p=370#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.taiyang.space\/"},{"@type":"ListItem","position":2,"name":"\u7b2c4\u7ae0-\u4e32\u3001\u6570\u7ec4\u548c\u5e7f\u4e49\u8868"}]},{"@type":"WebSite","@id":"https:\/\/blog.taiyang.space\/#website","url":"https:\/\/blog.taiyang.space\/","name":"#\u762b\u7537\u65e5\u8bb0","description":"","publisher":{"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.taiyang.space\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c","name":"taiyang","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/","url":"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg","contentUrl":"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg","width":612,"height":640,"caption":"taiyang"},"logo":{"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/blog.taiyang.space"],"url":"https:\/\/blog.taiyang.space\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts\/370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=370"}],"version-history":[{"count":1,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts\/370\/revisions"}],"predecessor-version":[{"id":371,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts\/370\/revisions\/371"}],"wp:attachment":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}