1.8 KiB
created, course, topic, related, type, status, tags
| created | course | topic | related | type | status | tags | |
|---|---|---|---|---|---|---|---|
| 2026-04-08 10:20 | 29593850 - Automationtheory | languages | lecture | 🔴 |
|
📌 Summary
[!abstract] Definition and example for formal languages
📝 Content
A formal language of the alphabet Sigma is a subset L of Sigma^*.
[!EXAMPLE] For alphabet
Sigma = {a, b}, letL_1be the set of all string starting withb, followed by an arbitrary number of $a$'s, and ending withb:L_1 = {b a^n b | n in NN_0}Thenb b in L_1, b a b in L_1, etc.
Language Operations
Concatenation of languages
For languages X subset Sigma^*_X over alphabet Sigma_X and Y subset Sigma^*_Y over alphabet Sigma_Y, their concatenation is
X circle.small Y = X Y = {x y bar x in X and y in Y}
The concatenation of X and Y thus contains all string combinations where the prefix is a string from X and the suffix is a string from Y.
[!CONVENTION] Concatenation has a higher precedence than set operations (
union, inter).
Exponentiation of languages
The n^"th" power of the language L subset.eq Sigma^* over alphabet Sigma is
L^0 := { epsilon }L^n := L^(n-1) Lifn > 0
Finite representation of languages
Goal: Represent a language using finite information
Using set notation
S = {a^n b^m bar n, m >= 0} = {epsilon, a, b, "aa", "ab", ...}
This is very inefficient.
Using regular expressions
A regular expression r over an alphabet Sigma is defined recursively:
emptyset, epsilonand eacha in Sigmaare regular expression, which represent the LanguagesL(emptyset) = emptyset, L(epsilon) = {epsilon}andL(a) = {a}- If
randsare regular expressions then(r+s)