{"id":279,"date":"2023-08-17T20:20:37","date_gmt":"2023-08-17T12:20:37","guid":{"rendered":"http:\/\/lingbo.online\/?p=279"},"modified":"2023-09-15T00:18:57","modified_gmt":"2023-09-14T16:18:57","slug":"alm_sort","status":"publish","type":"post","link":"https:\/\/lingbo.online\/index.php\/algorithm_learning\/alm_sort\/","title":{"rendered":"\u6392\u5e8f\u7b97\u6cd5\u603b\u7ed3"},"content":{"rendered":"<h3>\u5192\u6ce1\u6392\u5e8f\uff08Bubble Sort\uff09<\/h3>\n<h4>\u7b97\u6cd5\u539f\u7406<\/h4>\n<p>\u5192\u6ce1\u6392\u5e8f\u7684\u7b97\u6cd5\u539f\u7406\u662f\u6bd4\u8f83\u76f8\u90bb\u7684\u5143\u7d20\uff0c\u5982\u679c\u524d\u4e00\u4e2a\u6bd4\u540e\u4e00\u4e2a\u5927\uff0c\u5c31\u628a\u4ed6\u4eec\u4e24\u4e2a\u4f4d\u7f6e\u5bf9\u8c03\uff1b\u5bf9\u6392\u5e8f\u6570\u7ec4\u4e2d\u7684\u6bcf\u4e00\u5bf9\u76f8\u90bb\u5143\u7d20\u505a\u540c\u6837\u5de5\u4f5c\uff0c\u76f4\u5230\u5168\u90e8\u5b8c\u6210\u3002\u6b64\u65f6\u6700\u540e\u7684\u5143\u7d20\u5c06\u4f1a\u662f\u672c\u8f6e\u6700\u5927\u7684\u5143\u7d20\uff1b\u5bf9\u5269\u4e0b\u5143\u7d20\u8fdb\u884c\u91cd\u590d\u64cd\u4f5c\uff0c\u76f4\u81f3\u6ca1\u6709\u4efb\u4f55\u4e00\u4e2a\u5143\u7d20\u9700\u8981\u6bd4\u8f83\u3002<\/p>\n<figure id=\"attachment_295\" aria-describedby=\"caption-attachment-295\" style=\"width: 826px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lingbo.online\/wp-content\/uploads\/2023\/08\/bubble_sort.gif\" alt=\"\" width=\"826\" height=\"257\" class=\"size-full wp-image-295\" \/><figcaption id=\"caption-attachment-295\" class=\"wp-caption-text\">\u5192\u6ce1\u6392\u5e8f\u6f14\u793a<\/figcaption><\/figure>\n<h4>\u7b97\u6cd5\u4ee3\u7801<\/h4>\n<pre><code class=\"language-python\">#\u5192\u6ce1\u6392\u5e8f\ndef bubble_sort(li):\n    n=len(li)\n    for i in range(0,n-1):\n        is_exchanged=Fasle\n        for j in range(0,n-i-1):\n            if li[j]&gt;li[j+1]:\n                li[j],li[j+1]=li[j+1],li[j]\n                is_exchanged=True\n        if is_exchenged=Fasle:\n        break\n    return li\n<\/code><\/pre>\n<h4>\u590d\u6742\u5ea6\u5206\u6790<\/h4>\n<ul>\n<li>\u65f6\u95f4\u590d\u6742\u5ea6\uff1aO\uff08n^2\uff09<\/li>\n<li>\u7a7a\u95f4\u590d\u6742\u5ea6: O\uff081\uff09<\/li>\n<li>\u7b97\u6cd5\u7a33\u5b9a\u6027\uff1a\u7a33\u5b9a<\/li>\n<\/ul>\n<h3>\u9009\u62e9\u6392\u5e8f<\/h3>\n<h4>\u7b97\u6cd5\u601d\u8def<\/h4>\n<ol>\n<li>\u4e00\u8d9f\u6392\u5e8f\u8bb0\u5f55\u6700\u5c0f\u7684\u6570\uff0c\u653e\u5230\u7b2c\u4e00\u4e2a\u4f4d\u7f6e\uff1b<\/li>\n<li>\u518d\u4e00\u8d9f\u6392\u5e8f\u8bb0\u5f55\u8bb0\u5f55\u5217\u8868\u65e0\u5e8f\u533a\u6700\u5c0f\u7684\u6570\uff0c\u653e\u5230\u7b2c\u4e8c\u4e2a\u4f4d\u7f6e\uff1b<\/li>\n<li>\u91cd\u590d\u8be5\u601d\u8def\uff1b<\/li>\n<li>\u7b97\u6cd5\u5173\u952e\u70b9\uff1a\u6709\u5e8f\u533a\u548c\u65e0\u5e8f\u533a\u3001\u65e0\u5e8f\u533a\u6700\u5c0f\u6570\u7684\u4f4d\u7f6e\u3002<\/li>\n<\/ol>\n<h4>\u7b97\u6cd5\u4ee3\u7801<\/h4>\n<pre><code class=\"language-python\">def select_sort(li):\n    for i in range(len(li)-1):\n        min_loc=i\n        for j in range(i+1,len(li)):\n            if li[j]&lt;li[min_loc]:\n                min_loc=j\n            li[i],li[min_loc]=li[min_loc],li[i]\n    return li<\/code><\/pre>\n<h4>\u590d\u6742\u5ea6\u5206\u6790<\/h4>\n<ul>\n<li>\u65f6\u95f4\u590d\u6742\u5ea6\uff1aO(n^2)<\/li>\n<li>\u7a7a\u95f4\u590d\u6742\u5ea6\uff1aO(1)<\/li>\n<\/ul>\n<h3>\u63d2\u5165\u6392\u5e8f<\/h3>\n<h4>\u7b97\u6cd5\u601d\u8def<\/h4>\n<ol>\n<li>\u5c06\u5f85\u6392\u5e8f\u5217\u8868\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\u5f53\u505a\u5df2\u6392\u5217\u5143\u7d20\uff0c\u7b2c\u4e8c\u4e2a\u5143\u7d20\u5230\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u5f53\u6210\u672a\u6392\u5217\u5e8f\u5217\uff1b<\/li>\n<li>\u53d6\u672a\u6392\u5e8f\u5e8f\u5217\u4e2d\u7b2c\u4e00\u4e2a\u6570\u636e\uff0c\u63d2\u5165\u5230\u5df2\u6392\u5e8f\u5e8f\u5217\u4e2d\u987a\u5e8f\u6b63\u786e\u7684\u4f4d\u7f6e\u3002\u5c06\u672a\u6392\u5e8f\u7684\u7b2c\u4e00\u4e2a\u6570\u636e\u4e0e\u76f8\u90bb\u7684\u524d\u4e00\u4e2a\u6570\u636e\uff08\u5df2\u6392\u5e8f\u5e8f\u5217\u7684\u6700\u540e\u4e00\u4e2a\u6570\u636e\uff09\u8fdb\u884c\u6bd4\u8f83\uff0c\u5982\u679c\u987a\u5e8f\u9519\u8bef\u5219\u4ea4\u6362\u4f4d\u7f6e\uff0c\u4ea4\u6362\u4f4d\u7f6e\u540e\u7ee7\u7eed\u4e0e\u76f8\u90bb\u7684\u524d\u4e00\u4e2a\u6570\u636e\u8fdb\u884c\u6bd4\u8f83\uff0c\u76f4\u5230\u4e0d\u9700\u8981\u4ea4\u6362\u5219\u63d2\u5165\u5b8c\u6210\u3002\u6bcf\u6b21\u63d2\u5165\u6570\u636e\u540e\uff0c\u5df2\u6392\u5e8f\u5e8f\u5217\u90fd\u662f\u6392\u597d\u5e8f\u7684\uff1b<\/li>\n<li>\u91cd\u590d\u4e0a\u4e00\u6b65\uff0c\u7ee7\u7eed\u63d2\u5165\u4e0b\u4e00\u4e2a\u6570\u636e\u3002\u6bcf\u8fdb\u884c\u4e00\u6b21\u63d2\u5165\uff0c\u5df2\u6392\u5e8f\u5e8f\u5217\u957f\u5ea6\u52a01\uff0c\u672a\u6392\u5e8f\u5e8f\u5217\u7684\u957f\u5ea6\u51cf1\uff0c\u76f4\u5230\u5217\u8868\u4e2d\u6240\u6709\u6570\u636e\u90fd\u63d2\u5165\u5230\u5df2\u6392\u5e8f\u5e8f\u5217\uff0c\u5219\u5217\u8868\u6392\u5e8f\u5b8c\u6210\u3002<\/li>\n<\/ol>\n<h4>\u7b97\u6cd5\u4ee3\u7801<\/h4>\n<pre><code class=\"language-python\">def insert_sort(li):\n    for i in range(1,len(li)):\n        tmp=li[i]\n        j=i-1\n        while j&gt;=0 and tmp&lt;li[j]:\n            li[j+1]=li[j]\n            j=j-1\n        li[j+1]=tmp<\/code><\/pre>\n<h4>\u590d\u6742\u5ea6\u5206\u6790<\/h4>\n<ul>\n<li>\u65f6\u95f4\u590d\u6742\u5ea6\uff1aO\uff08n^2\uff09<\/li>\n<li>\u7a7a\u95f4\u590d\u6742\u5ea6\uff1aO\uff081\uff09<\/li>\n<\/ul>\n<h3>\u5feb\u901f\u6392\u5e8f<\/h3>\n<h4>\u7b97\u6cd5\u601d\u8def<\/h4>\n<ol>\n<li>\u4ece\u8981\u6392\u5e8f\u7684\u6570\u4e2d\u9009\u51fa\u4e00\u4e2a\u6570\u4f5c\u4e3a<code>pivot<\/code>(\u8f74)\uff0c\u4e5f\u5c31\u662f\u524d\u540e\u4e24\u90e8\u5206\u7684\u5206\u754c\u70b9\uff08\u53ef\u4ee5\u9009\u7b2c\u4e00\u4e2a\u6570\u6216\u8005\u6700\u540e\u4e00\u4e2a\u6570\u6216\u8005\u6b63\u4e2d\u95f4\u7684\u6570\u6216\u8005\u968f\u673a\u6570\uff0c\u4f46\u6709\u4e9b\u9009\u6cd5\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u80fd\u4f1a\u51fa\u73b0\u95ee\u9898\uff09\uff1b<\/li>\n<li>\u628a\u6574\u4e2a\u6570\u5217\u5206\u6210\u4e24\u90e8\u5206\uff1a<code>\uff08\u5c0f\u4e8e\u7b49\u4e8epivot\u7684\uff09\uff0c\uff08\u5927\u4e8e\u7b49\u4e8epivot\u7684\uff09<\/code>\uff0c\u5373\u904d\u5386\u4e00\u904d\u6574\u4e2a\u6570\u5217\uff0c\u628a\u5c0f\u4e8e\u7b49\u4e8e<code>pivot<\/code>\u7684\u6570\u5168\u90e8\u653e\u5230<code>pivot<\/code>\u7684\u5de6\u8fb9\uff0c\u628a\u5927\u4e8e\u7b49\u4e8e<code>pivot<\/code>\u7684\u6570\u5168\u90e8\u653e\u5230<code>pivot<\/code>\u7684\u53f3\u8fb9\uff08\u6570\u5217\u4e2d\u4f1a\u5b58\u5728\u4e00\u4e9b\u548c<code>pivot<\/code>\u76f8\u7b49\u7684\u6570\uff0c\u8fd9\u4e9b\u6570\u5206\u5230\u5de6\u8fb9\u6216\u8005\u53f3\u8fb9\u90fd\u65e0\u6240\u8c13\uff0c\u53ef\u4ee5\u53ea\u5206\u5230\u67d0\u4e00\u8fb9\u4e5f\u53ef\u4ee5\u4e24\u8fb9\u90fd\u5206\uff09\uff1b<\/li>\n<li>\u5bf9\u5de6\u53f3\u4e24\u8fb9\u518d\u4f7f\u7528\u5feb\u901f\u6392\u5e8f\u8fdb\u884c\u6392\u5e8f\uff0c\u5f97\u5230<code>\uff08\u5c0f\u4e8e\u7b49\u4e8epivot\u4e14\u6709\u5e8f\uff09\uff0c\uff08\u5927\u4e8e\u7b49\u4e8epivot\u4e14\u6709\u5e8f\uff09<\/code>\uff0c\u8fd9\u6837\u6574\u5217\u4e66\u5c31\u6709\u5e8f\u4e86\u3002<\/li>\n<\/ol>\n<h4>\u7b97\u6cd5\u4ee3\u7801<\/h4>\n<pre><code class=\"language-python\">def quick_sort(li,start,end):\n    if start&gt;end:\n        return li\n    left=start\n    right=end\n    #\u5b9a\u4e49\u57fa\u51c6pivot\n    pivot=li[start]\n    while left&lt;right:\n        #\u4ece\u540e\u5411\u524d\u626b\u63cf\n        while left&lt;right and li[right]&gt;pivot:\n            right-=1\n        li[left]=li[right]\n        #\u4ece\u524d\u5411\u540e\u626b\u63cf\n        while left&lt;right and li[left]&lt;pivot:\n            left+=1\n        li[right]=li[left]\n    li[right]=pivot\n\n    #\u5206\u6bb5\u6392\u5e8f\n    quick_sort(li,start,left-1)\n    quick_sort(li,left+1,end)\n\n    return li<\/code><\/pre>\n<h4>\u590d\u6742\u5ea6\u5206\u6790<\/h4>\n<ul>\n<li>\u65f6\u95f4\u590d\u6742\u5ea6\uff1aO\uff08nlogn\uff09<\/li>\n<li>\u7a7a\u95f4\u590d\u6742\u5ea6\uff1aO\uff08n\uff09<\/li>\n<\/ul>\n<h3>\u5806\u6392\u5e8f<\/h3>\n<h4>\u57fa\u672c\u6982\u5ff5<\/h4>\n<ul>\n<li>\u5806\uff1a\u4e00\u79cd\u7279\u6b8a\u7684\u5b8c\u5168\u4e8c\u53c9\u6811\u7ed3\u6784\n<ul>\n<li>\u5927\u6839\u5806\uff1a\u4e00\u68f5\u5b8c\u5168\u4e8c\u53c9\u6811\uff0c\u6ee1\u8db3\u4efb\u4e00\u8282\u70b9\u90fd\u6bd4\u5176\u5b69\u5b50\u8282\u70b9\u5927<\/li>\n<li>\u5c0f\u6839\u5806\uff1a\u4e00\u68f5\u5b8c\u5168\u4e8c\u53c9\u6811\uff0c\u6ee1\u8db3\u4efb\u610f\u8282\u70b9\u90fd\u6bd4\u5176\u5b69\u5b50\u8282\u70b9\u5c0f<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>\u7b97\u6cd5\u601d\u60f3<\/h4>\n<ol>\n<li>\u5efa\u7acb\u5806\uff1b<\/li>\n<li>\u5f97\u5230\u5806\u9876\u5143\u7d20\uff0c\u4e3a\u6700\u5927\u5143\u7d20\uff1b<\/li>\n<li>\u53bb\u6389\u5806\u9876\uff0c\u5c06\u5806\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u653e\u5230\u5806\u9876\uff0c\u6b64\u65f6\u53ef\u4ee5\u901a\u8fc7\u4e00\u6b21\u8c03\u6574\u91cd\u65b0\u4f7f\u5806\u6709\u5e8f\uff1b<\/li>\n<li>\u5806\u9876\u5143\u7d20\u4e3a\u7b2c\u4e8c\u5927\u5143\u7d20\uff1b<\/li>\n<li>\u91cd\u590d\u6b65\u9aa43\uff0c\u76f4\u5230\u5806\u53d8\u7a7a<\/li>\n<\/ol>\n<h4>\u7b97\u6cd5\u4ee3\u7801<\/h4>\n<pre><code class=\"language-python\">def sift(data,low,high):\n    i=low\n    #j\u4e3a\u5de6\u5b69\u5b50\n    j=2*i+1\n    tmp=data[i]\n    while j&lt;=high:\n        #\u5982\u679c\u5de6\u5b69\u5b50\u5c0f\u4e8e\u53f3\u5b69\u5b50\n        if j&lt;high and data[j]&lt;data[j+1]:\n            j+=1\n        #\u5982\u679c\u7236\u8282\u70b9\u7684\u503c\u5c0f\u4e8e\u5b50\u8282\u70b9\n        if tmp&lt;data[j]:\n            #\u5c06\u7236\u8282\u70b9\u7684\u503c\u8d4b\u503c\u7ed9\u5b50\u8282\u70b9\n            data[i]=data[j]\n            i=j\n            j=2*i+1\n        else:\n            break\n    data[i]=tmp\n\n    def heap_sort(data):\n        n=len(data)\n        for i in range(n\/\/2-1,-1,-1):\n            sift(data,i,n-1)\n        for i in range(n-1,-1,-1):\n            data[0],data[i]=data[i],data[0]\n            sift(data,0,i-1)<\/code><\/pre>\n<h4>topk\u95ee\u9898<\/h4>\n<p>\u89e3\u51b3\u601d\u8def\uff1a<\/p>\n<ul>\n<li>\u53d6\u5217\u8868\u524dk\u4e2a\u5143\u7d20\u5efa\u7acb\u4e00\u4e2a\u5c0f\u6839\u5806\uff0c\u5806\u9876\u5c31\u662f\u76ee\u524d\u7b2ck\u5927\u7684\u6570\uff1b<\/li>\n<li>\u4f9d\u6b21\u5411\u540e\u904d\u5386\u539f\u5217\u8868\uff0c\u5bf9\u4e8e\u5217\u8868\u4e2d\u7684\u5143\u7d20\uff0c\u5982\u679c\u5c0f\u4e8e\u5806\u9876\uff0c\u5219\u5ffd\u7565\u8be5\u5143\u7d20\uff1b\u5982\u679c\u5927\u4e8e\u5806\u9876\uff0c\u5219\u5c06\u5806\u9876\u66f4\u6362\u4e3a\u8be5\u5143\u7d20\uff0c\u5e76\u4e14\u5bf9\u5806\u8fdb\u884c\u4e00\u6b21\u8c03\u6574\uff1b<\/li>\n<li>\u904d\u5386\u5217\u8868\u6240\u6709\u5143\u7d20\u540e\uff0c\u5012\u5e8f\u5f39\u51fa\u5806\u9876<\/li>\n<\/ul>\n<h4>\u590d\u6742\u5ea6\u5206\u6790<\/h4>\n<ul>\n<li>\u65f6\u95f4\u590d\u6742\u5ea6\uff1aO\uff08nlogn\uff09<\/li>\n<li>\u7a7a\u95f4\u590d\u6742\u5ea6\uff1aO\uff081\uff09<\/li>\n<\/ul>\n<h3>\u5f52\u5e76\u6392\u5e8f<\/h3>\n<h4>\u7b97\u6cd5\u601d\u8def<\/h4>\n<p>\u5f52\u5e76\u6392\u5e8f\u662f\u7528\u5206\u652f\u601d\u60f3\uff0c\u5206\u6cbb\u6a21\u5f0f\u5728\u6bcf\u4e00\u5c42\u9012\u5f52\u4e0a\u6709\u4e09\u4e2a\u6b65\u9aa4\uff1a<\/p>\n<ul>\n<li>\u5206\u89e3\uff08Divide\uff09\uff1a\u5c06n\u4e2a\u5143\u7d20\u5206\u6210\u542bn\/2\u4e2a\u5143\u7d20\u7684\u5b50\u5e8f\u5217\uff1b<\/li>\n<li>\u89e3\u51b3\uff08Conquer\uff09\uff1a\u7528\u5408\u5e76\u6392\u5e8f\u6cd5\u5bf9\u4e24\u4e2a\u5b50\u5e8f\u5217\u9012\u5f52\u7684\u6392\u5e8f\uff1b<\/li>\n<li>\u5408\u5e76\uff08Combine\uff09\uff1a\u5408\u5e76\u4e24\u4e2a\u5df2\u6392\u5e8f\u7684\u5b50\u5e8f\u5217\u5f97\u5230\u6392\u5e8f\u7ed3\u679c<br \/>\n\u5f52\u5e76\u6392\u5e8f\u53ef\u4ee5\u4f7f\u7528\u9012\u5f52\u7684\u65b9\u6cd5\u8fdb\u884c\uff1a<\/p>\n<ol>\n<li>\u5c06\u5e8f\u5217\u6bcf\u76f8\u90bb\u7684\u4e24\u4e2a\u6570\u5b57\u8fdb\u884c\u5f52\u5e76\u64cd\u4f5c\uff0c\u5f62\u6210floor(n\/2)\u4e2a\u5e8f\u5217\uff0c\u6392\u5e8f\u540e\u6bcf\u4e2a\u5e8f\u5217\u5305\u542b\u4e24\u4e2a\u5143\u7d20\uff1b<\/li>\n<li>\u5c06\u4e0a\u8ff0\u5e8f\u5217\u518d\u6b21\u5f52\u5e76\uff0c\u5f62\u6210floor(n\/4)\u4e2a\u5e8f\u5217\uff0c\u6bcf\u4e2a\u5e8f\u5217\u5305\u542b\u56db\u4e2a\u5143\u7d20\uff1b<\/li>\n<li>\u91cd\u590d\u6b65\u9aa42\uff0c\u76f4\u5230\u6240\u6709\u5143\u7d20\u6392\u5e8f\u5b8c\u6bd5<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<figure id=\"attachment_294\" aria-describedby=\"caption-attachment-294\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lingbo.online\/wp-content\/uploads\/2023\/08\/\u5f52\u5e76\u6392\u5e8f.gif\" alt=\"\" width=\"300\" height=\"180\" class=\"size-full wp-image-294\" \/><figcaption id=\"caption-attachment-294\" class=\"wp-caption-text\">\u5f52\u5e76\u6392\u5e8f\u6f14\u793a<\/figcaption><\/figure>\n<h4>\u7b97\u6cd5\u4ee3\u7801<\/h4>\n<pre><code class=\"language-python\">def merge(li,low,mid,high):\n    i=low\n    j=mid+1\n    ltmp=[]\n    while i&lt;=mid and j&lt;=high:\n        if li[i]&lt;li[j]:\n        ltmp.append(li[i])\n            i+=1\n        else:\n            ltmp.append(li[j])\n            j+=1\n    while i&lt;=mid:\n        ltmp.append(li[i])\n        i+=1\n    while j&lt;=high:\n        ltmp.append(li[j])\n        j+=1\n    li[low:high+1]=ltmp\n\ndef mergesort(li,low,high):\n    if low&lt;high:\n        mid=(low+high)\/\/2\n        mergesort(li,low,mid)\n        mergesort(li,mid+1,high)\n        merge(li,low,mid,high)\n\nmergesort(li,0,len(li)-1)<\/code><\/pre>\n<h4>\u590d\u6742\u5ea6\u5206\u6790<\/h4>\n<ul>\n<li>\u65f6\u95f4\u590d\u6742\u5ea6\uff1aO\uff08nlogn\uff09<\/li>\n<li>\u7a7a\u95f4\u590d\u6742\u5ea6\uff1aO\uff08n\uff09<\/li>\n<li>\u7b97\u6cd5\u7a33\u5b9a\u6027\uff1a\u7a33\u5b9a<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5192\u6ce1\u6392\u5e8f\uff08Bubble Sort\uff09 \u7b97\u6cd5\u539f\u7406 \u5192\u6ce1\u6392\u5e8f\u7684\u7b97\u6cd5\u539f\u7406\u662f\u6bd4\u8f83\u76f8\u90bb\u7684\u5143\u7d20\uff0c\u5982\u679c\u524d\u4e00\u4e2a\u6bd4\u540e\u4e00\u4e2a\u5927\uff0c\u5c31\u628a\u4ed6\u4eec\u4e24\u4e2a\u4f4d\u7f6e\u5bf9\u8c03\uff1b\u5bf9\u6392 &#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":[32,2],"tags":[33,34,10],"class_list":["post-279","post","type-post","status-publish","format-standard","hentry","category-data_structure","category-algorithm_learning","tag-33","tag-34","tag-10"],"_links":{"self":[{"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/posts\/279","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=279"}],"version-history":[{"count":5,"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/posts\/279\/revisions"}],"predecessor-version":[{"id":481,"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/posts\/279\/revisions\/481"}],"wp:attachment":[{"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/media?parent=279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/categories?post=279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lingbo.online\/index.php\/wp-json\/wp\/v2\/tags?post=279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}