Question: 1. Construct a state diagram of a Turing machine M that computes the negation of a signed binary number (in 2s complement format) on the

1. Construct a state diagram of a Turing machine M that computes the negation of a signed binary number (in 2s complement format) on the tape.

-if the input is empty, M loops.

- if the input number is positive, M accepts leaving the 2s complement on the tape.

- if the input number is negative, M rejects leaving the absolute value on the tape.

- if the input is 00...0, M accepts leaving 10...0 on the tape.

For example, if the initial tape is 011010, the Turing machine should accept and leave 100110 on the tape. If the initial tape is 101110, the Turing machine should reject and leave 010010 on the tape.

2. Give an implementation-level description of the Turing machine M defined above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!