Input Test

Given an input string, this function shows step-by-step the states that the automaton goes through when it is run on the input.

Input Format

  1. Words of propositional symbols

  2. We assume propositional symbols are like {p, ~p}, {p q, p ~q, ~p q, ~p ~q}, etc. Each symbol in the input word should be enclosed in a pair of parentheses "(" and ")". The infinite repetition of the last portion of the input is indicated by enclosing the portion in a pair of curry braces "{" and "}".


    Examples:

  3. Words of classical symbols

  4. We assume the alphabet is like {go, stop, turn}, {red, green, blue}, {r, g, b}, etc. Each symbol in the input word should be enclosed in a pair of parentheses "(" and ")". The infinite repetition of the last portion of the input is indicated by enclosing the portion in a pair of curry braces "{" and "}".


    Examples: