- Initially Registers A And B In A Register Machine Contain X And Y Stones Respectively All Other Registers Are Empty 1 1 (53.65 KiB) Viewed 65 times
Initially registers A and B in a Register Machine contain x and y stones, respectively. All other registers are empty. 1
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Initially registers A and B in a Register Machine contain x and y stones, respectively. All other registers are empty. 1
Initially registers A and B in a Register Machine contain x and y stones, respectively. All other registers are empty. 1. Construct a register machine R that computes 2(x-y) stones and places the result in register A. However, if x-y is a negative number, the results stored in register A should be 0 stones. [6 marks] 2. Write the TM equivalence for the following: o The initial condition of the machine. [2 marks] o The states at which the machine halts. [2 marks]