Commit 596a42c
committed
Fix 2-3 tree documentation error - Fixes #275
Corrects the description of 2-3 tree node structure in section 1.4.
Issue:
The documentation incorrectly stated that a node can have 1-3 elements.
This caused confusion about the tree structure before inserting node 9.
Fix:
- Corrected: A node can have 1-2 elements (not 1-3)
- Added clarification note explaining the correct structure
- Clarified that when a node reaches 3 elements, it must be rebalanced immediately
- Added specific example about parent node 6 structure before inserting node 9
The fix addresses the concern raised in issue #275 about the tree structure
showing parent node 6 should only have one element with node 5 as left subtree.
Fixes #2751 parent 21d96f6 commit 596a42c
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
0 commit comments