Spring 2021 - CS701 - 3
Spring 2021 - CS701 - 3
Total Marks: 50
Due Date: 21-06-2021
a) Make a Turing machine that takes any binary string as input and inverts its odd position bits in
the output.
For each statement find the value of X and also give reason why
a) Among binary strings of length 7 there are atleast X strings that are 2-incompressible.
b) Among binary strings of length 8 there are atleast X strings are 4-incompressible.
c) Among binary strings of length 6 there is atleast X strings that are 3-incompressible
Consider the following algorithm that determines if a given number n is composite or not
on input <n>
for i = 2..n
check if i divides n
if it does accept
reject
a) The loop runs n times so why this algorithm is not polynomial time in the size of input?.
b) How can a nondeterministic TM decide this problem(composite number) in polynomial time?
Can we use that nondeterministic TM polynomial time algorithm to solve this problem in
polynomial time on a computer. If not why?