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 C++.it 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 :

WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW

        above data string can be compressed as follows:

12W1B12W3B24W1B14W

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

Comments

No comments yet

Download Packet

Reviews Report

Submitted by Sharad Verma (vermasharad)

Download packets of source code on Coders Packet