Claude Shannon made an important finding when he realized that the information contribution of a symbol could be estimated very simply as - f(x) log…