#include "tree.h"
#include <iostream>
#include <fstream>
using namespace std;
int counter;
tree::tree()
{
root = NULL;
}
int tree::height(node *temp)
{
int h = 0;
if (temp
「高さhのavlツリーの最小ノード」の式は、再帰的です。 n(0)= 1、n(1)= 2 n(h) = 1 + N(H-1)+ N(H-2)一方 は、iが空のAVLツリーにN個の要素を追加することの複雑さを説明するためのインターネットでこれを見つけた: Well, imagine the tree being built.
One by one, the elements go through