Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Java please 2) Reversing simple compression Compression and packing algorithms are useful in many legitimate ways. They are also useful to malware authors for
Using Java please
2) Reversing simple compression Compression and packing algorithms are useful in many legitimate ways. They are also useful to malware authors for obfuscation of their code and data they are exfiltrating. You will write a program that reverse the custom compression algorithm detailed below: For a given input string, the compression algorithm counts the number of times a letter is repeated. It then prepends that number to the letter and removes any repeats. It does this for every letter in the string. As an example, consider the input string AAAABCC. The compression algorithm counts 4 A's in a row, so it prepends 4 to A and removes the repeats. After doing this for B and C, the final output is the compressed string 4A1B2C. Therefore, your program will receive a string such as 4A1B2C and will inflate it back to its original form prior to compression (AAAABCC) and output that stringStep 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