[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.

Python 100.0%
17 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#

Lossless compression of bit strings using Huffman coding. Huffman encoding assigns a binary value to each character, with the shortest binary value representing the most commonly used character.

dictionaryMaker#

Reads a file or directory, parses words, adds them to a dictionary, and saves it as a file that can be read by the flashcards script.

flashcards#

  • Quizzes the user based on a dictionary of terms. The user can add terms manually or from a single file. Can use files produced by dictionaryMaker.

fibonacci_evens#

Calculates the sum of all even numbers that are in the fibonacci sequence under a certain number.

flood#

A recursive flood-fill algorithm. Uses floodmap1.txt and floodmap2.txt

PriorityQueue#

A simple priority queue, also used in the huffman encoder.