Question
Give a high-level description of a function f which takes as input a number n N and returns the descriptions of two Turing machines, C
Give a high-level description of a function f which takes as input a number n N and returns the descriptions of two Turing machines, Cn and Dn, that work as follows. Cn will be a compressor for strings of exactly length n, and Dn will be a decompressor for strings of exactly length n. (They can be assumed to only work for strings of length n.) When Cn is given as input a string s {0, 1}n (i.e. a binary string of length n) it returns a binary string c {0, 1}m such that for every input string of length n except one, m < n. That is, it returns a binary string shorter than length n for every possible input of length n except for one. For the one exception, the c returned is of length n. Then, when c is used as input to Dn, Dn outputs the original string s (that was input to Cn). Note that m can also be 0, i.e. c can be the empty string. Given some output c, which was output from Cn on input s, Dn must always correctly output that s.
In summary, Cn is a compressor for strings of exactly length n and Dn is a decompressor for those strings. Cn and Dn are hard-coded to work for strings for length n, and compress and decompress all but one of them by at least one bit.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started