Difference: CSC122F2021Lab2 (2 vs. 3)

Revision 32021-09-03 - cathybareiss

Line: 1 to 1
 
META TOPICPARENT name="CSC122SylF2021"

Turing Machine

Learning Objective(s)

Line: 20 to 20
 
        • char: new character
        • int: direction to move tape (-1, 0, 1)
        • int: new state
Added:
>
>
      • Constructor : Argument: String in form of a,b,c,d,e where
        • a is an integer representing the current state
        • b is a character representing the current value read by the tape head
        • c is the new character to be written to the tape
        • d is the direction to move the tape
        • e is the new state
 
      • equals : This methods returns a boolean indicating if it matches the passed state and character. Arguments(in order):
        • int: current state
        • char: current character
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback