Skip to content

This repository contains a text compression and decompression algorithm based on replacements.

License

Notifications You must be signed in to change notification settings

brown9804/TextCompressionDecompression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Text Compression and Decompression Algorithm in C++ and Python

Costa Rica

Belinda Brown, belindabrownr04@gmail.com

GitHub brown9804


This repository contains a text compression and decompression algorithm based on replacements. The algorithm works as follows:

  1. It takes a text file as input and sets a replacement threshold.
  2. For each word whose frequency is equal to or greater than the replacement threshold, it changes its string of characters to another.
  3. It adds a table with each of the replacements in a separate file, indicating the original word and its new string.

The algorithm does not modify the input file. Instead, it creates a new file with the same name as the original but with a .rep extension for the compressed text and a .tab extension for the table of replacements.

About

This repository contains a text compression and decompression algorithm based on replacements.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published