week 8,9,10 Finite automata Flashcards

1
Q

How does finite automaton work

A

.At regular time intervals:
. reads the first character from the inputted word
. Head moves to the next character
.control device determines ( the next state)
. Stops when the head reaches the last character of the input word ( when it hits the first blank cell)
. If it ends in an accepted state, word is accepted and part of language
. If it doesnt word is not part of language

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

How does the control device determine the next state

A

. The previous state
. The character read from the tape

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

What does it mean by a DFA ( deterministic)

A

. For each state ( and symbol ) there is an arrow coming out of the state labelled by the symbol
. Next state is determined by :
( letter/ character read , current state)

. Never gets stuck
. No choice in what route to take

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

Language of a DFA?

A

set of all words over alphabet that it accepts

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

Properties of an NFA

A

. There can be choices (on what state to move to)
. control device can get stuck ( there is no arrow leaving the state with the desired symbol)
. There are ε- jumps

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

Difference between transition table of NFA and DFA

A

. There is an e - coloumn
. cells can be contain 0 , 1 or more than one states

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

A NFA can be regarded as a DFA if …

A

. cells contain one state only and all cell in ε column are empty

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

Word in NFA accepted iff

A

There is at least one computation in the input word (as there can be multiple variations in choices taken) that is accepted

. accepted is NOT same as being stuck on a favourable state

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

What is the subset construction

A

Method to turn NFA to DFA

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

What are the new states in subset construction

A

named after subsets of original states

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

what is new inital state in subset construction

A

subset containing the original initial state in NFA and any states reachable by ε jumps from original initial states

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

New faourable state

A

Those subsets that contain at least one of NFA’s old favourable states

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

What is the general rule from going from a state to the next state in subset construction

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

What usually has more states DFA or NFA

A

DFA

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

What is the worst case number of no of states in DFA

A

2^ ( no of states in NFA)

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

What are main symbols in regular expressions

A

union , asterisk , comma , brackets with comma , ε , empty set

17
Q

what is a regular language

A

A language that can be expressed via a regular expression

18
Q
A