Question

A Suppose you had a character set with n symbols. How many bits are needed if we are going to represent those symbols using a Tixed-length binary encoding? Enter a precise formula for this value, as a function of n (do not use big-Oh notation). B Suppose you had a character set with 12 symbols. How many bits are needed if we are going to represent those symbols using a fixed-length binary encoding? Enter just a single number below

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Please upvote if you like the answer, as it helps the community a lot.

Also if you have any doubts, feel free to ask in comments, we will reach you ASAP.

Solution:

A. Given N symbols in the charset, we need to represent them with fixed length binary encoding.

Let the number of bits required = k

So we need 2k >= N

Hence, k = Ceil(log2N) = smallest integer greater than or equal to log2N

Ceil stands for ceiling value

B. Given N=12

Using above formula k = Ceil(log212) = 4

Add a comment
Know the answer?
Add Answer to:
A Suppose you had a character set with n symbols. How many bits are needed if...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT