based on huffman alghoritm which you can learn on this link. they are many comments in tne code you can follow the md cells to understand what's going on.
they are four parts of code:
- Node and Binary Tree classes
- clalulating characters repeating
- making huffman tree and char's keys
- hashing text
Libraries in use:
numpy