摘要: #define RED 0 #define BLACK 1 typedef struct RedBlackNode{ ElementType Data; RedBlackNode *Left; RedBlackNode *Right; int colour; }; typedef struct RedBlackNode* Root; typedef Root RedBlack... 阅读全文
posted @ 2018-08-26 20:42 花花与小叮当 阅读(156) 评论(0) 推荐(0) 编辑
摘要: typedef struct AVLNode *Position; typedef Position AVLTree; /* AVL树类型 */ struct AVLNode{ ElementType Data; /* 结点数据 */ AVLTree Left; /* 指向左子树 */ AVLTree Right; /* 指向右子树 */ int H... 阅读全文
posted @ 2018-08-26 11:50 花花与小叮当 阅读(129) 评论(0) 推荐(0) 编辑