Skip to content

Commit 4e6c240

Browse files
committed
docs: Add more stuff
1 parent c889b6b commit 4e6c240

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/main/java/algorithms/sorting/radixSort/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,6 @@ like QuickSort or MergeSort for large datasets with a small range of key values
7676
might not be optimal on small datasets that include elements with a significantly higher number of digits compared to
7777
others. This scenario could introduce more sorting passes than desired, diminishing the algorithm's overall efficiency.
7878
- Avoid for datasets with sparse data
79+
80+
- Our implementation uses bit masking. If you are unsure, do check
81+
[this](https://cheever.domains.swarthmore.edu/Ref/BinaryMath/NumSys.html ) out

src/main/java/dataStructures/avlTree/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ Consider any two nodes (need not have the same immediate parent node) in the tre
4343
between the two nodes <= 1 too?
4444
</details>
4545

46-
It can be mathematically shown that a **height-balanced tree with n nodes, has at most height <= 2log(n)**. Therefore,
47-
following the definition of a balanced tree, AVL trees are balanced.
46+
It can be mathematically shown that a **height-balanced tree with n nodes, has at most height <= 2log(n)** (
47+
in fact, using the golden ratio, we can achieve a tighter bound of ~1.44log(n)).
48+
Therefore, following the definition of a balanced tree, AVL trees are balanced.
4849

4950
<div align="center">
5051
<img src="../../../../../docs/assets/images/AvlTree.png" width="40%">

0 commit comments

Comments
 (0)