[READ-ONLY] Mirror of https://github.com/mrgnw/python-scripts.
0

Configure Feed

Select the types of activity you want to include in your feed.

6 1 0

Clone this repository

https://git.vm.fail/xcc.es/python-scripts https://git.vm.fail/did:plc:6oenwjfi3f4mocgrmtww3jca
ssh://git@knot1.tangled.sh:2222/xcc.es/python-scripts ssh://git@knot1.tangled.sh:2222/did:plc:6oenwjfi3f4mocgrmtww3jca

For self-hosted knots, clone URLs may differ based on your setup.


README.md

python-scripts#

huffman_encoder#

Takes a string and compresses it using huffman encoding. Huffman encoding assigns a binary value to each character, with the shortest binary value representing the most commonly used character.

PriorityQueue#

A simple priority queue, which is used in the huffman encoder.

dictionaryMaker#

  • Creates a dictionary of terms. Terms can be added from a single file, all files with a certain extension in the folder, or all files in the folder.
  • Terms can also be added manually.