Chapter 4 - Regular Expressions Flashcards

1
Q

What does L(theta) mean/translate into?

A

Theta i.e. the empty set

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

What does L(epsilon) mean/translate into?

A

The set of the empty word

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

What does L(X) mean/translate into?

A

L(X) = {x}, where x is an element of the associated alphabet

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

What does L(E + F) mean/translate into?

A

L(E + F) = L(E) Union L(F)

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

What does L(EF) mean/translate into?

A

L(EF) = L(E)L(F)

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

What does L(E*) mean/translate into?

A

L(E) = L(E)

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

What does L((E)) mean/translate into?

A

L((E)) = L(E)

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

How would you go about generating an NFA from a regular expression involving the generation of multiple NFAs?

A
  1. Generate each separate NFA based on the structure of the regular expression e.g. if it is N(ab), then generate the NFAs for a* and b*.
  2. Combine the two together by splitting a connection connected to a final state, and link it to the other final state for the empty word in the 2nd NFA, as well as its initial state.
  3. Remove dead ends that lead to nowhere useful
How well did you know this?
1
Not at all
2
3
4
5
Perfectly