Week 1 Flashcards

1
Q

The alphabet?

A

(Σ) which is a set of characters such as {a,b,c}

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

Σ*

A

the set of all words

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

Language

A

is a set of words which is subset of Σ*

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

The regexp a matches only the word?

A

a

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

The regexp ε matches only ?

A

The empty word ε

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

The regexp 0 matches ?

A

none

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

the regexp EF matches?

A

(a word matches by E) + (a word matches by F)

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

the regexp E|F matches?

A

(a word match by E) or (a word matches by F)

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

the regexp E* matches?

A

0 or more

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

The precedence rule of regexp?

A

1- * + ?
2- juxtaposition
3- |

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

the regexp E+ ?

A

EE* , one or more

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

E?

A

ε | E, zero or one

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

Regular language?

A

Language that can be represented by a regular expression

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

decision problem?

A

is a problem that, for any given argument, has a Yes/No answer

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

Decidable decision problem?

A

when there is some program that, given an argument, says whether the answer is Yes or NO

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

Deterministic finite automata consists of:

A

· A finite set X of states
· An initial state p ∈ X
· A trainstion function δ: X ×Σ →X
A set of acceptiong states: Acc ⊆X

17
Q

Ismorphism?

A

A bijiction that perserves the intial state, the accepting state and the transtion function.

18
Q

particial DFA?

A

· δ is merely a partical function, sometime it can be undefined
· As soon as a character cannot be an input, the word is rejected
A partical DFA can also have no initial state but then every word is rejected

19
Q

convert PDFA to DFA?

A

We just add extra non-acception state, error state. Transitions that are undefined in particial DFA go to the error state and every transition from the error state goes to the error state.

20
Q

nonderministic finite automata?

A

· δ is a relation not a function (since one state maps to two different states with the same character)
. it can have more than 1 initial states

A word w is acceptable when there exists a path from an initial state to an accepting state that goes through the characters of w.

21
Q

Determinisation?

A

the process of of converting NFA to DFA.

22
Q

NFA with ε-transiotns?

A

· ε-Transitons: it moves from one state to another without inputing any character.
A word w is acceptable when there exists some path from initial state to an accepting state that goes through the characters of w padding with ε-transtions.

23
Q

Slow b-transtions?

A

consists of zero or more ε-transitions ending with b-transtion.

24
Q

Slow accepting:

A

consists of zero or more ε-transitions ending with accepting state.