Coders Packet

Run Length Encoding (RLE) compression and decompression in C++

By Sharad Verma

This C++ program implements Run Length Encoding (RLE) compression and decompression which is a lossless technique for data compression.

This packet implements Run Length Encoding(RLE) compression and decompression in is a form of lossless data compression in which runs of data are stored as a single data value and count, rather than as the original run.

For example, consider the following string of data :


        above data string can be compressed as follows:


How to use the program:

1- Run the program

2- choose the option of compression/decompression.

3- enter the input string.

4- compressed/decompressed string will be displayed on the output screen based on the chosen option.

Download Complete Code


No comments yet