Skip to content

iLyasLarhdid/Shannon-Fano-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shannon-Fano-Algorithm

Shannon Fano Algorithm is an entropy encoding technique for lossless data compression of multimedia.

Usage

  • Run the Compress class
    • if you type yes the file path should be like this (\Users\[user]\Desktop\[fileName].txt)
    • use the bites that correspond with the language your text is written with (8 for english, 16 for arabic...)
    • you will get 2 additional files dict.txt (containts the dictionary to decode) and compressed.txt (contains the compressed version of your original text) in your base folder first step
  • Run the Decompress class
    • you should run this class after you run the compress class, or after you put dict.txt and compressed.txt in your base folder first step
  • this is the result first step

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

Compression algorithm

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages