L6 - Finite State Automata Flashcards

1
Q

How do you show an accept state on a state diagram?

A

A double circle

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

How do you show a start state on a state diagram?

A

Arrow pointing to the start state

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

How do you show a transition and transition condition on a state diagram?

A

A curved arrow between states; put the condition on the curved arrow

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

Is is required to have a start state or accept state?

A

No. Can have none.

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

What is the maximum number of

a) Start States
b) Accept states

A

a) One.
b) Unlimited.

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

State machines are what type of Automata?

A

Finite

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

What are the five elements of a finite automaton?

A

Q - a finite set of states

Σ - finite set called the alphabet, the elements of which are called symbols

δ - a function called the transition function

q - an element of Q called the start state

F - a subset of Q called the accept states

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

Why do we not hear about infinite automata?

A

‘uncountable’ states and transitions - impractical to consider

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

What makes a finite automata a non-deterministic finite automata (DFA)?

A
  • one input can lead from a given state to more than one states
  • a transition may occur without an input
  • input may be empty
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What makes a finite automata a deterministic finite automata (DFA)?

A
  • one input will lead to one transition at most for any given state (one input cannot lead to two states)
  • transitions only occur with input
  • input may not be empty
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a language, in terms of finite automata?

A

A set of input strings.

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

What makes a language a regular language?

A

If there exists a finite automaton that accepts the strings in the language, the language is regular.

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