Question: Write a program by Python to run a Run Length Encoding that includes three functions: 1, RLE_encode() -> to encode the string 2, RLE_decode() ->
Write a program by Python to run a Run Length Encoding that includes three functions:
1, RLE_encode() -> to encode the string
2, RLE_decode() -> to decode the string
3, RLE_compression_ratio() -> to compute the compression ratio
Please run the function with the below example: Gooooooooooooo!

- With RLE, we can represent them with 1G1301 !, which contains only 7 characters, so only 7 bytes are needed for encoded text - With respect to the original message size (15 bytes), the compression ratio is 15:72.14:1 - RLE is a lossless compression method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
