Unit 8 - Languages and Automata Flashcards

1
Q

An alphabet is

A

a finite and non-empty
set of symbols

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

an alphabet is often denoted with

A

Σ (Greek letter Sigma)

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

the empty word is denoted with

A

ε (“epsilon”)

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

if w and w’ are both words over Σ, then w·w’ is the word over Σ obtained by

A

concatenation of w and w’. We will often write just ww’ to abbreviate w·w’.

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

for all words w, the concatenations εw and wε are

A

the same word w.

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

A language over an alphabet Σ is

A

a subset of Σ*

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

Consider the alphabet
Σ = {a, b, c, d},
and the set:
L = { a·w·a | w ∈ Σ∗ }

L contains:

A

all words that start with a, continue with 0 or more symbols in Σ, and end with a.

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

L1 = {ε} is

L2 = ∅ is

A

L1 is the language that only contains the empty word ε;

L2 is the empty language, that does not contain any word.

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

A deterministic finite-state automaton (DFA) is a 5-tuple
(Q, Σ, δ, q0, F) where:

A
  • Q is a finite set of states;
  • Σ is a finite set of input symbols, called the alphabet;
  • δ : (Q × Σ) → Q is the transition function (δ is the Greek letter delta);
  • q0 ∈ Q is the initial state;
  • F ⊆ Q is the set of final (or accepting) states.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A non-deterministic finite-state automaton (NFA) is a 5-
tuple (Q, Σ, δ, q0, F) just like in DFA — with one difference:

A

δ ⊆ (Q × Σ) × Q is the transition relation.

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

True or false all DFAs are also NFAs

A

True

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

True or false all NFAs are also DFAs

A

False

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

The main advantage of NFAs over DFAs is that

A

NFAs are more flexible and allow to define more compact automata, with less states and transitions

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