Question: Problem 1(20 pts): One of the data compression algorithm is based on the fact that a character within the data stream may be repeated many

Problem 1(20 pts): One of the data compression algorithm is based on the fact that a character within the data stream may be repeated many times. This repetitive sequence can be replaced by a) an integer that declares the number of the repetitions and b) the character itself. For example, a sequence of 3fmt2e12b is uncompressed to fffmteebbbbbbbbbbbb Write a C program that accepts the compressed sequence and uses the algorithm to UNcompress it. Sample code execution 1: Bold entered by a user Enter compressed stream: 3f12m5t8jxac19sa4e Uncompressed stream: ffmmmmmmmmmmmmtttttjjjjixacsssssssssssssssssssaeeee Sample code execution 2: Enter compressed stream: itg5015d2c5z13r Uncompressed stream: itgooooodddddddddddddddcczzzzzrrrrrrrrrrrrr
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
