Terminology
- A symbol is the smallest unit in a language.
- An alphabet is the set of all symbols available in the language.
- A string is a series of 0 or more symbols from the alphabet.
- The empty word (denoted by ) is a string containing no letters.
- A language is a set of words.
- Concatenation (denoted as )is an operation which takes two strings and returns the first followed by the second.
- Concatenation can be denoted as a power - is the string concatenated with itself times.
Operations on Languages
As languages are sets, we can apply some set operations to them, including:
- Union (),
- Intersection (),
- Complement () We can also apply some other operations:
- Concatenation - ,
- N-ary concatenation- .
Types of languages
Regular Languages
Regular Languages can be described by Regular Expressions. Given regular languages and , the following are also regular languages:
- ,
- ,
- ,
- .