Question: Suppose we have a compression function c, which takes a bit string s to a compressed string c(s). (a) Show that for any integer N,
Suppose we have a compression function
c, which takes a bit string s to a compressed string c(s).
(a) Show that for any integer N, there must be a string s of length N for which length(c(s)) ≥ N; that is, no effective compression is done.
(b) Compress some already compressed files (try compressing with the same utility several times in sequence). What happens to the file size?
(c) Given a compression function c as in (a), give a function c
such that for all bit strings s, length(c
(s)) ≤ min(length(c(s)), length(s)) + 1; that is, in the worst case, compression with c
expands the size by only 1 bit.
Step by Step Solution
3.45 Rating (164 Votes )
There are 3 Steps involved in it
SOLUTION a To show that for any integer N there must be a string s of length N for which lengthcs N we can use the Pigeonhole Principle Assume that c ... View full answer
Get step-by-step solutions from verified subject matter experts
