Introduction to Algorithms
3rd Edition
ISBN: 9780262033848
Author: Thomas H. Cormen, Ronald L. Rivest, Charles E. Leiserson, Clifford Stein
Publisher: MIT Press
expand_more
expand_more
format_list_bulleted
Question
Chapter 16.3, Problem 9E
Program Plan Intro
To show that no compression scheme can expect to compress file of randomly chosen 8-bit characters by even a single bit.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Give the result of encoding the strings ab, abab, ababab, abababab, ... (stringsconsisting of N repetitions of ab) with run-length, Huffman, and LZW encoding. Whatis the compression ratio as a function of N?
4. Given a sentence
JALESVEVA JAYAMAHE
a. Create a frequency table for each letter or character (including blank,
distinguish between uppercase and lowercase letters).
b. If 1 letter takes 1 byte (8 bits) of memory, how many bytes is it?
the memory required to store the text?
c. Apply Huffman coding algorithm, to summarize
(compress) the sentence.
d. What is the summarization efficiency (what % of memory saving is
generated)?|
Let æ(n1, n2) represent an 8x8 luminance block. The DCT of r(n1, n2) is quantized using
the JPEG luminance quantization Q matrix as specified in Section K, Table K.1, of the ISO/ITU-T
JPEG standard document that is provided on the course web site. The resulting quantized DCT
of a(n1, n2) is given by:
128 10 0
...
-4 0
...
X4(K1, K2) =
0.
...
0 0
...
which contains only three non-zero coefficients.
(a) Using Table F.2 (page 90) and Table K.5 (pages 150 to 153) of the ISO/ITU-T JPEG standard
document that is provided on the course web site, determine the JPEG bit stream for the AC
coefficients.
(b) What is the average bit-rate associated with these coded AC coefficients (in bits/coefficient)?
(c) What is the JPEG bit-stream of the considered 8 x 8 block if the quantization Q matrix is a
constant matrix where each element is equal to 3000?
Chapter 16 Solutions
Introduction to Algorithms
Ch. 16.1 - Prob. 1ECh. 16.1 - Prob. 2ECh. 16.1 - Prob. 3ECh. 16.1 - Prob. 4ECh. 16.1 - Prob. 5ECh. 16.2 - Prob. 1ECh. 16.2 - Prob. 2ECh. 16.2 - Prob. 3ECh. 16.2 - Prob. 4ECh. 16.2 - Prob. 5E
Ch. 16.2 - Prob. 6ECh. 16.2 - Prob. 7ECh. 16.3 - Prob. 1ECh. 16.3 - Prob. 2ECh. 16.3 - Prob. 3ECh. 16.3 - Prob. 4ECh. 16.3 - Prob. 5ECh. 16.3 - Prob. 6ECh. 16.3 - Prob. 7ECh. 16.3 - Prob. 8ECh. 16.3 - Prob. 9ECh. 16.4 - Prob. 1ECh. 16.4 - Prob. 2ECh. 16.4 - Prob. 3ECh. 16.4 - Prob. 4ECh. 16.4 - Prob. 5ECh. 16.5 - Prob. 1ECh. 16.5 - Prob. 2ECh. 16 - Prob. 1PCh. 16 - Prob. 2PCh. 16 - Prob. 3PCh. 16 - Prob. 4PCh. 16 - Prob. 5P
Knowledge Booster
Similar questions
- A2.JPG ... MOV SP, [BP+SI+ACBAH] A.JPG PHY. ADD PHY. ADD PHY. ADD PHY. ADD PHY. ADD D9855H 13H D9856H 24H D9857H| 35H D9858H 46H D9859H | 57H D985AH 68H D985BH 79H B8FAFH 05H В8FAЕН | 27Н DCCOAH 11H DCCOBH | 84н DCCOCH 52H DCCODH A1H DCCOЕH 27Н DCCOFH| 05H F6960H FEH E38E5H 13Н F695FH DCH F695EH | ВАН F695DH| 98H F695CH 76H E38E4H 24H Е38ЕЗН | 35Н E38E2H | 46H E38E1H 57H Е38EОН | 68Н E38DFH 79H B8FADH 87H B8FACH A1H B8FABH 52H B8FAAH 11H F695BH 54H F695АH | 32H B8FA9H 84H DCC10H | 87Нarrow_forwardGiven a 1000 × 1000 picture in true color (24-bit depth), how many bytes will be needed to store this image if we use a color look-up table and assume the image has only 256 different colors?arrow_forwardRun the matlab software. Create your own M-file (name it: file5.m or any name). Select the sampling frequency Fs= 8000 samples/sec Select the Time for Audio signal 5 sec Select the frequency of analog signal f1 Hz Select the frequency of analog signal f2 Hz generate cosine wave of f1+f2 Hz &define a closely spaced time vector. Generate a suitable time scale Sample the analog signal at the instant specified by n. Filter the combined signal to get the lowest frequency signal Generate and plot the Audio signal in time domain and in frequencydomain before and after filtering . Compare the generated analog audio signals.arrow_forward
- Using Matlab codesarrow_forwardshow all stepsarrow_forward3 Counting k-inversions A k-inversion in a bitstring b is when a 1 in the bitstring appears k indices before a 0; that is, when b; = 1 and bi+k = 0, for some i. For example, the string 010010 has two 1-inversions (starting at the second and fifth bits), one 2-inversion (starting at the second bit), and one 4-inversion (starting at the second bit). Devise an algorithm which, given a bitstring b of length n, counts all the k-inversions, for each k from 1 to n - 1. Your algorithm should run faster than (n²) time. You can assume arithmetic on real numbers can be done in constant time. Give a 3-part solution.arrow_forward
- Explain the term masking. How is it useful for data representation? Explain the concept using an example For a floating-point format with a k -bit exponent and an n -bit fraction, give a formula for the smallest positive integer that cannot be represented exactly (because it would require an n + 1 –bit fraction to be exact).arrow_forwardConsider a 16-bit binary floating point number representation system: + SE E EEEE m m m m The first bit of the exponent is dedicated to its sign. Assume that the mantissa must start with a '1'. Use this system to answer the following questions: 1. What is the smallest (magnitude) number that can be represented with this system? 2. Calculate the relative round-off error introduced when this system tries to represent e = 2.718281828459045235360287 .. using rounding.arrow_forward12 3 4 3) Given image f (x, y) = 556 6 apply the following transformations: 6 76 6 6 7 2 3 (a) Inversion (b) Logarithm function constant c = 0.5arrow_forward
- Assume that characters were represented by 51 bits before compression. Let the best compression ratio (compressed size / uncompressed size) achievable on any string using any Huffman tree is . What is the value of a +b?arrow_forwardDIGITAL COMPUTER SCIENCE.arrow_forwardGiven a system parameterized by 3 = 2, m = 3, and emin = -1 ≤ e ≤ emax = 2 where e Z. For this system, (a) find the floating-point representation of the numbers (6.25)10 and (6.875)10 in the Normalized Form. That is, find fl[6.25] and fl[6.875]. (b) what are the rounding errors 81, 82 in part (a)? (c) can the values (6.25) 10 and (6.875)10 be represented in the Denormalized Form? If so, find the floating-point representations. If not, then concisely explain why? (d) find the upper bound of the rounding error for Lecture Note, Normalized and Denormalized Forms.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning