AVL Tree implementation: I also included a test function to compare the AVL Tree performance with STL Set and Map. Compile the source mavltree.cpp and run it to see the result...
主要是avl,splay和binary树的insert,delete程序,主要是avl,splay.binary树的
using C++ to build AVL tree and functions
独立于AVL库的存储媒体 虽现在有不少可用的AVL树库,但几乎都是工作在RAM中,当数据量小的时候,这种方式可行,但当树结构变大时时,读取和存储的时间就会大大变长,任务效率大大降低。能不能直接用磁盘进行树的操作呢?若可以,就不必进行频繁的磁盘内存交换了,本程序就实现了这个功能。实际上,这个程序无论是磁盘还是内存,都很好用。
Addison-Velski 和 Landis (AVL-Tree s)的二叉树,可以在对数时间内进行标准的操作,如插入、搜索和删除。