Question #43232

For any solvable decision problem, there is a way to encode instances of a problem so that the corresponding language can be recognized by a TM with............... time complexity
a) linear
b) exponential
c) polynomial
d) none of these

Expert's answer

Answer on Question #43232 – Math – Other

For any solvable decision problem, there is a way to encode instances of a problem so that the corresponding language can be recognized by a TM with... time complexity

a) linear

b) exponential

c) polynomial

d) none of these

Solution:

We define such an encoding, ee, as follows


e(x)={1 x, if x is a yes - instance of the decision problem0 x, otherwisee(x) = \begin{cases} 1 \text{ x, if } x \text{ is a yes - instance of the decision problem} \\ 0 \text{ x, otherwise} \end{cases}


The decision problem is solvable, so ee is computable. e(x)e(x) can be recognized in a single move by examining the first character of the input. Linear time complexity means there are non-negative constants m,bm, b such that τT(x)mx+b\tau_T(|x|) \leq mx + b where τT\tau_T is the time complexity of the machine solving the decision problem. Clearly that is true for m=0m = 0 and b=1b = 1.

Answer:

a) linear.

www.AssignmentExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS