Lecture 7 - DFA Flashcards

1
Q

What does a deterministic finite state automata consist of?

A
  • finite input alphabet Σ
  • a finite set of states Q
  • initial state q in Q
  • set of accepting states F in Q
  • control program / transition relation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why do we look at a determinisic FA?

A

As then each relation has only one place to go (no choice has to be made at all)

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

How are accepting states denoted?

A

double circles

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

How is a starting state denoted?

A

arrow from nothing to state

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

What does a DFA define?

A

A language

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

What does a DFA do?

A

Check whether language on tape belongs to language of DFA (whether a decision problem can be solved by the DFA)

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

Are nondeterministic FAs possible?

A

YES

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

What is a recognition for NFA?

A

only requires there exists a single execution ending in the accepting state

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

Can NFA be converted to DFA ?

A

yes

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

Are NFAs more powerful than DFAs ?

A

NO, as it doesn’t expand the language

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

How to convert NFA to DFA?

A

states of NFA are converted to set of states in DFA if reuiqred

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

Danger of reducing NFA to DFA?

A

blow up N, states can go up to 2^n

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

Name of language recognisable by DFA?

A

regular language

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

How can a regular language be expressed?

A

a regular expression

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

What is ε?

A

empty string

  • always think about in dfa
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is σ?

A

The regular expression

17
Q

What is RS?

A

concatenation

18
Q

What is R|S?

A

choice

19
Q

What is R*

A

0 or more copies of R

  • aka closure
20
Q

What is (R)?

A

used for precedence

21
Q

Order of precedence in regular expressions?

A

brackets
closure
concat
choice

22
Q

What is ?

A

or on all characters

  • any char
23
Q

What is !x

A

equivalent to or of all characters in alphabet except x

24
Q

What can a DFA not recognise?

A

when we need to count a certain number of characters e.g. a^nb^m

25
Q

Why cannot DFA recognise this?

A

As there are inifintely many values for n and m and hence there would need to be an infinite amount of states , but it is a ‘finite’ machine

26
Q

What is not a regular language?

A

a^nb^m

27
Q

What can recognise a^mb^n?

A

pushdown automata or tm

28
Q

How to recognise this a^mb^n

A

push a onto stack then pop when you read bs