Changeset 85 for trunk/src/helpers/tree.c
- Timestamp:
- Jul 6, 2001, 6:57:59 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/tree.c
r83 r85 114 114 * 115 115 * -- Fully balanced trees can be quite expensive because on 116 * every insertion or deletion, the tree nodes must be r eordered.116 * every insertion or deletion, the tree nodes must be rotated. 117 117 * By contrast, "Red-black" binary balanced trees contain 118 118 * an additional bit in each node which marks the node as 119 119 * either red or black. This bit is used only for efficient 120 120 * rebalancing when inserting or deleting nodes. 121 *122 * The color of each node is instrumental in determining the123 * balance of the tree. During insert and delete operations,124 * nodes may be rotated to maintain tree balance.125 121 * 126 122 * I don't fully understand why this works, but if you really
Note:
See TracChangeset
for help on using the changeset viewer.