Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Commit 11eb751

Browse files
authored
importZipped() function usage
1 parent 466ac24 commit 11eb751

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# 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.
33

4-
Write your file path and ready for huffman coding ...
4+
Write your file path and ready for encoding ...
55

6-
## Usage
6+
## 📖Usage
77
```python
88
import ds
99

@@ -19,6 +19,10 @@ huffman.generateTable()
1919
#export zipped file
2020
huffman.tableToDict() #convert huffman codes(huffman.txt or any huffman codes) to dict
2121
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
25+
huffman.importZipped('./decoded.txt','./zippedd.txt','./huffman.txt')
2226
```
2327

2428
Sample Huffman table in 'huffman.txt':

0 commit comments

Comments
 (0)