Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Overview Run-length encoding is one of the many fom of lossless data compression. In this project, students will implement methods to achieve encoding and decoding
Overview Run-length encoding is one of the many fom of lossless data compression. In this project, students will implement methods to achieve encoding and decoding of runs of a character in a string. The project is designed to practice and arithmetic, and type casting. programming fundamentals such as methods, arrays, loops, strings, character Run-length encoding (RLE) A RLE is useful on runs of data (same data values repeated multiple times in a row). For instance, the following string "LOLLLLL!!!!!!contains two runs of character, one the character 'L in the substring "LLLLL and second the character ' in the substring"!!! Rules for RLE NOTE: For this project we are ONLY handling strings containing alphabetical character (A-Z & a-z). If a character count (number of times the character repeats in the substring) is greater than 1 then the substring containing that character is replaced by the following form of a substring: Example: RLE encoding of "aaaa" is "4a" *If character count is 1 then no action is needed. Example RLE encoding of "a" is "a" You have got the rules now let's get to the structure of the project
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started