Commit 1b6caf9
authored
feat: add Huffman Coding greedy algorithm implementation
Added Huffman Coding algorithm implementation.
Huffman Coding is a greedy algorithm used for optimal prefix coding and data compression.
Reference:
https://en.wikipedia.org/wiki/Huffman_coding1 parent 98431e2 commit 1b6caf9
File tree
1 file changed
+9
-2
lines changed- src/main/java/com/thealgorithms/greedyalgorithms
1 file changed
+9
-2
lines changedLines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| 28 | + | |
22 | 29 | | |
23 | | - | |
| 30 | + | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
| |||
0 commit comments