Ranked alphabet
From HandWiki
Revision as of 01:09, 17 November 2021 by imported>Nautica (simplify)
In theoretical computer science and formal language theory, a ranked alphabet is a pair of an ordinary alphabet F and a function Arity: F→[math]\displaystyle{ \mathbb{N} }[/math]. Each letter in F has its arity so it can be used to build terms. Nullary elements (of zero arity) are also called constants. Terms built with unary symbols and constants can be considered as strings. Higher arities lead to proper trees. For instance, in the term
- [math]\displaystyle{ f(a,g(a),f(a,b,c)) }[/math],
a,b,c are constants, g is unary, and f is ternary.
Contrariwise,
- [math]\displaystyle{ f(a,f(a)) }[/math]
cannot be a valid term, as the symbol f appears once as binary, and once as unary, which is illicit, as Arity must be a function.
References
- Comon, Hubert; Dauchet, Max; Gilleron, Rémi; Jacquemard, Florent; Lugiez, Denis; Löding, Christof; Tison, Sophie; Tommasi, Marc (November 2008). "Preliminaries". Tree Automata Techniques and Applications. https://gforge.inria.fr/frs/download.php/10994/tata.pdf. Retrieved 11 February 2014.
![]() | Original source: https://en.wikipedia.org/wiki/Ranked alphabet.
Read more |