Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Regular expression, denoted language?

Também chamado de: regular expression · denoted language

Definition 22.1 University Computer Science — Year 2 · Capítulo 22 — Regular Expressions and the Limits of Regular Languages

The regular expressions over an alphabet Σ\Sigma are the trees built by these rules: ∅\emptyset and ε\varepsilon are expressions, every letter a∈Σa \in \Sigma is an expression, and if ee and ff are expressions, so are e∣fe \mid f (alternation), efef (concatenation) and e∗e^* (star). The language denoted by an expression is defined on the tree: L(∅)=∅L(\emptyset) = \emptyset, L(ε)={ε}L(\varepsilon) = \{\varepsilon\}, L(a)={a}L(a) = \{a\}, L(e∣f)=L(e)∪L(f)L(e \mid f) = L(e) \cup L(f), L(ef)=L(e)L(f)L(ef) = L(e) L(f) and L(e∗)=L(e)∗L(e^*) = L(e)^*. Two expressions are equivalent if they denote the same language.

Ler no capítulo →