Question

Theory of Computation 2. (a) Show that the language B e,1, 11,1100 is in complexity class TIME ) b) Show that the language B

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a. Language B is in complexity class TIME(1) because this language B can be recognized by deterministic Turing machine in time O(1). Below is the deterministic Turing Machine to recognize B.

(qo, € ) --> (qaccept, €, R)//accept the empty string

(qo, 1) -> (q1 , 1, R) //move right if input 1

(q1, €) --> (qaccept ,€, R) //accept if input is 1

(q1 , 1) --> (q2, 1, R)

(q2, €) --> (qaccept, €, R) //accept if input is 11

(q2, 0) -> (q3, 0, R)

(q3, 0) --> (q4, 0, R)

(q4, €) --> (qaccept, 1, R) //accept if input is 1100

We can see that input will be accepted only if it is in set B and there are constants steps to decide B, hence B is in complexity class TIME(1).

b. Since B is in complexity class TIME(1) which is subset of class P, hence B is also in class P.

Please comment for any clarification.

Add a comment
Know the answer?
Add Answer to:
Theory of Computation 2. (a) Show that the language B e,1, 11,1100 is in complexity class TIME ) b) Show that the language B e, 1,11,1100 is in complexity class P. Theory of Computation 2. (a) S...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT