2DFAs
2DFAs are a type of computational model used in theoretical computer science. They are a generalization of finite automata, which are typically used to recognize regular languages. A 2DFA operates on a two-dimensional tape, moving in any of the four cardinal directions (up, down, left, or right). This is in contrast to a standard finite automaton which has a read-write head that moves in only one dimension.
The states of a 2DFA include not only the internal states but also information about its current
While standard finite automata recognize regular languages, 2DFAs are capable of recognizing a more complex class