Lecture 7 - Finite Automata and Regular Expressions Flashcards

Closure theorems, Main Theorem, Generalized Automaton

1
Q

What is the main theorem?

A

A language L is regular:
- iff. it is accepted by a finite automaton
- (i.e.) iff. there is a finite automaton M, such that L = L(M)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the closure theorem? Are the class of regular languages also closed under this?

A

The class of languages accepted by a finite automata is closed under:
1. Union
2. Concatenation
3. Kleene’s Star
4. Complementation
5. Intersection
Yes, class of regular languages are closed under these operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

*The class of languages accepted by ______ ________ ________ is the same as the class of _______ _________

A

finite automata DFA/NDFA; regular languages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

*A language is regular iff. ____ ________ __ _ ______ _________

A

it’s accepted by a finite automaton

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Languages are sets so we have the operations:

A

(Sets) Union, Intersection, Complementation

(Language specific operations) Concatenation, and Kleene’s Star

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a schema diagram?

A

Diagram of M with no names on states

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In the concatenation operation, why can’t the transaction
(q, e, s2) be skipped?

A

Skipping these transactions b/w M1 & M2 leads to automata accepting different languages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Theorem 1 of Main Theorem?

A

For any regular language L, there is a finite automata M such that L = L(M)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Theorem 2 of Main Theorem?

A

For any finite automata M, the language L(M) is regular; there is a regular expression
r ∈ R,
such that L(M) = r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the Generalized Automaton used for?

A

To construct a regular expression r ∈ R that defines L(M), such that L(M) = r; Construction of a sequence of GM that are all equivalent to M

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How does the GM work? What is the final outcome?

A
  • States of M are eliminated one by one
  • GM is reduced to single transition between the 2 states initial and final
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a regular language?

A

Those that can be described by regular expressions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly