10. (Chapter 16 Greedy Algorithms, 10 points) (a) What is an optimal code for the following set of frequencies for a set
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
10. (Chapter 16 Greedy Algorithms, 10 points) (a) What is an optimal code for the following set of frequencies for a set
10. (Chapter 16 Greedy Algorithms, 10 points) (a) What is an optimal code for the following set of frequencies for a set of seven symbols? $1: 1,82: 2, S3 : 4, 84: 8,85: 16, S6 : 32, 87: 64 (b) What is the expected (average) number of bits for encoding a file of 1000 symbols? (c) What is an optimal code for a set of 256 symbols, where frequency of ith symbol s, is 2-1, for 1 <i<256? (d) What is the expected (average) number of bits for encoding a file of 1000 symbols?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!