Theory Flashcards
How can we classify a regular language?
Language is called regular if it can be generated by a regular expression
Every finite language is regular
True or false
True
Because it is the union of finitely many strings
When does a regular expression is ambiguous?
A regular expression is ambiguous if the corresponding marked regular expression generates two marked strings, such that if the indices are removed, the unmark strings obtained are identical
When a language is said to be closed?
A language is said to be close with respect to an operator (union, star, intersection), if the result language belongs to the same family as the operand language
List the operators the regular language family is closed with respect to
Concatenation , union, and star.
Therefore, the regular languages are also closed with respect to the derived operators, cross, repetition, option, nationality, etc.
When is a grammar considered to be in its reduced form?
A grammar is in reduced form if both the following conditions hold:
- Every nonterminal A is reachable from the axiom
- Every nonterminal A generates a nonempty to set of strings
List the operators the free language family is closed with respect to
The family of free languages school with respect to this language operations, union, concatenation, star, and intersection.The LIB family is also closed with respect to string mirroring.
How do we obtain the mirror grammar of a language?
It obtained by mirroring the right member of every rule of the former grammar
When do we consider a grammar to be ambiguous?
If it admits two or more different synthetic trees (two different derivations). A grammar is said to be ambiguous if it generates at least an ambiguous string
What are the extended free grammar?
Extended BNF or EBNF, are grammars in which the right side of the rules are composed by regular expressions. They closure is the same as the free language family (LIB)
What is the method to convert an automata to a regular expression?
The BMC method, also known as node elimination method
What are the automata characteristics in order to be able to apply the BMC method?
The initial and final states must be uniques
How does the BMC method works?
It eliminate node by node adding compensation arcs to preserve the equivalence of the automata
How can we transform a non-deterministic automaton into deterministic one
By eliminating the spontaneous moves and the nondeterministic multiple transitions
What is the Berry-Sethi method (BS)?
It is in methods to turn a regular expression into a finite state automanton
It also can be used to determinize a non-deterministic automaton
Can the BS algorithm be used to determinize a nondeterministic automaton with spontaneous moves?
Yes, it can. You just need to skip over these spontaneous transitions.