Question: You are required to implement Minsky Machines (MMs) in three different languages - Java, C and Python. Implementation Requirements : Set of MM's registers should
You are required to implement Minsky Machines (MMs) in three different languages - Java, C and Python. Implementation Requirements : Set of MM's registers should be implemented as an array of list of integers. Instruction types should be coded by the integers 10, 1, 2): use 0 for I, 1 for D, 2 for HALT. Instructions should be represented by arrays or lists of integers, for example, instruction D (1;2,0) in your Python program should be represented by the list [1, 1, 2, 0 ] . Programs should be implemented as arrays or lists of instructions. For example, the program from Example 1 should be represented by the following list of lists in your Python implementation: program = [[2] , [1 , 1, 2,0], [0,0,1]]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
