mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-15 05:00:59 +00:00
build
This commit is contained in:
@@ -88,7 +88,7 @@ comments: true
|
||||
|
||||
**树查找**
|
||||
|
||||
- 适用于海量数据,因为树节点在内存中是离散存储的。
|
||||
- 适用于海量数据,因为树节点在内存中是分散存储的。
|
||||
- 适合需要维护有序数据或范围查找的场景。
|
||||
- 在持续增删节点的过程中,二叉搜索树可能产生倾斜,时间复杂度劣化至 $O(n)$ 。
|
||||
- 若使用 AVL 树或红黑树,则各项操作可在 $O(\log n)$ 效率下稳定运行,但维护树平衡的操作会增加额外开销。
|
||||
|
||||
Reference in New Issue
Block a user