Question

il 150,51 iv. {S1) v. (S2) vi. All of the above 6. Construct a Turing machine that reads a binary number and converts it to its 1s complement number.
media%2F6a9%2F6a976f59-d6b4-41f9-86cb-0f
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Designing a Turing machine to convert a binary number into its 1's complement would be easy.

We can have 3 states
   q1 -> converts 1 to 0 and move right OR coverts 0 to 1 and move right
   q2 -> Return to the initial position i.e. the leftmost position of the tape
   qf -> final state
   As you can see q2 is an optional state and can be omitted by you upon you wish

    Q = { q1, q2, qf }
    X = {0, 1}
    ∑ = {0, 1}
    q0 = {q1}
    B = blank symbol
    F = {qf}

Tape alphabet symbol present state 'q1' present state 'q2'
0 1Rq1 0Lq2
1 0Rq1 1Lq2
B BLq2 BRqf
Add a comment
Know the answer?
Add Answer to:
il 150,51 iv. {S1) v. (S2) vi. All of the above 6. Construct a Turing machine...
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