Ranked alphabet explained
In theoretical computer science and formal language theory, a ranked alphabet is a pair of an ordinary alphabet F and a function Arity: F→
. 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
,
a,b,c are constants,
g is unary, and
f is ternary.
Contrariwise,
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
- Book: Hubert. Comon. Max. Dauchet. Rémi. Gilleron. Florent. Jacquemard. Denis. Lugiez. Christof. Löding. Sophie. Tison. Marc. Tommasi. Tree Automata Techniques and Applications. November 2008. Preliminaries . 11 February 2014. .