Skip to content

TestProgger/huffman_visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Huffman Tree Visualization

Prepare

Install graphviz on your OS

Install python wrap by graphviz

    pip install graphviz

Usage

Example

    python main.py -N 128 -p0 0.1 -p1 0.9 -fn <filename> 
    -N              Maximum number is a combination
    -p0             Probability of occurrence of zero
    -p1             Probability of occurrence of one
    -fn             Name of the output file
    --engine        Which engine will be used to render the tree    
    --file-formats  Output file formats
    --zip           Archive output files

    --no-csv        Don't generate csv  
    --no-tree       Don't generate a tree image

About

Visualization of the Huffman tree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages