CH4 Flashcards

(11 cards)

1
Q

Define regular expression

A

is the notation for describing lexical analyzer softwares.

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

What does the implementation of regular expressions require?

A

DFA simulation

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

is it important and to convert NFA to DFA?

A

Yes

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

Why is it important and to convert NFA to DFA?

A

Because DFA is more straightforward than NFA.

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

What technique do we use to convert from NFA to DFA?

A

An algorithm of Subset Construction

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

What is the general idea behind Subset Construction?

A

each DFA state correspond to a set of NFA states.

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

represent NFA and DFA as a five tuple formal definition.

A

NFA =====> M = (Q,∑,∂, q0, F)

DFA====> M’ = (Q’,∑,∂’, q0’, F’)

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

What is the input of the subset construction?

A

NFA “N”

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

What is the output of the subset construction?

A

a DFA “D” accepting the same language as N

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

T/F
the subset construction eliminates and doesnt deal with epsioln.

A

F
the subset construction deals with epsilon transitions of N properly .

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

What are the operations on NFA states?

A

e-closure(s) Set of NFA states reachable from NFA state s on e-transitions alone.

e-closure(T) Set of NFA states reachable from some NFA state s in set T on e-transitions alone; =Us in T e-closure(s).

move (T,a) Set of NFA states to which there is a transition on input symbol a from some state s in T.

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