• Courses
  • Tutorials
  • DSA
  • Data Science
  • Web Tech
Switch to Dark Mode

Algorithms | Greedy Algorithms | Question 3

Last Updated : Jan 13, 2025
Discuss
Comments

A networking company uses a compression technique to encode the message before transmitting over the network. Suppose the message contains the following characters with their frequency: 

character   Frequency
    a	          5
    b             9
    c             12
    d             13
    e             16
    f             45

Note : Each character in input message takes 1 byte. If the compression technique used is Huffman Coding, how many bits will be saved in the message?

A

224

B

800

C

576

D

324

Ready to go from coding beginner to development pro? Our DSA to Development Coding Guide has everything you need to crush coding interviews and ace real-world projects! Limited spots available!

Share your thoughts in the comments

It seems that you are using an ad blocker.
Please disable it to support us!

Continue without supporting 😢