{"id":9252,"date":"2024-04-22T23:18:40","date_gmt":"2024-04-22T15:18:40","guid":{"rendered":"\/?p=9252"},"modified":"2024-04-22T23:18:40","modified_gmt":"2024-04-22T15:18:40","slug":"%e4%bc%98%e5%85%88%e7%ba%a7%e9%98%9f%e5%88%97priorityqueue","status":"publish","type":"post","link":"\/?p=9252","title":{"rendered":"\u4f18\u5148\u7ea7\u961f\u5217PriorityQueue"},"content":{"rendered":"<h2>\u6982\u8ff0<\/h2>\n<p>\u4f18\u5148\u961f\u5217\u662f\u4e00\u79cd\u7528\u6765\u7ef4\u62a4\u4e00\u7ec4\u5143\u7d20\u6784\u6210\u7684\u7ed3\u5408S\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5176\u4e2d\u6bcf\u4e2a\u5143\u7d20\u90fd\u6709\u4e00\u4e2a\u5173\u952e\u5b57key\uff0c\u5143\u7d20\u4e4b\u95f4\u7684\u6bd4\u8f83\u90fd\u662f\u901a\u8fc7key\u6765\u6bd4\u8f83\u7684\u3002\u4f18\u5148\u961f\u5217\u5305\u62ec\u6700\u5927\u4f18\u5148\u961f\u5217\u548c\u6700\u5c0f\u4f18\u5148\u961f\u5217\uff0c\u4f18\u5148\u961f\u5217\u7684\u5e94\u7528\u6bd4\u8f83\u5e7f\u6cdb\uff0c\u6bd4\u5982\u4f5c\u4e1a\u7cfb\u7edf\u4e2d\u7684\u8c03\u5ea6\u7a0b\u5e8f\uff0c\u5f53\u4e00\u4e2a\u4f5c\u4e1a\u5b8c\u6210\u540e\uff0c\u9700\u8981\u5728\u6240\u6709\u7b49\u5f85\u8c03\u5ea6\u7684\u4f5c\u4e1a\u4e2d\u9009\u62e9\u4e00\u4e2a\u4f18\u5148\u7ea7\u6700\u9ad8\u7684\u4f5c\u4e1a\u6765\u6267\u884c\uff0c\u5e76\u4e14\u4e5f\u53ef\u4ee5\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u4f5c\u4e1a\u5230\u4f5c\u4e1a\u7684\u4f18\u5148\u961f\u5217\u4e2d\u3002Java\u4e2d\uff0cPriorityQueue\u7684\u5e95\u5c42\u6570\u636e\u7ed3\u6784\u5c31\u662f\u5806\uff08\u9ed8\u8ba4\u662f\u5c0f\u5806\uff09\uff0c\u5173\u4e8eJava\u7684PriorityQueue\u66f4\u591a\u77e5\u8bc6\u8bf7\u70b9\u51fb\uff1a<a href=\"http:\/\/www.cnblogs.com\/CarpenterLee\/p\/5488070.html\">\u6df1\u5165\u7406\u89e3Java PriorityQueue<\/a>\u3002<\/p>\n<p>\u3000\u3000\u4f18\u5148\u961f\u5217\u7684\u5b9e\u73b0\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u9009\u62e9\u5806\u6570\u636e\u7ed3\u6784\uff0c\u6700\u5927\u4f18\u5148\u961f\u5217\u53ef\u4ee5\u9009\u7528\u5927\u5806\uff0c\u6700\u5c0f\u4f18\u5148\u961f\u5217\u53ef\u4ee5\u9009\u7528\u5c0f\u5806\u6765\u5b9e\u73b0\u3002\u4e0b\u9762\u4ee5\u6700\u5927\u4f18\u5148\u961f\u5217\u6765\u8bb2\u89e3\u5176\u539f\u7406\u3002\u6700\u5927\u4f18\u5148\u961f\u5217\u4e00\u822c\u5305\u62ec\u5c06\u4e00\u4e2a\u5143\u7d20\u63d2\u5165\u5230\u96c6\u5408S\u4e2d\u3001\u8fd4\u56de\u96c6\u5408S\u4e2d\u5177\u6709\u6700\u5927key\u7684\u5143\u7d20\u3001\u8fd4\u56de\u5e76\u5220\u9664\u96c6\u5408S\u4e2d\u5177\u6709\u6700\u5927key\u7684\u5143\u7d20\u7b49\u3002<\/p>\n<p>\u4f18\u5148\u7ea7\u961f\u5217\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u961f\u5217\u6570\u636e\u7ed3\u6784\uff0c\u5b83\u4e0e\u666e\u901a\u961f\u5217\u7684\u4e0d\u540c\u4e4b\u5904\u5728\u4e8e\uff0c\u5b83\u4e0d\u662f\u6309\u7167\u5143\u7d20\u5148\u540e\u987a\u5e8f\u6765\u8fdb\u884c\u51fa\u961f\uff0c\u800c\u662f\u6309\u7167\u5143\u7d20\u7684\u4f18\u5148\u7ea7\u6765\u51b3\u5b9a\u51fa\u961f\u987a\u5e8f\u3002\u4f18\u5148\u7ea7\u961f\u5217\u7684\u597d\u5904\u3001\u7279\u70b9\u548c\u539f\u7406\u5982\u4e0b\uff1a<\/p>\n<h3>\u597d\u5904\uff1a<\/h3>\n<ol>\n<li>\n<p><strong>\u9ad8\u6548\u7684\u63d2\u5165\u548c\u5220\u9664\u64cd\u4f5c<\/strong>\uff1a\u4f18\u5148\u7ea7\u961f\u5217\u5728\u63d2\u5165\u548c\u5220\u9664\u5143\u7d20\u65f6\uff0c\u65f6\u95f4\u590d\u6742\u5ea6\u901a\u5e38\u6bd4\u8f83\u4f4e\uff0c\u56e0\u6b64\u53ef\u4ee5\u9ad8\u6548\u5730\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u9002\u7528\u4e8e\u5404\u79cd\u5e94\u7528\u573a\u666f<\/strong>\uff1a\u7531\u4e8e\u53ef\u4ee5\u6839\u636e\u4f18\u5148\u7ea7\u5bf9\u5143\u7d20\u8fdb\u884c\u6392\u5e8f\uff0c\u56e0\u6b64\u4f18\u5148\u7ea7\u961f\u5217\u9002\u7528\u4e8e\u5404\u79cd\u9700\u8981\u6309\u7167\u4f18\u5148\u7ea7\u5904\u7406\u4efb\u52a1\u7684\u573a\u666f\uff0c\u6bd4\u5982\u4efb\u52a1\u8c03\u5ea6\u3001\u4e8b\u4ef6\u5904\u7406\u7b49\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7075\u6d3b\u6027<\/strong>\uff1a\u4f18\u5148\u7ea7\u961f\u5217\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u5b9e\u73b0\u4e0d\u540c\u7684\u4f18\u5148\u7ea7\u7b56\u7565\uff0c\u6bd4\u5982\u6700\u5c0f\u4f18\u5148\u7ea7\u3001\u6700\u5927\u4f18\u5148\u7ea7\u7b49\uff0c\u56e0\u6b64\u5728\u4e0d\u540c\u573a\u666f\u4e0b\u5177\u6709\u5f88\u9ad8\u7684\u7075\u6d3b\u6027\u3002<\/p>\n<\/li>\n<\/ol>\n<h3>\u7279\u70b9\uff1a<\/h3>\n<ol>\n<li>\n<p><strong>\u81ea\u52a8\u6392\u5e8f<\/strong>\uff1a\u4f18\u5148\u7ea7\u961f\u5217\u4f1a\u6839\u636e\u5143\u7d20\u7684\u4f18\u5148\u7ea7\u81ea\u52a8\u8fdb\u884c\u6392\u5e8f\uff0c\u4f7f\u5f97\u4f18\u5148\u7ea7\u8f83\u9ad8\u7684\u5143\u7d20\u53ef\u4ee5\u66f4\u5feb\u5730\u88ab\u83b7\u53d6\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4f18\u5148\u7ea7\u72ec\u7acb\u4e8e\u5143\u7d20\u7684\u63d2\u5165\u987a\u5e8f<\/strong>\uff1a\u4e0e\u666e\u901a\u961f\u5217\u4e0d\u540c\uff0c\u4f18\u5148\u7ea7\u961f\u5217\u4e2d\u5143\u7d20\u7684\u51fa\u961f\u987a\u5e8f\u4e0e\u5b83\u4eec\u88ab\u63d2\u5165\u7684\u987a\u5e8f\u65e0\u5173\uff0c\u800c\u5b8c\u5168\u7531\u5143\u7d20\u7684\u4f18\u5148\u7ea7\u51b3\u5b9a\u3002<\/p>\n<\/li>\n<\/ol>\n<h3>\u539f\u7406\uff1a<\/h3>\n<p>\u4f18\u5148\u7ea7\u961f\u5217\u7684\u5b9e\u73b0\u539f\u7406\u901a\u5e38\u6d89\u53ca\u4f7f\u7528\u5806\uff08heap\uff09\u6570\u636e\u7ed3\u6784\u3002\u5806\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u6811\u5f62\u6570\u636e\u7ed3\u6784\uff0c\u901a\u5e38\u662f\u4e00\u4e2a\u5b8c\u5168\u4e8c\u53c9\u6811\uff0c\u5177\u6709\u4ee5\u4e0b\u4e24\u4e2a\u6027\u8d28\uff1a<\/p>\n<ul>\n<li>\n<p><strong>\u5806\u5e8f\u6027\u8d28<\/strong>\uff1a\u5728\u6700\u5c0f\u5806\u4e2d\uff0c\u7236\u8282\u70b9\u7684\u503c\u5c0f\u4e8e\u6216\u7b49\u4e8e\u5176\u5b50\u8282\u70b9\u7684\u503c\uff1b\u5728\u6700\u5927\u5806\u4e2d\uff0c\u7236\u8282\u70b9\u7684\u503c\u5927\u4e8e\u6216\u7b49\u4e8e\u5176\u5b50\u8282\u70b9\u7684\u503c\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5b8c\u5168\u4e8c\u53c9\u6811\u6027\u8d28<\/strong>\uff1a\u9664\u4e86\u6700\u5e95\u5c42\u5916\uff0c\u5806\u4e2d\u7684\u6240\u6709\u5c42\u6b21\u90fd\u88ab\u5b8c\u5168\u586b\u5145\uff0c\u800c\u4e14\u6700\u5e95\u5c42\u662f\u4ece\u5de6\u5230\u53f3\u586b\u5145\u7684\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u4f18\u5148\u7ea7\u961f\u5217\u7684\u5b9e\u73b0\u901a\u5e38\u4f7f\u7528\u6700\u5c0f\u5806\u6216\u6700\u5927\u5806\u6765\u7ef4\u62a4\u5143\u7d20\u7684\u4f18\u5148\u7ea7\u3002\u5728\u6700\u5c0f\u5806\u4e2d\uff0c\u6839\u8282\u70b9\u5177\u6709\u6700\u5c0f\u7684\u4f18\u5148\u7ea7\uff0c\u56e0\u6b64\u51fa\u961f\u65f6\u4f1a\u5148\u53d6\u51fa\u4f18\u5148\u7ea7\u6700\u5c0f\u7684\u5143\u7d20\uff1b\u800c\u5728\u6700\u5927\u5806\u4e2d\uff0c\u6839\u8282\u70b9\u5177\u6709\u6700\u5927\u7684\u4f18\u5148\u7ea7\uff0c\u56e0\u6b64\u51fa\u961f\u65f6\u4f1a\u5148\u53d6\u51fa\u4f18\u5148\u7ea7\u6700\u9ad8\u7684\u5143\u7d20\u3002<\/p>\n<p>\u901a\u8fc7\u4f7f\u7528\u5806\u8fd9\u79cd\u6570\u636e\u7ed3\u6784\uff0c\u53ef\u4ee5\u4f7f\u5f97\u4f18\u5148\u7ea7\u961f\u5217\u5728\u63d2\u5165\u548c\u5220\u9664\u5143\u7d20\u65f6\u5177\u6709\u8f83\u4f4e\u7684\u65f6\u95f4\u590d\u6742\u5ea6\uff0c\u4ece\u800c\u63d0\u9ad8\u4e86\u5176\u6548\u7387\u3002<\/p>\n<h2>\u63d2\u5165\u64cd\u4f5c<\/h2>\n<p>\u3000\u3000\u63d2\u5165\u64cd\u4f5c\u662f\u5c06\u4e00\u4e2a\u5143\u7d20\u63d2\u5165\u5230\u96c6\u5408S\u4e2d\uff0c\u9996\u5148\u628a\u8be5\u5143\u7d20\u653e\u5165\u6240\u6709\u5143\u7d20\u7684\u4e0b\u4e00\u4f4d\u7f6e\uff0c\u7136\u540e\u6267\u884c\u201c\u4e0a\u6d6e\u201d\u64cd\u4f5c\uff0c\u5982\u4e0b\u56fe\u793a\u4f8b(\u6ce8\u610f\uff0c\u4e0b\u56fe\u793a\u4f8b\u662f\u5c0f\u5806\uff0c\u4e0d\u8fc7\u539f\u7406\u662f\u4e00\u6837\u7684\uff0c\u56fe\u7247\u6765\u81ea<a href=\"http:\/\/www.cnblogs.com\/CarpenterLee\/p\/5488070.html\">\u6df1\u5165\u7406\u89e3Java PriorityQueue<\/a>)<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/939998-20160512205600890-346195840.png\" alt=\"PriorityQueue_offer.png\" \/><\/p>\n<h2>\u79fb\u9664\u64cd\u4f5c<\/h2>\n<p>\u3000\u3000\u4f18\u5148\u961f\u5217\u4e2d\uff0c\u5728\u961f\u5217\u975e\u7a7a\u60c5\u51b5\u4e0b\u79fb\u9664\u96c6\u5408\u4e2d\u7b2c\u4e00\u4e2a\u5143\u7d20\uff0c\u4e5f\u5c31\u662f\u4e0b\u6807\u4e3a0\u7684\u5143\u7d20\uff0c\u7136\u540e\u5c06\u96c6\u5408\u4e2d\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u79fb\u5230\u4e0b\u6807\u4e3a0\u4f4d\u7f6e\uff0c\u5728\u5c06\u4e0b\u6807\u4e3a0\u7684\u65b0\u5143\u7d20\u6267\u884c\u201c\u4e0b\u6c89\u201d\u64cd\u4f5c\u3002\u5982\u4e0b\u56fe\u793a\u4f8b(\u6ce8\u610f\uff0c\u4e0b\u56fe\u793a\u4f8b\u662f\u5c0f\u5806\uff0c\u4e0d\u8fc7\u539f\u7406\u662f\u4e00\u6837\u7684\uff0c\u56fe\u7247\u6765\u81ea<a href=\"http:\/\/www.cnblogs.com\/CarpenterLee\/p\/5488070.html\">\u6df1\u5165\u7406\u89e3Java PriorityQueue<\/a>)<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/939998-20160512205634609-402016454.png\" alt=\"PriorityQueue_poll.png\" \/><\/p>\n<h2>\u4ee3\u7801<\/h2>\n<p>\u5728Python\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684 <code>queue<\/code> \u6a21\u5757\u6765\u5b9e\u73b0\u4f18\u5148\u7ea7\u961f\u5217\u3002\u5728 <code>queue<\/code> \u6a21\u5757\u4e2d\uff0c\u6709\u4e00\u4e2a\u7c7b\u53eb\u505a <code>PriorityQueue<\/code>\uff0c\u5b83\u5b9e\u73b0\u4e86\u4e00\u4e2a\u57fa\u4e8e\u4f18\u5148\u7ea7\u7684\u961f\u5217\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff0c\u6f14\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u4f18\u5148\u7ea7\u961f\u5217\uff1a<\/p>\n<pre><code class=\"language-python\">import queue\n\n# \u521b\u5efa\u4e00\u4e2a\u4f18\u5148\u7ea7\u961f\u5217\npriority_queue = queue.PriorityQueue()\n\n# \u6dfb\u52a0\u5143\u7d20\u5230\u961f\u5217\u4e2d\uff0c\u6bcf\u4e2a\u5143\u7d20\u662f\u4e00\u4e2a\u5143\u7ec4\uff0c\u5305\u542b\u4f18\u5148\u7ea7\u548c\u6570\u636e\npriority_queue.put((5, &#039;Data 1&#039;))\npriority_queue.put((1, &#039;Data 2&#039;))\npriority_queue.put((3, &#039;Data 3&#039;))\n\n# \u4ece\u961f\u5217\u4e2d\u83b7\u53d6\u5143\u7d20\uff0c\u6309\u7167\u4f18\u5148\u7ea7\u987a\u5e8f\u8f93\u51fa\nwhile not priority_queue.empty():\n    priority, data = priority_queue.get()\n    print(f&#039;Priority: {priority}, Data: {data}&#039;)<\/code><\/pre>\n<p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u5143\u7d20\u88ab\u6dfb\u52a0\u5230\u961f\u5217\u4e2d\u65f6\uff0c\u5b83\u4eec\u4ee5\u5143\u7ec4\u7684\u5f62\u5f0f\u4f20\u9012\uff0c\u5176\u4e2d\u5305\u542b\u4f18\u5148\u7ea7\u548c\u6570\u636e\u3002\u4f18\u5148\u7ea7\u961f\u5217\u4f1a\u6839\u636e\u4f18\u5148\u7ea7\u81ea\u52a8\u6392\u5e8f\uff0c\u4f18\u5148\u7ea7\u8d8a\u4f4e\u7684\u5143\u7d20\u4f1a\u5148\u88ab\u53d6\u51fa\u3002<\/p>\n<p>\u5728 Python \u4e2d\uff0c\u5982\u679c\u4f60\u9700\u8981\u5728<strong>\u5f02\u6b65\u7a0b\u5e8f<\/strong>\u4e2d\u4f7f\u7528\u4f18\u5148\u7ea7\u961f\u5217\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>asyncio.PriorityQueue<\/code>\u3002\u5b83\u662f asyncio \u6a21\u5757\u4e2d\u63d0\u4f9b\u7684\u5f02\u6b65\u4f18\u5148\u7ea7\u961f\u5217\u7684\u5b9e\u73b0\u3002\u4e0e\u540c\u6b65\u7248\u672c\u7684 <code>queue.PriorityQueue<\/code> \u7c7b\u4f3c\uff0c<code>asyncio.PriorityQueue<\/code> \u4e5f\u5141\u8bb8\u4f60\u6309\u7167\u4f18\u5148\u7ea7\u987a\u5e8f\u83b7\u53d6\u5143\u7d20\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff0c\u6f14\u793a\u4e86\u5982\u4f55\u5728\u5f02\u6b65\u73af\u5883\u4e2d\u4f7f\u7528 <code>asyncio.PriorityQueue<\/code>\uff1a<\/p>\n<pre><code class=\"language-python\">import asyncio\n\nasync def producer(queue):\n    # \u6dfb\u52a0\u5143\u7d20\u5230\u961f\u5217\u4e2d\n    await queue.put((3, &#039;Data 1&#039;))\n    await queue.put((1, &#039;Data 2&#039;))\n    await queue.put((5, &#039;Data 3&#039;))\n\nasync def consumer(queue):\n    while True:\n        # \u4ece\u961f\u5217\u4e2d\u83b7\u53d6\u5143\u7d20\n        priority, data = await queue.get()\n        print(f&#039;Priority: {priority}, Data: {data}&#039;)\n        # \u6a21\u62df\u5904\u7406\u65f6\u95f4\n        await asyncio.sleep(1)\n\nasync def main():\n    # \u521b\u5efa\u4e00\u4e2a\u4f18\u5148\u7ea7\u961f\u5217\n    queue = asyncio.PriorityQueue()\n\n    # \u542f\u52a8\u751f\u4ea7\u8005\u548c\u6d88\u8d39\u8005\u4efb\u52a1\n    producer_task = asyncio.create_task(producer(queue))\n    consumer_task = asyncio.create_task(consumer(queue))\n\n    # \u7b49\u5f85\u4efb\u52a1\u5b8c\u6210\n    await asyncio.gather(producer_task, consumer_task)\n\nasyncio.run(main())<\/code><\/pre>\n<p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u751f\u4ea7\u8005\u4efb\u52a1\u548c\u4e00\u4e2a\u6d88\u8d39\u8005\u4efb\u52a1\u3002\u751f\u4ea7\u8005\u4efb\u52a1\u5411\u4f18\u5148\u7ea7\u961f\u5217\u4e2d\u653e\u5165\u5143\u7d20\uff0c\u6d88\u8d39\u8005\u4efb\u52a1\u4ece\u961f\u5217\u4e2d\u83b7\u53d6\u5143\u7d20\u5e76\u8fdb\u884c\u5904\u7406\u3002\u901a\u8fc7 <code>asyncio.PriorityQueue<\/code>\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u5f02\u6b65\u73af\u5883\u4e2d\u5b9e\u73b0\u57fa\u4e8e\u4f18\u5148\u7ea7\u7684\u961f\u5217\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8ff0 \u4f18\u5148\u961f\u5217\u662f\u4e00\u79cd\u7528\u6765\u7ef4\u62a4\u4e00\u7ec4\u5143\u7d20\u6784\u6210\u7684\u7ed3\u5408S\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5176\u4e2d\u6bcf\u4e2a\u5143\u7d20\u90fd\u6709\u4e00\u4e2a\u5173\u952e\u5b57key\uff0c\u5143\u7d20\u4e4b\u95f4\u7684\u6bd4\u8f83\u90fd\u662f\u901a\u8fc7key\u6765\u6bd4\u8f83\u7684\u3002\u4f18\u5148   \u2026 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[260],"tags":[267],"_links":{"self":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts\/9252"}],"collection":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9252"}],"version-history":[{"count":1,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/9252\/revisions"}],"predecessor-version":[{"id":9253,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/9252\/revisions\/9253"}],"wp:attachment":[{"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9252"},{"taxonomy":"post_tag","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}