Composing Regular Languages, DFA Equivalence and RegEx Flashcards

(18 cards)

1
Q

What does it mean if L1 union L2

A

A string is accepted if it is either L1 or L 2

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

What does it mean if L1L2 (concatenation)?

A

A string is accepted if it can be split into two parts where the first part is in L1 and the second part is in L2

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

What does it mean if L1*

A

Accepts any number of concatenated strings from L1

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

What is L1^r

A

The reverse of L1 is accepted

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

What is L1’

A

A string is accepeted if it is not in L1

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

what does it mean if L1 intersection L2

A

A string is accepeted if it is in both L1 and L2

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

Draw the NFA for L1 union L2

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

Draw the NFA for L1L2

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

Draw the NFA for L1*

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

Draw the NFA for L1^r

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

Draw the NFA for L1’

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

what does b.c mean

A

the dot means a concatenation, a followed by x

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

what does a + b.c mean

A

a or (b followed by c)

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

what does the Σ mean in

A

the set containing the alphabet

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

what is the order of precedence of these symbols

union
^*
^+
.
+

A

^+
^*
.
+
UNION

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

What is the language of the regex r = (aa)^(bb)b

A

L(r) = {a^(2n)b^(2m)b : n,m >= 0}

17
Q

When is a language regular

A

If and only if a regular expression describes the language