{"id":256,"date":"2023-08-16T14:57:48","date_gmt":"2023-08-16T06:57:48","guid":{"rendered":"http:\/\/lingbo.online\/?p=256"},"modified":"2023-08-21T14:53:56","modified_gmt":"2023-08-21T06:53:56","slug":"dijkstra","status":"publish","type":"post","link":"https:\/\/lingbo.online\/index.php\/algorithm_learning\/dijkstra\/","title":{"rendered":"Dijkstra\u7b97\u6cd5\u8be6\u89e3"},"content":{"rendered":"<h3>\u7b97\u6cd5\u7b80\u4ecb<\/h3>\n<p>\u8fea\u6770\u65af\u7279\u62c9\u7b97\u6cd5(Dijkstra)\u662f\u7531\u8377\u5170\u8ba1\u7b97\u673a\u79d1\u5b66\u5bb6\u72c4\u514b\u65af\u7279\u62c9\u4e8e1959\u5e74\u63d0\u51fa\u7684\uff0c\u56e0\u6b64\u53c8\u53eb\u72c4\u514b\u65af\u7279\u62c9\u7b97\u6cd5\u3002\u8fd9\u662f\u4ece\u4e00\u4e2a\u9876\u70b9\u5230\u5176\u4f59\u5404\u9876\u70b9\u7684\u6700\u77ed\u8def\u5f84\u7b97\u6cd5\uff0c\u89e3\u51b3\u7684\u662f\u6709\u6743\u56fe\u4e2d\u6700\u77ed\u8def\u5f84\u95ee\u9898\u3002<strong>\u8fea\u6770\u65af\u7279\u62c9\u7b97\u6cd5\u4e3b\u8981\u7279\u70b9\u662f\u4ece\u8d77\u59cb\u70b9\u5f00\u59cb\uff0c\u91c7\u7528\u8d2a\u5fc3\u7b97\u6cd5\u7684\u7b56\u7565\uff0c\u6bcf\u6b21\u904d\u5386\u5230\u59cb\u70b9\u8ddd\u79bb\u6700\u8fd1\u4e14\u672a\u8bbf\u95ee\u8fc7\u7684\u9876\u70b9\u7684\u90bb\u63a5\u8282\u70b9\uff0c\u76f4\u5230\u6269\u5c55\u5230\u7ec8\u70b9\u4e3a\u6b62\u3002<\/strong><\/p>\n<p><strong>PS\uff1a\u6b64\u7b97\u6cd5\u4e0d\u80fd\u7528\u4e8e\u6c42\u8d1f\u6743\u56fe\uff0c\u8981\u6c42\u6240\u6709\u8fb9\u7684\u6743\u91cd\u90fd\u4e3a\u975e\u8d1f\u503c\u3002<\/strong><\/p>\n<h3>\u7b97\u6cd5\u539f\u7406<\/h3>\n<p>dijkstra\u7b97\u6cd5\u662f\u57fa\u4e8e\u8d2a\u5fc3\u7b97\u6cd5\u601d\u60f3\u5b9e\u73b0\u7684\u3002<strong>\u8d2a\u5fc3\u7b97\u6cd5\u5373\u59cb\u7ec8\u4fdd\u6301\u5f53\u524d\u8fed\u4ee3\u89e3\u4e3a\u5f53\u524d\u6700\u4f18\u89e3\uff0c\u5373\u5728\u5f53\u524d\u4e00\u76f4\u7684\u6761\u4ef6\u4e0b\u5305\u6700\u6700\u4f18\u89e3\uff0c\u82e5\u518d\u6b21\u540e\u7684\u8fed\u4ee3\u4e2d\u7531\u4e8e\u52a0\u5165\u4e86\u65b0\u7684\u6761\u4ef6\u4f7f\u5f97\u4ea7\u751f\u4e86\u66f4\u4f18\u89e3\u6765\u4ee3\u66ff\u6b64\u524d\u7684\u6700\u4f18\u89e3\u3002<\/strong>\u901a\u8fc7\u4e0d\u65ad\u8fed\u4ee3\u4fdd\u8bc1\u6bcf\u6b21\u8fed\u4ee3\u7ed3\u679c\u90fd\u662f\u5f53\u524d\u7684\u6700\u540e\u89e3\uff0c\u5f53\u8fed\u4ee3\u8fdb\u884c\u5230\u6700\u540e\u4e00\u8f6e\u65f6\uff0c\u5f97\u5230\u7684\u89e3\u5c31\u662f<strong>\u5168\u5c40\u6700\u4f18\u89e3<\/strong>\u3002\u7531\u4e8e\u4e0b\u4e00\u8f6e\u8fed\u4ee3\u4f1a\u53c2\u8003\u4e0a\u4e00\u8f6e\u8fed\u4ee3\u7684\u6700\u4f18\u89e3\uff0c\u56e0\u6b64\u6bcf\u4e00\u8f6e\u8fed\u4ee3\u7684\u5de5\u4f5c\u91cf\u57fa\u672c\u4e00\u81f4\uff0c\u964d\u4f4e\u4e86\u6574\u4f53\u5de5\u4f5c\u7684\u590d\u6742\u6027\u3002<\/p>\n<p>\u5728\u6700\u77ed\u8def\u5f84\u7684\u95ee\u9898\u4e2d\uff0c\u5c40\u90e8\u6700\u4f18\u89e3\u5373<strong>\u5f53\u524d\u7684\u6700\u77ed\u8def\u5f84<\/strong>\u6216\u8005\u8bf4\u662f\u5728\u5f53\u524d\u7684\u5df2\u77e5\u6761\u4ef6\u4e0b\u8d77\u70b9\u5230\u5176\u4f59\u5404\u70b9\u7684\u6700\u77ed\u8ddd\u79bb\u3002\u5173\u952e\u5c31\u5728\u4e8e\u5df2\u77e5\u6761\u4ef6\uff0c\u8fd9\u4e5f\u662fDijkstra\u7b97\u6cd5\u6700\u7cbe\u5999\u7684\u5730\u65b9\u3002\u6211\u4eec\u6765\u89e3\u91ca\u4e00\u4e0b\u3002<\/p>\n<p>\u5bf9\u4e8eDijkstra\u7b97\u6cd5\uff0c\u6211\u4eec\u5047\u8bbe\u521d\u59cb\u96c6\u5408\uff08\u4e5f\u5c31\u662f\u521d\u59cb\u6761\u4ef6\uff09\u4e0d\u5b58\u5728\u4efb\u4f55\u9876\u70b9\u7684\uff0c\u5373\u6240\u6709\u9876\u70b9\u4e4b\u95f4\u662f\u4e0d\u5b58\u5728\u4efb\u4f55\u8def\u5f84\u7684\uff0c\u5373\u6211\u4eec\u8ba4\u4e3a\u6240\u6709\u9876\u70b9\u4e4b\u95f4\u7684\u8ddd\u79bb\u90fd\u662f\u65e0\u7a77\u5927\u3002\u90a3\u4e48\u5f00\u59cb\u52a0\u5165\u65b0\u7684\u6761\u4ef6\uff0c\u56e0\u4e3a\u6211\u4eec\u5df2\u77e5\u6e90\u70b9\u8ddd\u6e90\u70b9\u8ddd\u79bb\u6700\u5c0f\uff0c\u6240\u4ee5\u52a0\u5165\u8fdb\u53bb\uff0c\u5e76\u52a0\u5165\u5b83\u7684\u8fb9\uff0c\u5728\u8be5\u6761\u4ef6\u4e0b\uff0c\u66f4\u65b0\u8be5\u6e90\u70b9\u5230\u5176\u4f59\u9876\u70b9\u7684\u6700\u77ed\u8ddd\u79bb\uff0c\u9009\u51fa\u6ca1\u6709\u52a0\u5165\u5230\u5df2\u77e5\u96c6\u5408\u7684\u8ddd\u6e90\u70b9\u8ddd\u79bb\u6700\u5c0f\u7684\u70b9\uff0c\u6b64\u70b9\u6700\u77ed\u8ddd\u79bb\u4e5f\u88ab\u786e\u5b9a\u4e86\uff08\u56e0\u4e3a\u5176\u4ed6\u8def\u5f84\u90fd\u6bd4\u8fd9\u6761\u8def\u5f84\u5927\uff0c\u65e0\u6cd5\u901a\u8fc7\u5176\u4ed6\u8def\u5f84\u95f4\u63a5\u5230\u8fbe\u8fd9\u4e2a\u9876\u70b9\u4f7f\u5f97\u8def\u5f84\u66f4\u5c0f\uff09\uff0c\u7136\u540e\u52a0\u5165\u8be5\u70b9\u4e0e\u5176\u4f59\u8fd8\u672a\u52a0\u5165\u5df2\u77e5\u6761\u4ef6\u9876\u70b9\u7684\u8fb9\uff0c\u5e76\u4ee5\u8be5\u70b9\u8fed\u4ee3\u5237\u65b0\u6700\u77ed\u8ddd\u79bb\u3002\u518d\u91cd\u590d\u4ee5\u4e0a\u64cd\u4f5c\uff0c\u76f4\u81f3\u6240\u6709\u9876\u70b9\u90fd\u52a0\u5165\u5df2\u77e5\u6761\u4ef6\u96c6\u5408\u3002<\/p>\n<h3>\u7b97\u6cd5\u6b65\u9aa4<\/h3>\n<ol>\n<li>\u9009\u62e9\u8d77\u70b9start\u548c\u7ec8\u70b9end\uff1b<\/li>\n<li>\u6240\u6709\u70b9\u9664\u8d77\u70b9\u5916\u52a0\u5165\u672a\u77e5\u96c6\u5408\uff0c\u5c06\u8d77\u70b9\u52a0\u5165\u5df2\u77e5\u96c6\u5408\uff0c\u5373\u81f3\u6807\u5fd7\u4f4d\u4e3a\u771f\uff0c\u610f\u4e3a\u5df2\u786e\u5b9a\u8be5\u70b9\u5230\u6e90\u70b9\u7684\u6700\u77ed\u8def\u5f84\uff1b<\/li>\n<li>\u521d\u59cb\u5316\u8ba1\u7b97\uff0c\u66f4\u65b0\u8d77\u70b9\u4e0e\u5176\u4ed6\u5404\u70b9\u7684\u6210\u672c<span class=\"katex-eq\" data-katex-display=\"false\">dis(start,n)<\/span>\uff1b<\/li>\n<li>\u5728\u672a\u77e5\u96c6\u5408\u4e2d\uff0c\u9009\u62e9<span class=\"katex-eq\" data-katex-display=\"false\">dis(start,n)<\/span>\u4e2d\u503c\u6700\u5c0f\u7684\u70b9x\uff0c\u5c06x\u52a0\u5165\u5df2\u77e5\u96c6\u5408\uff1b<\/li>\n<li>\u5728\u5269\u4f59\u9876\u70b9\u4e2d\uff0c\u8ba1\u7b97<span class=\"katex-eq\" data-katex-display=\"false\">dis(start,n)&gt;dis(start,x)+dis(x,n)<\/span>\u3002\u82e5\u771f\uff0c\u5219<span class=\"katex-eq\" data-katex-display=\"false\">dis(start,n)=dis(start,x)+dis(x,n)<\/span>,\u6b64\u65f6start\u4e0en\u70b9\u8def\u5f84\u7ecf\u8fc7x\u70b9\u3002\u5faa\u73af\u76f4\u81f3goal\u70b9\u52a0\u5165\u5df2\u77e5\u5217\u8868\uff0c\u53d6\u5f97dis(start,goal)\u5373\u4e3a\u6700\u77ed\u8ddd\u79bb\u3002<\/li>\n<\/ol>\n<h3>\u6848\u4f8b\u7814\u7a76<\/h3>\n<p>\u4ee5<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/454373256\" title=\"\u77e5\u4e4e\u56de\u7b54\" target=\"_blank\"  rel=\"nofollow\" >\u77e5\u4e4e\u56de\u7b54<\/a>\u4e3a\u4f8b\uff0c\u8fdb\u884cdijkstra\u6700\u77ed\u8def\u7b97\u6cd5\u7684\u6848\u4f8b\u5206\u6790\uff0c\u5047\u8bbev1\u4e3a\u6e90\u70b9\uff0c\u627e\u4ecev1\u5230\u5176\u5b83\u8282\u70b9\u7684\u6700\u77ed\u8def\u5f84<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/lingbo.online\/wp-content\/uploads\/2023\/08\/\u5fae\u4fe1\u622a\u56fe_20230816141922.png\" alt=\"\" \/><\/p>\n<ul>\n<li>\u4f7f\u7528\u96c6\u5408S\u5b58\u50a8\u5df2\u7ecf\u627e\u5230\u7684\u6700\u77ed\u8def\u5f84<\/li>\n<li>v1\u5230\u81ea\u5df1\u663e\u7136\u6700\u77ed\uff0c\u6545\u4e3a\u521d\u59cb\u6700\u77ed\u8def\u5f84<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/lingbo.online\/wp-content\/uploads\/2023\/08\/1-2.png\" alt=\"\" \/><\/p>\n<p><strong>\u7b2c\u4e00\u8f6e\uff1a<\/strong>\u4ecev1\u51fa\u53d1\uff0c\u8ba1\u7b97v1\u5230\u5176\u5b83\u8282\u70b9\u7684\u8ddd\u79bb\uff08\u65e0\u6cd5\u8fde\u63a5\u5219\u8ba4\u4e3a\u4e24\u70b9\u95f4\u7684\u8ddd\u79bb\u4e3a\u6b63\u65e0\u7a77\uff09<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/lingbo.online\/wp-content\/uploads\/2023\/08\/2-1.png\" alt=\"\" \/><\/p>\n<ul>\n<li>\u5168\u8868\u5bfb\u627e\u6700\u5c0f\u503c\uff0c\u53d1\u73b0v1\u5230v6\u6700\u77ed\u4e3a3<\/li>\n<li>S\u4e2d\u6dfb\u52a0\u4e00\u6761\u6700\u77ed\u8def\u5f84\uff1av1-v6<\/li>\n<li>v6\u5217\u6807\u7ea2\u4e0d\u518d\u8003\u8651<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/lingbo.online\/wp-content\/uploads\/2023\/08\/3.jpg\" alt=\"\" \/><\/p>\n<p><strong>\u7b2c\u4e8c\u8f6e\uff1a<\/strong>\u4ecev1-v6\u51fa\u53d1\uff0c\u8ba1\u7b97v1\u901a\u8fc7v6\u5230\u8fbe\u5176\u5b83\u8282\u70b9\u7684\u8ddd\u79bb<\/p>\n<ul>\n<li>\u5df2\u77e5v1\u5230v6\u7684\u8ddd\u79bb\u4e3a3\uff1bv6\u53ef\u4ee5\u5230v2,v4,v5;\u56e0\u6b64\uff0cv1\u901a\u8fc7v6\u5230\u5176\u5b83\u8282\u70b9\u7684\u8ddd\u79bb\u4e3a3+n,n\u4e3a6\u5230\u5404\u4e2a\u8282\u70b9\u7684\u8ddd\u79bb<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/lingbo.online\/wp-content\/uploads\/2023\/08\/4.jpg\" alt=\"\" \/><\/p>\n<ul>\n<li>\u5728\u5168\u8868\u4e2d\u627e\u6700\u5c0f\u503c\uff08V6\u5217\u5df2\u7ecf\u5220\u9664\uff09\uff0c\u6b64\u65f64\u4e3a\u6700\u5c0f\u503c\uff0c\u5bf9\u5e94\u8def\u5f84\u4e3av1\u2014v6-v5<\/li>\n<li>\u6dfb\u52a0\u6700\u77ed\u8def\u5f84v1-v6-v5<\/li>\n<li>v5\u5217\u4e0d\u518d\u8003\u8651<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/lingbo.online\/wp-content\/uploads\/2023\/08\/5.jpg\" alt=\"\" \/><\/p>\n<p><strong>\u7b2c\u4e09\u8f6e\uff1a<\/strong>\u4ecev1-v6-v5\u51fa\u53d1\uff0c\u8ba1\u7b97v1\u901a\u8fc7v6\u53cav5\u5230\u8fbe\u5176\u5b83\u8282\u70b9\u7684\u8ddd\u79bb<\/p>\n<ul>\n<li>\u5df2\u77e5v1-v6-v5\u7684\u957f\u5ea6\u4e3a4\uff1b<\/li>\n<li>\u53d1\u73b0\uff0cv5\u4e0d\u80fd\u5230\u73b0\u5b58\u7684\u5176\u4ed6\u4efb\u4f55\u4e00\u4e2a\u8282\u70b9\uff0c\u56e0\u6b64\u8ddd\u79bb\u5168\u90e8\u4e3a\u6b63\u65e0\u7a77<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/lingbo.online\/wp-content\/uploads\/2023\/08\/6.jpg\" alt=\"\" \/><\/p>\n<ul>\n<li>\u770b\u5168\u8868\uff08v5\u548cv6\u5df2\u7ecf\u5220\u9664\uff09\u627e\u6700\u5c0f\u503c\uff0c5\u662f\u6700\u5c0f\u503c\uff0c\u5bf9\u5e94\u7684\u8def\u5f84\u662fv1-v6-v2<\/li>\n<li>\u6dfb\u52a0\u6700\u77ed\u8def\u5f84v1-v6-v2<\/li>\n<li>v2\u5217\u4e0d\u518d\u8003\u8651<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/lingbo.online\/wp-content\/uploads\/2023\/08\/7.jpg\" alt=\"\" \/><\/p>\n<p><strong>\u7b2c\u56db\u8f6e\uff1a<\/strong>\u4ecev1-v6-v2\u51fa\u53d1\uff0c\u8ba1\u7b97v1\u901a\u8fc7v6\u53cav2\u5230\u5176\u4ed6\u8282\u70b9\u7684\u8ddd\u79bb<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/lingbo.online\/wp-content\/uploads\/2023\/08\/8.jpg\" alt=\"\" \/><\/p>\n<ul>\n<li>\u904d\u5386\u5168\u8868\uff08v2,v5\u548cv6\u5df2\u7ecf\u5220\u9664\uff09\u53d1\u73b0\uff0c9\u6700\u5c0f\uff0c\u5bf9\u5e94\u7684\u8def\u5f84\u4e3av1-v6-v4<\/li>\n<li>\u6dfb\u52a0\u6700\u77ed\u8def\u5f84v1-v6-v4<\/li>\n<li>v4\u5217\u4e0d\u518d\u8003\u8651<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/lingbo.online\/wp-content\/uploads\/2023\/08\/9.jpg\" alt=\"\" \/><\/p>\n<p>\u7b2c\u4e94\u8f6e\uff1a\u4ecev1-v6-v4\u51fa\u53d1\uff0c\u8ba1\u7b97v1\u901a\u8fc7v6\u53cav4\u5230\u5176\u5b83\u8282\u70b9\u7684\u8ddd\u79bb<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/lingbo.online\/wp-content\/uploads\/2023\/08\/10.jpg\" alt=\"\" \/><\/p>\n<ul>\n<li>\u904d\u5386\u5168\u8868\u53d1\u73b0\uff0c12\u662f\u73b0\u5b58\u7684\u6700\u5c0f\u503c\uff0c\u5bf9\u5e94v1-v6-v2-v3\u8def\u5f84\u6700\u77ed<\/li>\n<li>\u6dfb\u52a0\u6700\u77ed\u8def\u5f84v1-v6-v2-v3<\/li>\n<li>v3\u5217\u4e0d\u518d\u8003\u8651<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/lingbo.online\/wp-content\/uploads\/2023\/08\/12.jpg\" alt=\"\" \/><\/p>\n<ul>\n<li>\u7531\u4e8e\u5168\u90e8\u5217\u5df2\u7ecf\u5220\u9664\uff0c\u56e0\u6b64\u7ed3\u675f\u904d\u5386<\/li>\n<li>\u6bcf\u5217\u7684\u6807\u7ea2\u503c\u4e3av1\u5230\u8be5\u8282\u70b9\u7684\u6700\u77ed\u8ddd\u79bb\uff1b\u4eceS\u5217\u4e2d\u627e\u7ed3\u5c3e\u4e3a\u8be5\u5217\u7684\u8def\u5f84<\/li>\n<li>eg\uff1av2\u5217\u6807\u7ea2\u503c\u4e3a5\uff0c\u8bf4\u660ev1\u5230v2\u7684\u6700\u77ed\u8ddd\u79bb\u4e3a5<\/li>\n<li>S\u4e2d\u7ed3\u5c3e\u4e3av2\uff0c\u5bf9\u5e94\u7684\u8def\u5f84\u4e3av1-v6-v2<\/li>\n<\/ul>\n<h3>\u4ee3\u7801\u5b9e\u73b0<\/h3>\n<pre><code class=\"language-python\">def dijkstra(graph, startIndex, path, cost, max):\n    &quot;&quot;&quot;\n    \u6c42\u89e3\u5404\u8282\u70b9\u6700\u77ed\u8def\u5f84\uff0c\u83b7\u53d6path\uff0c\u548ccost\u6570\u7ec4\uff0c\n    path[i] \u8868\u793avi\u8282\u70b9\u7684\u524d\u7ee7\u8282\u70b9\u7d22\u5f15\uff0c\u4e00\u76f4\u8ffd\u6eaf\u5230\u8d77\u70b9\u3002\n    cost[i] \u8868\u793avi\u8282\u70b9\u7684\u82b1\u8d39\n    &quot;&quot;&quot;\n    lenth = len(graph)\n    v = [0] * lenth\n    # \u521d\u59cb\u5316 path\uff0ccost\uff0cV\n    for i in range(lenth):\n        if i == startIndex:\n            v[startIndex] = 1\n        else:\n            cost[i] = graph[startIndex][i]\n            path[i] = (startIndex if (cost[i] &lt; max) else -1)\n    # print v, cost, path\n    for i in range(1, lenth):\n        minCost = max\n        curNode = -1\n        for w in range(lenth):\n            if v[w] == 0 and cost[w] &lt; minCost:\n                minCost = cost[w]\n                curNode = w\n        # for \u83b7\u53d6\u6700\u5c0f\u6743\u503c\u7684\u8282\u70b9\n        if curNode == -1: break\n        # \u5269\u4e0b\u90fd\u662f\u4e0d\u53ef\u901a\u884c\u7684\u8282\u70b9\uff0c\u8df3\u51fa\u5faa\u73af\n        v[curNode] = 1\n        for w in range(lenth):\n            if v[w] == 0 and (graph[curNode][w] + cost[curNode] &lt; cost[w]):\n                cost[w] = graph[curNode][w] + cost[curNode] # \u66f4\u65b0\u6743\u503c\n                path[w] = curNode # \u66f4\u65b0\u8def\u5f84\n        # for \u66f4\u65b0\u5176\u4ed6\u8282\u70b9\u7684\u6743\u503c\uff08\u8ddd\u79bb\uff09\u548c\u8def\u5f84\n    return path\n\nif __name__ == &#039;__main__&#039;:\n    max = 2147483647\n    graph = [\n        [max, 10, max, max, max, 3],\n        [max, max, 7, 5, max, max],\n        [max, max, max, max, max, max],\n        [max, max, 4, max, 7, max],\n        [max, max, max, max, max, max],\n        [max, 2, max, 6, 1, max],\n        ]\n    path = [0] * 6\n    cost = [0] * 6<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u7b97\u6cd5\u7b80\u4ecb \u8fea\u6770\u65af\u7279\u62c9\u7b97\u6cd5(Dijkstra)\u662f\u7531\u8377\u5170\u8ba1\u7b97\u673a\u79d1\u5b66\u5bb6\u72c4\u514b\u65af\u7279\u62c9\u4e8e1959\u5e74\u63d0\u51fa\u7684\uff0c\u56e0\u6b64\u53c8\u53eb\u72c4\u514b\u65af\u7279\u62c9\u7b97\u6cd5\u3002\u8fd9\u662f\u4ece\u4e00\u4e2a\u9876 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[2,31],"tags":[20,19,10],"class_list":["post-256","post","type-post","status-publish","format-standard","hentry","category-algorithm_learning","category-operations","tag-dijkstra","tag-19","tag-10"],"_links":{"self":[{"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/posts\/256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/comments?post=256"}],"version-history":[{"count":2,"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/posts\/256\/revisions"}],"predecessor-version":[{"id":272,"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/posts\/256\/revisions\/272"}],"wp:attachment":[{"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/media?parent=256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/categories?post=256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/tags?post=256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}