The compression gain is 10%.
We know that
a = 40% b = 40% c = 15% and d = 5%
With the help of the given data
a = 1 ,b = 01, c = 001 , d = 000 we can draw a huffman tree.
Thus 0.4 x 1 + 0.4 x 2 + 0.15 x 3 + 0.05 x 3 = 1.8
Compression gain = 100 - 1.8/2 X 100 = 10%
Everywhere data compression is applied. Compressed data is used by several distinct file types. A 3-minute song would be over 100Mb in size and a 10-minute video would be over 1Gb without data compression. Large files are reduced in size through data compression. By eliminating superfluous data while keeping the information in the file, it does this.
A reduction in the number of bits needed to represent data can be referred to as data compression. Data compression can reduce hardware storage and network capacity expenses, speed up file transfers, and conserve storage space.
To know more about compression gain refer:
https://brainly.com/question/28530921
#SPJ4