{"id":71,"date":"2021-04-11T09:56:13","date_gmt":"2021-04-11T01:56:13","guid":{"rendered":"http:\/\/120.55.184.7\/?p=71"},"modified":"2025-04-15T18:17:45","modified_gmt":"2025-04-15T10:17:45","slug":"%e6%b4%9b%e8%b0%b7-p3357%e3%80%90kmp%e3%80%91%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%8c%b9%e9%85%8d%e6%a8%a1%e6%9d%bf%e9%a2%98","status":"publish","type":"post","link":"https:\/\/beijian99.top\/?p=71","title":{"rendered":"\u6d1b\u8c37 P3357\u3010KMP\u3011\u5b57\u7b26\u4e32\u5339\u914d\u6a21\u677f\u9898"},"content":{"rendered":"\n<p>\u3010\u6a21\u677f\u3011KMP<br>\u9898\u76ee\u63cf\u8ff0<br>\u7ed9\u51fa\u4e24\u4e2a\u5b57\u7b26\u4e32 s 1\u548c s 2 \uff0c\u82e5 s 1\u7684\u533a\u95f4 [ l , r ] \u5b50\u4e32\u4e0e s 2\u5b8c\u5168\u76f8\u540c\uff0c\u5219\u79f0 s 2<br>\u5728 s 1\u4e2d\u51fa\u73b0\u4e86\uff0c\u5176\u51fa\u73b0\u4f4d\u7f6e\u4e3a l \u3002\u73b0\u5728\u8bf7\u4f60\u6c42\u51fa s 2\u5728 s 1\u4e2d\u6240\u6709\u51fa\u73b0\u7684\u4f4d\u7f6e\u3002<\/p>\n\n\n\n<p>\u5b9a\u4e49\u4e00\u4e2a\u5b57\u7b26\u4e32 s\u7684 border \u4e3a s \u7684\u4e00\u4e2a\u975e s \u672c\u8eab\u7684\u5b50\u4e32 t\uff0c\u6ee1\u8db3 t \u65e2\u662f s \u7684\u524d\u7f00\uff0c\u53c8\u662f s \u7684\u540e\u7f00\u3002<br>\u5bf9\u4e8e s 2\uff0c\u4f60\u8fd8\u9700\u8981\u6c42\u51fa\u5bf9\u4e8e\u5176\u6bcf\u4e2a\u524d\u7f00 s \u2032 \u7684\u6700\u957f border t \u2032 \u7684\u957f\u5ea6\u3002<\/p>\n\n\n\n<p>\u8f93\u5165\u683c\u5f0f<br>\u7b2c\u4e00\u884c\u4e3a\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u5373\u4e3a s 1\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e8c\u884c\u4e3a\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u5373\u4e3a s 2 \u3002<\/p>\n\n\n\n<p>\u8f93\u51fa\u683c\u5f0f<br>\u9996\u5148\u8f93\u51fa\u82e5\u5e72\u884c\uff0c\u6bcf\u884c\u4e00\u4e2a\u6574\u6570\uff0c\u6309\u4ece\u5c0f\u5230\u5927\u7684\u987a\u5e8f\u8f93\u51fa s 2<br>\u200b<br>\u5728 s 1\u4e2d\u51fa\u73b0\u7684\u4f4d\u7f6e\u3002<br>\u6700\u540e\u4e00\u884c\u8f93\u51fa \u2223 s 2 \u2223 \u4e2a\u6574\u6570\uff0c\u7b2c i \u4e2a\u6574\u6570\u8868\u793a s 2\u7684\u957f\u5ea6\u4e3a i \u7684\u524d\u7f00\u7684\u6700\u957f border \u957f\u5ea6\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"979\" height=\"307\" src=\"http:\/\/120.55.184.7\/wp-content\/uploads\/2025\/04\/image-3.png\" alt=\"\" class=\"wp-image-74\" srcset=\"https:\/\/beijian99.top\/wp-content\/uploads\/2025\/04\/image-3.png 979w, https:\/\/beijian99.top\/wp-content\/uploads\/2025\/04\/image-3-300x94.png 300w, https:\/\/beijian99.top\/wp-content\/uploads\/2025\/04\/image-3-768x241.png 768w\" sizes=\"auto, (max-width: 979px) 100vw, 979px\" \/><\/figure>\n\n\n\n<p><br>\u63d0\u793a<br>\u6837\u4f8b 1 \u89e3\u91ca<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"236\" height=\"328\" src=\"http:\/\/120.55.184.7\/wp-content\/uploads\/2025\/04\/image-1.png\" alt=\"\" class=\"wp-image-72\" srcset=\"https:\/\/beijian99.top\/wp-content\/uploads\/2025\/04\/image-1.png 236w, https:\/\/beijian99.top\/wp-content\/uploads\/2025\/04\/image-1-216x300.png 216w\" sizes=\"auto, (max-width: 236px) 100vw, 236px\" \/><\/figure>\n\n\n\n<p>\u5bf9\u4e8e s 2 \u957f\u5ea6\u4e3a 3 \u7684\u524d\u7f00 ABA\uff0c\u5b57\u7b26\u4e32 A \u65e2\u662f\u5176\u540e\u7f00\u4e5f\u662f\u5176\u524d\u7f00\uff0c\u4e14\u662f\u6700\u957f\u7684\uff0c\u56e0\u6b64\u6700\u957f border \u957f\u5ea6\u4e3a 1\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"611\" height=\"243\" src=\"http:\/\/120.55.184.7\/wp-content\/uploads\/2025\/04\/image-2.png\" alt=\"\" class=\"wp-image-73\" srcset=\"https:\/\/beijian99.top\/wp-content\/uploads\/2025\/04\/image-2.png 611w, https:\/\/beijian99.top\/wp-content\/uploads\/2025\/04\/image-2-300x119.png 300w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/figure>\n\n\n\n<p><strong>KMP\u7b97\u6cd5<\/strong><br>KMP\uff08Knuth-Morris-Pratt\uff09\u7b97\u6cd5\u662f\u4e00\u79cd\u9ad8\u6548\u7684\u5b57\u7b26\u4e32\u5339\u914d\u7b97\u6cd5\uff0c\u7528\u4e8e\u5728\u4e3b\u5b57\u7b26\u4e32\uff08\u6587\u672c\uff09\u4e2d\u67e5\u627e\u4e00\u4e2a\u5b50\u5b57\u7b26\u4e32\uff08\u6a21\u5f0f\uff09\u7684\u51fa\u73b0\u4f4d\u7f6e\u3002KMP\u7b97\u6cd5\u7684\u6838\u5fc3\u601d\u60f3\u662f\u5f53\u4e00\u6b21\u6bd4\u8f83\u5931\u8d25\u65f6\uff0c\u80fd\u591f\u5229\u7528\u5df2\u7ecf\u6bd4\u8f83\u8fc7\u7684\u4fe1\u606f\uff0c\u5c06\u6a21\u5f0f\u5b57\u7b26\u4e32\u5408\u7406\u5730\u201c\u6ed1\u52a8\u201d\uff0c\u8df3\u8fc7\u4e00\u4e9b\u5fc5\u7136\u4e0d\u5339\u914d\u7684\u4f4d\u7f6e\uff0c\u4ece\u800c\u63d0\u9ad8\u5339\u914d\u6548\u7387\u3002<\/p>\n\n\n\n<p>\u7b97\u6cd5\u6b65\u9aa4<br>KMP\u7b97\u6cd5\u4e3b\u8981\u5206\u4e3a\u4e24\u4e2a\u6b65\u9aa4\uff1a<\/p>\n\n\n\n<p>\u6784\u5efaLPS\uff08\u6700\u957f\u76f8\u540c\u524d\u540e\u7f00\uff09\u6570\u7ec4\uff1a<br>LPS\u6570\u7ec4\u7528\u4e8e\u5b58\u50a8\u6a21\u5f0f\u5b57\u7b26\u4e32\u4e2d\u6bcf\u4e2a\u4f4d\u7f6e\u4e4b\u524d\u5b57\u7b26\u4e32\u7684\u6700\u957f\u76f8\u540c\u524d\u540e\u7f00\u7684\u957f\u5ea6\u3002<br>\u8fd9\u4e2a\u6570\u7ec4\u662fKMP\u7b97\u6cd5\u7684\u6838\u5fc3\uff0c\u5b83\u4f7f\u5f97\u7b97\u6cd5\u80fd\u591f\u5728\u5339\u914d\u5931\u8d25\u65f6\u77e5\u9053\u6a21\u5f0f\u5b57\u7b26\u4e32\u5e94\u8be5\u5982\u4f55\u79fb\u52a8\u3002<br>\u4f7f\u7528LPS\u6570\u7ec4\u8fdb\u884c\u5b57\u7b26\u4e32\u5339\u914d\uff1a<br>\u5728\u4e3b\u5b57\u7b26\u4e32\u4e2d\u641c\u7d22\u6a21\u5f0f\u5b57\u7b26\u4e32\u3002<br>\u5982\u679c\u53d1\u751f\u4e0d\u5339\u914d\uff0c\u5229\u7528LPS\u6570\u7ec4\u6765\u786e\u5b9a\u6a21\u5f0f\u5b57\u7b26\u4e32\u7684\u4e0b\u4e00\u4e2a\u5339\u914d\u4f4d\u7f6e\uff0c\u907f\u514d\u4ece\u5934\u5f00\u59cb\u6bd4\u8f83\u3002<br>LPS\u6570\u7ec4\u7684\u6784\u5efa<br>LPS\u6570\u7ec4\u7684\u6784\u5efa\u8fc7\u7a0b\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>\u521d\u59cb\u5316LPS\u6570\u7ec4\uff0c\u957f\u5ea6\u4e0e\u6a21\u5f0f\u5b57\u7b26\u4e32\u76f8\u540c\uff0c\u5e76\u5c06\u7b2c\u4e00\u4e2a\u5143\u7d20\u8bbe\u7f6e\u4e3a0\u3002<br>\u4f7f\u7528\u4e24\u4e2a\u6307\u9488i\u548cj\uff0c\u5176\u4e2di\u662f\u5f53\u524d\u6b63\u5728\u8ba1\u7b97LPS\u503c\u7684\u6a21\u5f0f\u5b57\u7b26\u4e32\u7684\u4f4d\u7f6e\uff0cj\u662f\u5f53\u524d\u6700\u957f\u76f8\u7b49\u524d\u540e\u7f00\u7684\u957f\u5ea6\u3002<br>\u904d\u5386\u6a21\u5f0f\u5b57\u7b26\u4e32\uff0c\u5bf9\u4e8e\u6bcf\u4e2a\u4f4d\u7f6ei\uff1a<br>\u5982\u679c\u6a21\u5f0f\u5b57\u7b26\u4e32\u5728i\u548cj\u4f4d\u7f6e\u7684\u5b57\u7b26\u76f8\u540c\uff0c\u5219LPS[i] = j + 1\uff0c\u5e76\u5c06j\u52a01\u3002<br>\u5982\u679c\u4e0d\u76f8\u540c\uff0c\u5219\u5c06j\u8bbe\u7f6e\u4e3aLPS[j &#8211; 1]\uff08\u8fd9\u662f\u5229\u7528\u5df2\u7ecf\u8ba1\u7b97\u51fa\u7684LPS\u503c\u6765\u627e\u5230\u4e0b\u4e00\u4e2a\u53ef\u80fd\u7684\u5339\u914d\u4f4d\u7f6e\uff09\u3002<br>\u5982\u679cj\u4e3a0\uff0c\u5219LPS[i] = 0\u3002<br>\u5339\u914d\u8fc7\u7a0b<br>\u5339\u914d\u8fc7\u7a0b\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>\u4f7f\u7528\u4e24\u4e2a\u6307\u9488\uff0c\u4e00\u4e2a\u5728\u4e3b\u5b57\u7b26\u4e32\u4e0a\uff08i\uff09\uff0c\u4e00\u4e2a\u5728\u6a21\u5f0f\u5b57\u7b26\u4e32\u4e0a\uff08j\uff09\u3002<br>\u9010\u4e2a\u5b57\u7b26\u6bd4\u8f83i\u548cj\u4f4d\u7f6e\u7684\u5b57\u7b26\uff1a<br>\u5982\u679c\u5b57\u7b26\u5339\u914d\uff0c\u5219\u4e24\u4e2a\u6307\u9488\u90fd\u5411\u524d\u79fb\u52a8\u4e00\u4f4d\u3002<br>\u5982\u679cj\u8fbe\u5230\u4e86\u6a21\u5f0f\u5b57\u7b26\u4e32\u7684\u672b\u5c3e\uff0c\u8bf4\u660e\u627e\u5230\u4e86\u4e00\u4e2a\u5339\u914d\uff0c\u8bb0\u5f55\u4e0b\u5339\u914d\u7684\u4f4d\u7f6e\uff0c\u5e76\u5c06j\u8bbe\u7f6e\u4e3aLPS[j &#8211; 1]\uff08\u5982\u679c\u9700\u8981\u7ee7\u7eed\u67e5\u627e\u4e0b\u4e00\u4e2a\u5339\u914d\uff09\u3002<br>\u5982\u679c\u5b57\u7b26\u4e0d\u5339\u914d\uff0c\u5219\u5c06j\u8bbe\u7f6e\u4e3aLPS[j &#8211; 1]\uff0c\u8fd9\u6837\u53ef\u4ee5\u8df3\u8fc7\u4e00\u4e9b\u5fc5\u7136\u4e0d\u5339\u914d\u7684\u4f4d\u7f6e\u3002<br>\u65f6\u95f4\u590d\u6742\u5ea6<br>KMP\u7b97\u6cd5\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u662fO(n + m)\uff0c\u5176\u4e2dn\u662f\u4e3b\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\uff0cm\u662f\u6a21\u5f0f\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u3002\u8fd9\u662f\u56e0\u4e3aLPS\u6570\u7ec4\u53ea\u9700\u8981O(m)\u65f6\u95f4\u6784\u5efa\uff0c\u800c\u5339\u914d\u8fc7\u7a0b\u4e5f\u662fO(n)\u3002<\/p>\n\n\n\n<p>\u4f18\u70b9<br>KMP\u7b97\u6cd5\u76f8\u6bd4\u4e8e\u6734\u7d20\u7684\u5b57\u7b26\u4e32\u5339\u914d\u7b97\u6cd5\uff08\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(n*m)\uff09\u6709\u4ee5\u4e0b\u51e0\u4e2a\u4f18\u70b9\uff1a<\/p>\n\n\n\n<p>\u4e0d\u9700\u8981\u56de\u6eaf\u4e3b\u5b57\u7b26\u4e32\u7684\u6307\u9488\u3002<br>\u5728\u6700\u574f\u60c5\u51b5\u4e0b\u4ecd\u7136\u4fdd\u6301\u7ebf\u6027\u65f6\u95f4\u590d\u6742\u5ea6\u3002<br>\u901a\u8fc7\u9884\u5904\u7406\u7684LPS\u6570\u7ec4\uff0c\u51cf\u5c11\u4e86\u4e0d\u5fc5\u8981\u7684\u6bd4\u8f83\u3002<br>KMP\u7b97\u6cd5\u5e7f\u6cdb\u5e94\u7528\u4e8e\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u7684\u67e5\u627e\u66ff\u6362\u529f\u80fd\u3001\u5b57\u7b26\u4e32\u641c\u7d22\u7b97\u6cd5\u4ee5\u53ca\u5404\u79cd\u9700\u8981\u9ad8\u6548\u5b57\u7b26\u4e32\u5339\u914d\u7684\u573a\u666f\u3002<\/p>\n\n\n\n<p><strong>\u4ee3\u7801\u5b9e\u73b0<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: cpp; gutter: true; title: ; notranslate\" title=\"\">\ninclude\n\nusing namespace std;\n\n\/\/ KMP\u7c7b\u7528\u4e8e\u5b9e\u73b0KMP\u5b57\u7b26\u4e32\u5339\u914d\u7b97\u6cd5\nclass KMP\n{\nprivate:\n\/\/ lps\u6570\u7ec4\u7528\u4e8e\u5b58\u50a8\u6bcf\u4e2a\u4f4d\u7f6e\u7684\u6700\u957f\u76f8\u540c\u524d\u540e\u7f00\u957f\u5ea6\nvector lps;\n\/\/ pattern\u5b58\u50a8\u8981\u5339\u914d\u7684\u6a21\u5f0f\u5b57\u7b26\u4e32\nstring pattern;\n\n\/\/ init\u51fd\u6570\u7528\u4e8e\u521d\u59cb\u5316lps\u6570\u7ec4\nvoid init(string &amp;s)\n{\n    \/\/ lps\u7684\u7b2c\u4e00\u4e2a\u503c\u603b\u662f0\n    lps&#x5B;0] = 0;\n    int n = s.size();\n    \/\/ \u904d\u5386\u6a21\u5f0f\u5b57\u7b26\u4e32\uff0c\u8ba1\u7b97lps\u6570\u7ec4\n    for (int i = 1; i &lt; n; i++)\n    {\n        int j = lps&#x5B;i - 1];\n        \/\/ \u5982\u679c\u5f53\u524d\u5b57\u7b26\u4e0d\u5339\u914d\uff0c\u56de\u9000\u5230\u4e0a\u4e00\u4e2alps\u503c\n        while (j &gt; 0 &amp;&amp; s&#x5B;i] != s&#x5B;j])\n        {\n            j = lps&#x5B;j - 1];\n        }\n        \/\/ \u66f4\u65b0lps\u503c\n        lps&#x5B;i] = j + (s&#x5B;i] == s&#x5B;j]);\n    }\n    \/\/ \u4fdd\u5b58\u6a21\u5f0f\u5b57\u7b26\u4e32\n    this-&gt;pattern = s;\n}\n\npublic:\n\/\/ \u6784\u9020\u51fd\u6570\uff0c\u63a5\u6536\u6a21\u5f0f\u5b57\u7b26\u4e32\u5e76\u521d\u59cb\u5316lps\u6570\u7ec4\nKMP(string &amp;pattern)\n{\nlps.resize(pattern.size());\ninit(pattern);\n}\n\n\/\/ find\u51fd\u6570\u7528\u4e8e\u5728\u6587\u672c\u4e2d\u67e5\u627e\u6a21\u5f0f\u5b57\u7b26\u4e32\u7684\u6240\u6709\u51fa\u73b0\u4f4d\u7f6e\nvector&lt;int&gt; find(string &amp;text)\n{\n    vector&lt;int&gt; v; \/\/ \u5b58\u50a8\u5339\u914d\u4f4d\u7f6e\n    int pos = 0;   \/\/ \u5f53\u524d\u5339\u914d\u7684\u4f4d\u7f6e\n    for (int i = 0; i &lt; text.size(); i++)\n    {\n        \/\/ \u5982\u679c\u5b57\u7b26\u4e0d\u5339\u914d\uff0c\u56de\u9000\u5230\u4e0a\u4e00\u4e2alps\u503c\n        while (pos &gt; 0 &amp;&amp; text&#x5B;i] != pattern&#x5B;pos])\n        {\n            pos = lps&#x5B;pos-1];\n        }\n        \/\/ \u5982\u679c\u5b57\u7b26\u5339\u914d\uff0c\u79fb\u52a8\u5230\u4e0b\u4e00\u4e2a\u4f4d\u7f6e\n        if (text&#x5B;i] == pattern&#x5B;pos])\n            pos++;\n\n        \/\/ \u5982\u679c\u6a21\u5f0f\u5b57\u7b26\u4e32\u5b8c\u5168\u5339\u914d\uff0c\u8bb0\u5f55\u4f4d\u7f6e\n        if (pos == pattern.size())\n        {\n            v.push_back(i+1 - int(pattern.size()) + 1); \/\/ \u8bb0\u5f55\u5339\u914d\u5f00\u59cb\u7684\u4f4d\u7f6e\n            pos = lps&#x5B;pos-1]; \/\/ \u56de\u9000\u5230\u4e0a\u4e00\u4e2alps\u503c\uff0c\u7ee7\u7eed\u67e5\u627e\n        }\n    }\n    return v;\n}\n\/\/ print_lps\u51fd\u6570\u7528\u4e8e\u6253\u5370lps\u6570\u7ec4\nvoid print_lps(){\n    for(int i=0;i+1&lt;pattern.size();i++){\n        cout&lt;&lt;lps&#x5B;i]&lt;&lt;&#039; &#039;;\n    }\n    cout&lt;&lt;lps.back(); \/\/ \u6253\u5370\u6700\u540e\u4e00\u4e2alps\u503c\n}\n\n};\n\nint main()\n{\nios::sync_with_stdio(false); \/\/ \u5173\u95edC++\u4e0eC\u7684\u540c\u6b65\uff0c\u63d0\u9ad8\u8f93\u5165\u8f93\u51fa\u6548\u7387\ncin.tie(0); \/\/ \u89e3\u9664cin\u4e0ecout\u7684\u7ed1\u5b9a\uff0c\u63d0\u9ad8\u8f93\u5165\u8f93\u51fa\u6548\u7387\ncout.tie(0); \/\/ \u89e3\u9664cout\u4e0ecin\u7684\u7ed1\u5b9a\uff0c\u63d0\u9ad8\u8f93\u5165\u8f93\u51fa\u6548\u7387\nstring s1, s2; \/\/ s1\u4e3a\u6587\u672c\u5b57\u7b26\u4e32\uff0cs2\u4e3a\u6a21\u5f0f\u5b57\u7b26\u4e32\ncin &gt;&gt; s1 &gt;&gt; s2; \/\/ \u4ece\u6807\u51c6\u8f93\u5165\u8bfb\u53d6\u6587\u672c\u5b57\u7b26\u4e32\u548c\u6a21\u5f0f\u5b57\u7b26\u4e32\n\/\/ \u521b\u5efaKMP\u5bf9\u8c61\nauto kmp = KMP(s2);\n\/\/ \u5728\u6587\u672c\u4e2d\u67e5\u627e\u6a21\u5f0f\u5b57\u7b26\u4e32\u7684\u6240\u6709\u51fa\u73b0\u4f4d\u7f6e\nauto res = kmp.find(s1);\n\/\/ \u6253\u5370\u6240\u6709\u5339\u914d\u4f4d\u7f6e\nfor (auto &amp;pos : res) {\ncout &lt;&lt; pos &lt;&lt; endl;\n}\n\n\/\/ \u6253\u5370lps\u6570\u7ec4\nkmp.print_lps();\n\nreturn 0;\n\n}\n<\/pre><\/div>\n\n\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u6a21\u677f\u3011KMP\u9898\u76ee\u63cf\u8ff0\u7ed9\u51fa\u4e24\u4e2a\u5b57\u7b26\u4e32 s 1\u548c s 2 \uff0c\u82e5 s 1\u7684\u533a\u95f4 [ l , r ] \u5b50\u4e32\u4e0e s 2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4],"tags":[],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry","category-algorithm"],"_links":{"self":[{"href":"https:\/\/beijian99.top\/index.php?rest_route=\/wp\/v2\/posts\/71","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/beijian99.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/beijian99.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/beijian99.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/beijian99.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=71"}],"version-history":[{"count":1,"href":"https:\/\/beijian99.top\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions"}],"predecessor-version":[{"id":75,"href":"https:\/\/beijian99.top\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions\/75"}],"wp:attachment":[{"href":"https:\/\/beijian99.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/beijian99.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/beijian99.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}