{"id":763,"date":"2023-07-24T10:26:52","date_gmt":"2023-07-24T02:26:52","guid":{"rendered":"https:\/\/zhaocunwei.co.uk\/?p=763"},"modified":"2023-07-24T10:33:01","modified_gmt":"2023-07-24T02:33:01","slug":"avl","status":"publish","type":"post","link":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/24\/avl\/","title":{"rendered":"AVL\u6811\uff0c\u5e76\u4f7f\u7528Java\u4ee3\u7801\u5b9e\u73b0AVL\u6811\u6848\u4f8b"},"content":{"rendered":"<h1>\u524d\u8a00<\/h1>\n<p>\u6700\u8fd1\u5728\u770b\u6570\u636e\u7ed3\u6784\uff0c\u63d0\u5347\u81ea\u5df1\u7f16\u7801\u80fd\u529b<\/p>\n<h1>\u4ee3\u7801\u5b9e\u73b0<\/h1>\n<p>AVL\u6811\u662f\u4e00\u79cd\u81ea\u5e73\u8861\u4e8c\u53c9\u641c\u7d22\u6811\u3002\u5b83\u7684\u7279\u70b9\u662f:\u6bcf\u4e2a\u8282\u70b9\u7684\u4e24\u4e2a\u5b50\u6811\u7684\u9ad8\u5ea6\u5dee(\u5e73\u8861\u56e0\u5b50)\u6700\u591a\u4e3a1\u3002<br \/>\nAVL\u6811\u901a\u8fc7\u5728\u5fc5\u8981\u65f6\u8fdb\u884c\u6811\u65cb\u8f6c\u6765\u4fdd\u6301\u5e73\u8861,\u5305\u62ecLL(\u5de6\u5de6)\u65cb\u8f6c\u3001RR(\u53f3\u53f3)\u65cb\u8f6c\u3001LR(\u5de6\u53f3)\u65cb\u8f6c\u548cRL(\u53f3\u5de6)\u65cb\u8f6c\u3002\u8fd9\u53ef\u4ee5\u4fdd\u8bc1\u67e5\u627e\u3001\u63d2\u5165\u548c\u5220\u9664\u5728AVERAGE\u548cWORST\u60c5\u51b5\u4e0b\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u90fd\u662fO(logN)\u3002<br \/>\n\u4e0b\u9762\u662fAVL\u6811\u7684Java\u5b9e\u73b0:<\/p>\n<pre><code class=\"language-java\">\/\/ AVL\u6811\u8282\u70b9\u7c7b  \nclass AVLNode {\n  int key;\n  int height;\n  AVLNode left;\n  AVLNode right;\n\n  public AVLNode(int key) {\n    this.key = key;\n    height = 1;\n  }\n}\n\/\/ AVL\u6811\u7c7b\nclass AVLTree {\n  \/\/ \u6839\u8282\u70b9\n  private AVLNode root;\n  \/\/ \u83b7\u53d6\u8282\u70b9\u7684\u9ad8\u5ea6\n  private int getHeight(AVLNode node) {\n    if (node == null) {\n      return 0;\n    }\n    return node.height;\n  }\n  \/\/ \u8ba1\u7b97\u5e73\u8861\u56e0\u5b50\n  private int getBalanceFactor(AVLNode node) {\n    if (node == null) {\n      return 0;\n    }\n    return getHeight(node.left) - getHeight(node.right);\n  }\n  \/\/ LL\u65cb\u8f6c\n  private AVLNode LLRotation(AVLNode node) {\n    AVLNode temp = node.left;\n    node.left = temp.right;\n    temp.right = node;\n    node.height = Math.max(getHeight(node.left), getHeight(node.right)) + 1;\n    temp.height = Math.max(getHeight(temp.left), getHeight(temp.right)) + 1;\n    return temp;\n  }\n  \/\/ RR\u65cb\u8f6c\n  private AVLNode RRRotation(AVLNode node) {\n    \/\/ \u4ee3\u7801\u4e0eLL\u5bf9\u79f0,\u539f\u7406\u76f8\u540c\n  } \n  \/\/ LR\u65cb\u8f6c\n  private AVLNode LRRotation(AVLNode node) {\n    \/\/ \u5206\u4e24\u6b65\u6267\u884c\n    node.left = RRRotation(node.left);\n    return LLRotation(node);\n  }\n  \/\/ RL\u65cb\u8f6c\n  private AVLNode RLRotation(AVLNode node) {\n    \/\/ \u5206\u4e24\u6b65\u6267\u884c    \n    node.right = LLRotation(node.right);\n    return RRRotation(node);\n  }\n  \/\/ \u63d2\u5165\u8282\u70b9\n  public void insert(int key) {\n    root = insert(root, key);\n  }\n  private AVLNode insert(AVLNode node, int key) {\n    if (node == null) {\n      return new AVLNode(key);\n    }\n    if (key &lt; node.key) {\n      node.left = insert(node.left, key);\n    } else {\n      node.right = insert(node.right, key);\n    }\n    \/\/ \u66f4\u65b0\u8282\u70b9\u9ad8\u5ea6\n    node.height = Math.max(getHeight(node.left), getHeight(node.right)) + 1;\n    \/\/ \u68c0\u67e5\u5e73\u8861\u6027\n    int balance = getBalanceFactor(node);\n    \/\/ \u4e0d\u5e73\u8861\u5219\u8fdb\u884c\u65cb\u8f6c\n    if (balance &gt; 1) {\n      if (key &lt; node.left.key) {\n        return LLRotation(node); \n      } else {\n        return LRRotation(node);\n      }\n    }\n    if (balance &lt; -1) {\n      if (key &gt; node.right.key) {\n        return RRRotation(node);\n      } else {\n        return RLRotation(node);\n      }\n    }\n    return node;\n  }\n  \/\/ \u5176\u4ed6\u51fd\u6570\u5982\u67e5\u627e\u3001\u5220\u9664,\u539f\u7406\u7c7b\u4f3c  \n}<\/code><\/pre>\n<p>\u8fd9\u6837\u6211\u4eec\u5c31\u7528Java\u5b9e\u73b0\u4e86\u4e00\u4e2a\u5e26\u65cb\u8f6c\u64cd\u4f5c\u7684AVL\u6811,\u5b83\u53ef\u4ee5\u5728\u63d2\u5165\u548c\u5220\u9664\u65f6\u8fdb\u884c\u81ea\u5e73\u8861,\u4fdd\u8bc1\u67e5\u627e\u6548\u7387\u3002<\/p>\n<h1>AVL\u6811\u5e94\u7528\u573a\u666f\u4e3b\u8981\u6709:<\/h1>\n<ol>\n<li>\u9700\u8981\u5feb\u901f\u67e5\u627e\u7684\u6570\u636e - AVL\u6811\u7684\u67e5\u627e\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(logN),\u975e\u5e38\u5feb\u3002\u9002\u7528\u4e8e\u67e5\u627e\u9891\u7e41\u7684\u5e94\u7528\u573a\u666f\u3002<\/li>\n<li>\u6392\u5e8f\u4e0e\u7edf\u8ba1 - AVL\u6811\u5929\u7136\u53ef\u4ee5\u7528\u4e8e\u6570\u636e\u6392\u5e8f,\u540c\u65f6\u4e5f\u53ef\u4ee5\u8ba1\u7b97\u6570\u636e\u7edf\u8ba1\u4fe1\u606f\u3002<\/li>\n<li>\u52a8\u6001\u6570\u636e\u96c6 - AVL\u6811\u53ef\u4ee5\u5feb\u901f\u5730\u9002\u5e94\u6570\u636e\u96c6\u7684\u63d2\u5165\u548c\u5220\u9664\u3002\u9002\u7528\u4e8e\u9891\u7e41\u66f4\u65b0\u6570\u636e\u7684\u5e94\u7528\u3002<\/li>\n<li>\u7d22\u5f15\u6784\u5efa - \u641c\u7d22\u5f15\u64ce\u53ef\u4ee5\u4f7f\u7528AVL\u6811\u6784\u5efa\u5173\u952e\u8bcd\u7d22\u5f15,\u5982Lucene\u641c\u7d22\u5f15\u64ce\u5c31\u91c7\u7528AVL\u6811\u3002<\/li>\n<li>\u5feb\u901f\u67e5\u627e\u8868 - \u53ef\u7528AVL\u6811\u5b9e\u73b0\u4f18\u5148\u961f\u5217\u3001\u7f13\u5b58\u7b49\u9700\u8981\u5feb\u901f\u67e5\u627e\u7684\u8868\u7ed3\u6784\u3002<\/li>\n<li>\u8ba1\u7b97\u51e0\u4f55 - \u7528AVL\u6811\u5904\u7406\u8ba1\u7b97\u51e0\u4f55\u95ee\u9898,\u5982nearest neighbor search\u6700\u8fd1\u90bb\u67e5\u627e\u3002<\/li>\n<li>\u96c6\u5408\u4e0e\u6620\u5c04 - \u7528AVL\u6811\u5b9e\u73b0\u6709\u5e8f\u96c6\u5408\u4e0e\u6620\u5c04,\u67e5\u627e\u901f\u5ea6\u5feb\u3002<\/li>\n<li>\u6570\u5b66\u8fd0\u7b97 - \u8ba1\u7b97\u4f17\u6570\u3001\u4e2d\u4f4d\u6570\u7b49\u7edf\u8ba1\u4fe1\u606f\u65f6\u53ef\u7528AVL\u6811\u3002<\/li>\n<li>\u5185\u5b58\u7ba1\u7406 - \u4e00\u4e9b\u8bed\u8a00\u7684\u5185\u5b58\u7ba1\u7406\u4f1a\u7528AVL\u6811\u5b9e\u73b0\u4ee5\u63d0\u9ad8\u6548\u7387\u3002<\/li>\n<li>\u8def\u7531\u8868 - \u7f51\u7edc\u8def\u7531\u8868\u53ef\u7528AVL\u6811\u5b9e\u73b0\u4ee5\u52a0\u901fIP\u5730\u5740\u67e5\u627e\u3002<br \/>\n\u603b\u4f53\u6765\u8bf4,AVL\u6811\u9002\u5408\u5bf9\u6570\u636e\u8fdb\u884c\u5feb\u901f\u67e5\u627e\u548c\u6392\u5e8f\u7684\u5e94\u7528\u573a\u666f\u3002\u5b83\u4e5f\u53ef\u4ee5\u7528\u6765\u7edf\u8ba1\u548c\u7d22\u5f15\u6570\u636e\u3002\u7531\u4e8e\u5e73\u8861\u6027,AVL\u6811\u7684\u67e5\u627e\u901f\u5ea6\u975e\u5e38\u7a33\u5b9a\u53ef\u9760\u3002<\/p>\n<h1>\u6848\u4f8b\uff1a \u5982\u4f55\u5229\u7528 AVL \u6811\u4ece10T \u65e5\u5fd7\u6570\u636e\u4e2d\u67e5\u627e\u67d0\u4e2a\u65f6\u95f4\u6bb5\u540c\u578b\u53f7\u6c7d\u8f66\u7684\u7ef4\u62a4\u4fe1\u606f:<\/h1>\n<\/li>\n<li>\u5bf9\u65e5\u5fd7\u6570\u636e\u8fdb\u884c\u9884\u5904\u7406,\u63d0\u53d6\u51fa\u65e5\u5fd7\u4e2d\u4e0e\u6c7d\u8f66\u7ef4\u62a4\u76f8\u5173\u7684\u5b57\u6bb5,\u5982\u6c7d\u8f66\u578b\u53f7\u3001\u7ef4\u62a4\u65f6\u95f4\u3001\u7ef4\u62a4\u9879\u76ee\u7b49\u3002<\/li>\n<li>\u5c06\u63d0\u53d6\u51fa\u6765\u7684\u7ef4\u62a4\u65e5\u5fd7,\u4ee5\u201c\u578b\u53f7+\u7ef4\u62a4\u65f6\u95f4\u201d\u4e3a\u5173\u952e\u5b57\u5b58\u50a8\u5728 AVL \u6811\u4e2d\u3002\u5176\u4e2d,\u578b\u53f7\u4f5c\u4e3a\u4e3b\u5173\u952e\u5b57,\u7ef4\u62a4\u65f6\u95f4\u4f5c\u4e3a\u6b21\u5173\u952e\u5b57\u3002<\/li>\n<li>AVL \u6811\u4ee5\u6c7d\u8f66\u578b\u53f7\u5206\u5c42,\u540c\u4e00\u578b\u53f7\u4e0b\u518d\u4ee5\u7ef4\u62a4\u65f6\u95f4\u6392\u5e8f\u3002\u8fd9\u6837\u53ef\u4ee5\u5feb\u901f\u9501\u5b9a\u76ee\u6807\u578b\u53f7\u3002<\/li>\n<li>\u67e5\u627e\u65f6,\u8f93\u5165\u76ee\u6807\u578b\u53f7\u548c\u65f6\u95f4\u8303\u56f4,\u5728 AVL \u6811\u4e2d\u67e5\u627e\u6b64\u578b\u53f7\u7684\u6570\u636e,\u5229\u7528 AVL \u6811\u7684\u7279\u6027\u53ef\u4ee5\u5feb\u901f\u5b9a\u4f4d\u5230\u7ed9\u5b9a\u65f6\u95f4\u8303\u56f4\u7684\u8282\u70b9\u3002<\/li>\n<li>\u4ece\u8fd9\u4e9b\u8282\u70b9\u904d\u5386\u8bfb\u53d6\u5176\u7ef4\u62a4\u9879\u76ee\u5373\u53ef\u83b7\u5f97\u8be5\u65f6\u95f4\u6bb5\u5185\u76ee\u6807\u578b\u53f7\u7684\u7ef4\u62a4\u4fe1\u606f\u3002<\/li>\n<li>\u53ef\u5229\u7528 AVL \u6811\u52a8\u6001\u63d2\u5165\u548c\u5220\u9664\u6765\u4fdd\u8bc1\u7ef4\u62a4\u65b0\u65e5\u5fd7\u7684\u9ad8\u6548\u6027\u3002<br \/>\nAVL \u6811\u7684\u5e73\u8861\u6027\u786e\u4fdd\u4e86\u5bf9\u540c\u4e00\u578b\u53f7\u7684\u67e5\u627e\u65f6\u95f4\u590d\u6742\u5ea6\u4e3a O(logn)\u3002\u5229\u7528\u4e8c\u5206\u67e5\u627e,\u53ef\u4ee5\u5feb\u901f\u9501\u5b9a\u65f6\u95f4\u8303\u56f4\u5185\u7684\u7ef4\u62a4\u8bb0\u5f55\u3002\u76f8\u6bd4\u7ebf\u6027\u67e5\u627e,\u4f7f\u7528 AVL \u6811\u53ef\u4ee5\u5927\u5e45\u63d0\u9ad8\u67e5\u8be2\u6548\u7387\u3002<br \/>\n\u5f53\u65e5\u5fd7\u91cf\u8fdb\u4e00\u6b65\u589e\u5927\u65f6,\u53ef\u4ee5\u8003\u8651\u7ed3\u5408\u5206\u5e03\u5f0f\u5904\u7406\u5e73\u53f0,\u5728\u591a\u670d\u52a1\u5668\u4e0a\u5b58\u50a8\u5206\u7247\u7684 AVL \u6811,\u5e76\u884c\u5316\u67e5\u8be2\u3002<\/p>\n<pre><code class=\"language-java\">\/\/ AVL\u6811\u8282\u70b9\nclass AVLNode {\nString model; \/\/ \u6c7d\u8f66\u578b\u53f7\nDate maintainTime; \/\/ \u7ef4\u62a4\u65f6\u95f4\nString maintainItem; \/\/ \u7ef4\u62a4\u9879\u76ee\n\/\/ \u5176\u4ed6AVL\u6811\u9700\u8981\u7684\u5b57\u6bb5\u548c\u65b9\u6cd5\n}\nclass AVLTree {\nAVLNode root; \n\/\/ \u63d2\u5165\u8282\u70b9\nvoid insert(AVLNode node) {\n\/\/ \u63d2\u5165\u903b\u8f91\u4ee5\u53ca\u5e73\u8861\u8c03\u6574\n}\n\/\/ \u67e5\u8be2\u65f6\u95f4\u8303\u56f4\u5185\u7684\u7ef4\u62a4\u4fe1\u606f\nList&lt;AVLNode&gt; query(String model, Date startTime, Date endTime) {\nAVLNode target = find(root, model); \/\/ \u627e\u5230\u6a21\u578b\u5bf9\u5e94\u7684\u5b50\u6811\nif (target == null) return null; \nList&lt;AVLNode&gt; result = new ArrayList&lt;&gt;();\n\/\/ \u5728target\u5b50\u6811\u4e0a\u5229\u7528maintainTime\u8fdb\u884c\u4e8c\u5206\u67e5\u627e\n\/\/ \u627e\u5230\u65f6\u95f4\u8303\u56f4\u5185\u7684\u8282\u70b9,\u6dfb\u52a0\u5230result\nreturn result;\n}\n}\npublic class Main {\npublic static void main(String[] args) {\nAVLTree tree = new AVLTree();\n\/\/ \u6a21\u62df\u63d2\u5165\u4e00\u6279\u65e5\u5fd7\ntree.insert(new AVLNode(&quot; ModelA&quot;, time1, item1)); \ntree.insert(new AVLNode(&quot;ModelA&quot;, time2, item2));\n\/\/ \u67e5\u8be2\u65f6\u95f4\u8303\u56f4\u7684\u7ef4\u62a4\u8bb0\u5f55\nList records = tree.query(&quot;ModelA&quot;, startTime, endTime);\n}\n}<\/code><\/pre>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u6700\u8fd1\u5728\u770b\u6570\u636e\u7ed3\u6784\uff0c\u63d0\u5347\u81ea\u5df1\u7f16\u7801\u80fd\u529b \u4ee3\u7801\u5b9e\u73b0 AVL\u6811\u662f\u4e00\u79cd\u81ea\u5e73\u8861\u4e8c\u53c9\u641c\u7d22\u6811\u3002\u5b83\u7684\u7279\u70b9\u662f:\u6bcf\u4e2a\u8282\u70b9\u7684\u4e24\u4e2a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false},"categories":[1],"tags":[],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AVL\u6811\uff0c\u5e76\u4f7f\u7528Java\u4ee3\u7801\u5b9e\u73b0AVL\u6811\u6848\u4f8b - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug<\/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:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/24\/avl\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AVL\u6811\uff0c\u5e76\u4f7f\u7528Java\u4ee3\u7801\u5b9e\u73b0AVL\u6811\u6848\u4f8b - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\" \/>\n<meta property=\"og:description\" content=\"\u524d\u8a00 \u6700\u8fd1\u5728\u770b\u6570\u636e\u7ed3\u6784\uff0c\u63d0\u5347\u81ea\u5df1\u7f16\u7801\u80fd\u529b \u4ee3\u7801\u5b9e\u73b0 AVL\u6811\u662f\u4e00\u79cd\u81ea\u5e73\u8861\u4e8c\u53c9\u641c\u7d22\u6811\u3002\u5b83\u7684\u7279\u70b9\u662f:\u6bcf\u4e2a\u8282\u70b9\u7684\u4e24\u4e2a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/24\/avl\/\" \/>\n<meta property=\"og:site_name\" content=\"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-24T02:26:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-24T02:33:01+00:00\" \/>\n<meta name=\"author\" content=\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/24\/avl\/\",\"url\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/24\/avl\/\",\"name\":\"AVL\u6811\uff0c\u5e76\u4f7f\u7528Java\u4ee3\u7801\u5b9e\u73b0AVL\u6811\u6848\u4f8b - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\",\"isPartOf\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/#website\"},\"datePublished\":\"2023-07-24T02:26:52+00:00\",\"dateModified\":\"2023-07-24T02:33:01+00:00\",\"author\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4\"},\"breadcrumb\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/24\/avl\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/24\/avl\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/24\/avl\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/zhaocunwei.co.uk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AVL\u6811\uff0c\u5e76\u4f7f\u7528Java\u4ee3\u7801\u5b9e\u73b0AVL\u6811\u6848\u4f8b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#website\",\"url\":\"https:\/\/zhaocunwei.co.uk\/\",\"name\":\"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\",\"description\":\"This site shares programming bugs\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zhaocunwei.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4\",\"name\":\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g\",\"caption\":\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\"},\"sameAs\":[\"http:\/\/zhaocunwei.co.uk\"],\"url\":\"https:\/\/zhaocunwei.co.uk\/index.php\/author\/18500103508163-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AVL\u6811\uff0c\u5e76\u4f7f\u7528Java\u4ee3\u7801\u5b9e\u73b0AVL\u6811\u6848\u4f8b - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","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:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/24\/avl\/","og_locale":"zh_CN","og_type":"article","og_title":"AVL\u6811\uff0c\u5e76\u4f7f\u7528Java\u4ee3\u7801\u5b9e\u73b0AVL\u6811\u6848\u4f8b - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","og_description":"\u524d\u8a00 \u6700\u8fd1\u5728\u770b\u6570\u636e\u7ed3\u6784\uff0c\u63d0\u5347\u81ea\u5df1\u7f16\u7801\u80fd\u529b \u4ee3\u7801\u5b9e\u73b0 AVL\u6811\u662f\u4e00\u79cd\u81ea\u5e73\u8861\u4e8c\u53c9\u641c\u7d22\u6811\u3002\u5b83\u7684\u7279\u70b9\u662f:\u6bcf\u4e2a\u8282\u70b9\u7684\u4e24\u4e2a [&hellip;]","og_url":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/24\/avl\/","og_site_name":"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","article_published_time":"2023-07-24T02:26:52+00:00","article_modified_time":"2023-07-24T02:33:01+00:00","author":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/24\/avl\/","url":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/24\/avl\/","name":"AVL\u6811\uff0c\u5e76\u4f7f\u7528Java\u4ee3\u7801\u5b9e\u73b0AVL\u6811\u6848\u4f8b - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","isPartOf":{"@id":"https:\/\/zhaocunwei.co.uk\/#website"},"datePublished":"2023-07-24T02:26:52+00:00","dateModified":"2023-07-24T02:33:01+00:00","author":{"@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4"},"breadcrumb":{"@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/24\/avl\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/24\/avl\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/07\/24\/avl\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/zhaocunwei.co.uk\/"},{"@type":"ListItem","position":2,"name":"AVL\u6811\uff0c\u5e76\u4f7f\u7528Java\u4ee3\u7801\u5b9e\u73b0AVL\u6811\u6848\u4f8b"}]},{"@type":"WebSite","@id":"https:\/\/zhaocunwei.co.uk\/#website","url":"https:\/\/zhaocunwei.co.uk\/","name":"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","description":"This site shares programming bugs","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zhaocunwei.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"Person","@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4","name":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","image":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g","caption":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46"},"sameAs":["http:\/\/zhaocunwei.co.uk"],"url":"https:\/\/zhaocunwei.co.uk\/index.php\/author\/18500103508163-com\/"}]}},"_links":{"self":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/763"}],"collection":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=763"}],"version-history":[{"count":1,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/763\/revisions"}],"predecessor-version":[{"id":764,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/763\/revisions\/764"}],"wp:attachment":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}