public TMInstance(OneTapeTuringMachine owner, int[] input)
        {
            this.owner = owner;
            Level      = 0;

            tape      = new TapeArray();
            cellIndex = 1;
            state     = owner.qStart;

            for (long i = 1; i <= input.Length; i++)
            {
                int currentInputSymbol = input[i - 1];

                Ensure.That(owner.Sigma.Contains(currentInputSymbol)).IsTrue();

                tape[i] = currentInputSymbol;
            }
        }
Beispiel #2
0
        public LAP_MEAP(OneTapeTuringMachine tm)
        {
            this.configuration = Core.AppContext.GetConfiguration();

            this.tm = tm;
        }