數據結構與算法(二十)

二叉排序樹 左旋轉 右旋轉 單旋轉:1左旋轉2右旋轉 雙向旋轉: 調整排序樹,使其最優。(左子樹和右子樹的高度差的絕對值不大於1) 平衡二叉樹 Node類 package com.bjsxt.BinarySortTree; //二叉排序樹 public class Node { int value; Node left; Node right; public No
相關文章
相關標籤/搜索