mirror of
https://gitee.com/apaki/unicstl.git
synced 2025-05-18 03:51:35 +08:00
README添加树
This commit is contained in:
parent
f13b0d00aa
commit
fba69551b5
@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
> 标准:--std=c99
|
> 标准:--std=c99
|
||||||
|
|
||||||
|
[数据结构详细说明](http://wenjianfeng.top)
|
||||||
|
|
||||||
## 数据结构
|
## 数据结构
|
||||||
|数据结构 | 原理 |说明 |
|
|数据结构 | 原理 |说明 |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
@ -20,4 +22,6 @@
|
|||||||
| queue_init2 | 数组 | FIFO/空/满 |
|
| queue_init2 | 数组 | FIFO/空/满 |
|
||||||
| **deque** | |**双端队列** |
|
| **deque** | |**双端队列** |
|
||||||
| deque_init | 双向循环链表 | |
|
| deque_init | 双向循环链表 | |
|
||||||
|
| **tree** | |**树** |
|
||||||
|
| tree_avl_init | 二叉搜索树 | AVL树 |
|
||||||
|
| tree_rb_init | 二叉搜索树 | 红黑树 |
|
||||||
|
@ -331,6 +331,7 @@ void test_tree_num(void)
|
|||||||
tree->breadth(tree, tree->_root);
|
tree->breadth(tree, tree->_root);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
#if 0
|
||||||
while(!tree->empty(tree))
|
while(!tree->empty(tree))
|
||||||
{
|
{
|
||||||
tree->delete(tree, &temp);
|
tree->delete(tree, &temp);
|
||||||
@ -340,7 +341,7 @@ void test_tree_num(void)
|
|||||||
|
|
||||||
printf("size = %2d\n", tree->size(tree));
|
printf("size = %2d\n", tree->size(tree));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
tree_free(tree);
|
tree_free(tree);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user