this is necessary for coding data and compression.based on frequency of symbols ,entropy value is calculated.