2DFA
A 2DFA, or Two-Dimensional Finite Automaton, is a computational model used to recognize patterns in two-dimensional data, such as images or grids. Unlike a traditional finite automaton (DFA), which processes one-dimensional sequences, a 2DFA operates on a two-dimensional grid of symbols. This makes it particularly useful for tasks involving spatial data, such as image recognition, pathfinding, and pattern matching in grids.
A 2DFA consists of a finite set of states, a set of input symbols, a transition function,
The behavior of a 2DFA can be deterministic or non-deterministic. In a deterministic 2DFA (D2DFA), the transition
2DFAs are used in various applications, including image processing, where they can recognize specific patterns or