1/16
Looks like no tags are added yet.
Regular Expressions (RE)
Shorthand notations that describe a language, representing sets of strings in an algebraic fashion; the language part of Type 3 grammar accepted by finite automata (FA) machines.
Regular Set
Any set represented by a regular expression.
Stephen Kleene
American mathematician who first proposed Regular Expressions to describe the algebra of a regular set.
Ken Thompson
Used Regular Expressions in the early computer text editor 'QED' and UNIX editor 'ed'.
Union
A basic RE operation where for two regular expressions R1 and R2, L(R1 ∪ R2) is denoted by L(R1 + R2); has the lowest precedence among basic RE operations.
Concatenation
A basic RE operation where for two regular expressions R1 and R2, L(R1 ∩ R2) is denoted by L(R1 · R2) or L(R1R2); has the second-highest precedence among basic RE operations.
Iteration/Closure
A basic RE operation denoted by L(R*) or L(R+), representing a string obtained by concatenating n elements for n >= 0 (iteration of 0 to infinity times) applied to an RE; has the highest precedence among basic RE operations.
Kleene's Closure
A set of all strings, including the null string (ε), obtained from the alphabets of set Σ, denoted as Σ*.
Arden's Theorem
A theorem expressed as R = Q + RP = QP*, used to construct a regular expression from a transitional system of finite automata.
Context-Free Grammar (CFG)
A Type 2 grammar according to the Chomsky hierarchy defined as G = (V, T, P, S) where all productions in P have the form A -> x (with A ∈ V and x ∈ (V ∪ T)*), and regular grammar is a subset of it.
Context-Free Language (CFL)
The language defined and produced by a Context-Free Grammar, consisting of the set of all strings of terminals that can be produced from the start symbol S using productions as substitutions.
Derivation
The process of defining strings out of a Context-Free Grammar by applying rules from the starting symbol and repeatedly replacing a variable or non-terminal by the production body.
Leftmost Derivation (LMD)
A derivation that only involves replacing the leftmost non-terminal by some production rule at each step of the language-generating process.
Rightmost Derivation (RMD)
A derivation that only involves replacing the rightmost non-terminal by some production rule at each step of the language-generating process.
Parse Tree (Derivation Tree)
An ordered tree illustration representing the derivation of a context-free language from a given grammar, where the LHS of a production is the parent node and the RHS is the children nodes.
Yield
The resulting terminal string derived from the root variable when the leaves of a parse tree are concatenated from the left.
Sentential Form
The string formed when elements are concatenated at any intermediate step during a derivation.