Test 1 Flashcards

1
Q

What is an alphabet?

A

An alphabet is any non-empty finite set of symbols.

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

What is a string?

A

A string is a finite sequence of zero or more symbols.

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

The concatenation of two strings x and y is the string containing all the symbols of x in order, follwed by all the symbols of y in order.

A

T

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

What is a language?

A

A sequence over some fixed alphabet.

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

In a DFA, an arrow points to one of the states, the unique start state; double circles mark any number of states as accepting states.

A

T

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

If at an accepting state, we say that the machine…?

A

accepts the string.

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

What is it called when a string can’t reach the accepting state?

A

it is rejected.

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

What is the 5-tuple in symbol form?

A

M=(Q,Σ,δ,qsub0,F)

M = Q, Epsilon, Delta, q sub 0, F

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

The complement of a machine language is the reverse of the accepting states.

A

T

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

If “L” is any regular language, “L Complement” is also a regular language?

A

T

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

What are closed under complement?

A

Regular languages.

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

What is the product construction theorem?

A

If L1 and L2 are any regular languages, L1 intersect L2 is also a regular language.

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

If L1 and L2 are any regular languages, L1 union L2 is not a regular language.

A

F

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

For intersections, the new DFA accept when both the original DFAs accept.

A

T

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

Four unions, the new DFA accepts when?

A

Either or both of the original DFAs accept.

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

Whenever you prove something, you have to exercise judgment about how much to give.

A

T

17
Q

The empty set is a legal alphabet.

A

T

18
Q

The empty set {} = {e}.

A

F

19
Q

The Kleene close of an alphabet is written how, and is the set of what?

A

E*(epsilon), all empty strings over E (epsilon).

20
Q

Any and EVERY state transition diagram is a DFA.

A

F

21
Q

What should be shown to make state transition diagrams fully specified?

A

Exactly one transition from every state.

22
Q

“Q” often represents what?

A

A finite set of states.

23
Q

Epsilon often represents what?

A

An alphabet.

24
Q

Delta represents what?

A

(Q cross Epsilon)

25
Q

What symbol represents the start state?

A

(q sub 0) is in the set of Q

26
Q

What is the final part of the DFA F?

A

F is a subset of Q identifying the set of accepting states

27
Q

What is a regular language?

A

A language that can be recognized by a DFA.

28
Q

Regular languages are closed under intersections.

A

T

29
Q

Regular languages are not closed under union.

A

F

30
Q

Each move in a state transition diagram is called what?

A

state transition.

31
Q

What symbol represents the start state in a state transition diagram?

A

Arrow.

32
Q

How many strings are in {e}?

A

1