You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 5, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
# Huffman coding
2
-
In computer science and information theory, a Huffman code is a particular type of optimal prefix code that is commonly used for lossless data compression.
2
+
📎In computer science and information theory, a Huffman code is a particular type of optimal prefix code that is commonly used for lossless data compression.
3
3
4
-
Write your file path and ready for huffman coding ...
4
+
Write your file path and ready for encoding ...
5
5
6
-
## Usage
6
+
## 📖Usage
7
7
```python
8
8
import ds
9
9
@@ -19,6 +19,10 @@ huffman.generateTable()
19
19
#export zipped file
20
20
huffman.tableToDict() #convert huffman codes(huffman.txt or any huffman codes) to dict
21
21
huffman.exportZipped('./zipped.txt')
22
+
23
+
#import zipped
24
+
#if you generated huffman codes and zipped file before you can just import them and see what 's behind
0 commit comments