Question

In: Computer Science

a) Discuss two basic forms of compression. Given the following data string, present the result using...

a) Discuss two basic forms of compression. Given the following data string, present the result using run-length encoding. By what percentage is the data compressed? 0000011000000001000000000100001100000000 [5 Marks] b) Sam wants to send 2000 8-bit characters of data. Find the total number of bits he will transmit using asynchronous transmission. Now, if he decides to use the synchronous connection, how many bits will be transferred if 1000 characters fit within one synchronous transmission frame? [5 M

Solutions

Expert Solution

DATA COMPRESSION
Data compression is important in this age because of the amount of data that is transferred within a certain network. It makes the transfer of data relatively easy [1]. This section explains and compares lossy and lossless compression techniques.

LOSSLESS DATA COMPRESSION
Lossless data compression makes use of data compression algorithms that allows the exact original data to be reconstructed from the compressed data. This can be contrasted to lossy data compression, which does not allow the exact original data to be reconstructed from the compressed data. Lossless data compression is used in many applications .

Lossless compression is used when it is vital that the original and the decompressed data be identical, or when no assumption can be made on whether certain deviation is uncritical.

Most lossless compression programs implements two kinds of algorithms: one which generates a statistical model for the input data, and another which maps the input data to bit strings using this model in such a way that “probable” (e.g. frequently encountered) data will produce shorter output than “improbable” data. Often, only the former algorithm is named, while the second is implied (through common use, standardization etc.)

LOSSY DATA COMPRESSION
A lossy data compression technique is one where compressing data and its decompression retrieves data that may will be different from the original, but is “close enough” to be useful in some way.

There are two basic lossy compression schemes:

First is lossy transform codecs, where samples of picture or sound are taken, chopped into small segments, transformed into a new basis space, and quantized. The resulting quantized values are then entropy coded .

Second is lossy predictive codecs, where previous and/or subsequent decoded data is used to predict the current sound sample or image frame.

In some systems the two methods are used, with transform codecs being used to compress the error signals generated by the predictive stage.

The advantage of lossy methods over lossless methods is that in some cases a lossy method can produce a much smaller compressed file than any known lossless method, while still meeting the requirements of the application .

Lossless compression schemes are reversible in-order for the original data can be reconstructed, while lossy schemes accept some loss of data in order to achieve higher compression.

In practice, lossy data compression will also come to a point where compressing again does not work, although an extremely lossy algorithm, which for example always removes the last byte of a file, will always compress a file up to the point where it is empty

Hypothetical scale line for run length encoding (RLE) data compression algorithm is

12W1B12W3B24W1B14W
WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW
Similar to 0000011000000001000000000100001100000000
Results to 502180119011402180
Data compression ratio = uncompressed size/ compressed size
Space saving= 1- compressed size / uncompressed size
Therefore ,
Compression rate = 40/18 = 20/9

ANSWER b)

In transmission only one byte is sent at a time . To help receiver start and stop bits are used along data in middle

Total data send = 8bits(char size) + 2 bits ( stop)

= 10bits

Number of 8 bits characters that can be transmitted per second = 2000/10 = 200

Number of 8 bit characters that can be per second = 1000/8 = 125

Hope you like my answer , please give good ratings


Related Solutions

a) Discuss two basic forms of compression. Given the following data string, present the result using...
a) Discuss two basic forms of compression. Given the following data string, present the result using run-length encoding. By what percentage is the data compressed? 0000011000000001000000000100001100000000 [5 Marks] b) Sam wants to send 2000 8-bit characters of data. Find the total number of bits he will transmit using asynchronous transmission. Now, if he decides to use the synchronous connection, how many bits will be transferred if 1000 characters fit within one synchronous transmission frame?
Discuss TWO benefits the UK probably experienced as a result using their own currency.
Discuss TWO benefits the UK probably experienced as a result using their own currency.
What are two forms of blood doping that result in polycythemia, and what are the potential...
What are two forms of blood doping that result in polycythemia, and what are the potential health risks associated with these practices? How would you expect endogenous erythropoietin levels in those who engage in blood doping to compare with those in normal individuals? Explain your answer.
* Discuss the two variables that must be considered whether you are using the present value...
* Discuss the two variables that must be considered whether you are using the present value of cash flow approach or the relative valuation ratio approach to valuation. Why are these variables relevant for either valuation approach? *Discuss the contention that differences in the performance of various firms within an industry limit the usefulness of industry analysis. Apa referencing required
windows forms Application using Visual Basic use visual basic 2012 Part 1: Programming – Income Tax...
windows forms Application using Visual Basic use visual basic 2012 Part 1: Programming – Income Tax Application 1.1 Problem Statement Due to upcoming end of financial year, you are being called in to write a program which will read in a file and produce reports as outlined. Inputs: The input file called IncomeRecord.txt contains a list of Annual income records of employees in a firm. Each record is on a single line and the fields are separated by spaces. The...
Answer the following questions using the data given in the table. Use the T-Test Paired Two...
Answer the following questions using the data given in the table. Use the T-Test Paired Two Sample for Means to arrive at the solutions to the questions below. Use an alpha value of 0.01 Home Appraiser 1 Appraiser 2 A $235,000 $228,000 B $210,000 $205,000 C $231,000 $219,000 D $242,000 $240,000 E $205,000 $198,000 F $230,000 $223,000 G $231,000 $227,000 H $210,000 $215,000 I $225,000 $222,000 J $249,000 $245,000 K $199,000 $201,000 1 What is the value for the test...
Given a parentheses string s, compute the score of the string based on the following rule:...
Given a parentheses string s, compute the score of the string based on the following rule: • If s is not balanced, the score is 0. • () has score 1. • AB has score A + B, where A and B are balanced parentheses strings. • (A) has score 2 * A, where A is a balanced parentheses string. A balanced string satisfies the following requirements: • The number of ‘(’ equals the number of ‘)’ in the string....
Discuss TWO benefits (Fighting inflation and fighting recession) the UK probably experienced as a result using...
Discuss TWO benefits (Fighting inflation and fighting recession) the UK probably experienced as a result using their own currency.
Collinearity a. Discuss the problems that result when collinearity is present in a regression analysis. b....
Collinearity a. Discuss the problems that result when collinearity is present in a regression analysis. b. How can you detect collinearity? c. What remedial measures are available when collinearity is detected?
Prepare a basic tax return using the appropriate tax forms and rate schedules. Choosing and preparing...
Prepare a basic tax return using the appropriate tax forms and rate schedules. Choosing and preparing an individual tax form. Use 1040 or 1040ez. Mark Huang is single, graduated from college in 2015 and began work as a systems analyst in July of that year. He is preparing to file his income tax return for 2015 and has collected the financial information shown below for that calendar year. Scholarship used to pay tuition $ 5,750 Scholarship used to pay room...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT