Chapter 1: Regular Languages (FA, Nondeterminism, Reg Expressions, Nonreg Languages) Flashcards

1
Q

What is a finite automaton (FA)?

A

Also known as a Finite State Machine (FSM)

  • A simple model of computation, for machines with very limited memory (automatic door, elevator, digital watch)
  • Good for emulating simple/few instructions
  • Useful when attempting to recognize patterns

Informally, consists of:

  • States
  • Transitions
  • 1 start state
  • 1+ final states
  • Alphabet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is computability theory?

A
  • Deals with the mathematical basis for Computer Science
  • Help us answer the question: “What can and cannot be computed”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a computational model?

A

Mathematical object (defined on paper) that enables us to reason about computation and to study the properties and limitations of computing

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

How do we determine whether a string x is a member of a machine’s language L(M)?

A
  • if M’s output is accept – which happens only if M is in an accept state when it reads the last symbol of string
    • i.e., the string must take M from start to final/accept state (machine ends on accept state after reading string)
  • the string’s symbols must be over the machine’s alphabet Σ
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the formal definition of a FA?

A

A finite automaton is a 5-tuple (𝑄, Σ, 𝛿, 𝑞𝑜, 𝐹), where

  1. 𝑄 is a finite set called the states
  2. Σ is a finite set called the alphabet
  3. 𝛿: 𝑄 × Σ → 𝑄 is the transition function
  4. 𝑞𝑜 ∈ 𝑄 is the start state
  5. 𝐹 ⊆ 𝑄 is the set of accept states (or final states)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Is a FA allowed to have 0 accept states?

A

Yes.
(book p.35)

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

T or F:
“FA must have exactly one transition exiting every state for each possible input symbol”

A

True
(book p.35)

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

Using the transition function, show that if an automaton is in state x when it reads a 1, it then moves to state y.

A

δ( x, 1 ) = y

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

Formally state why it’s possible to have FA with zero accept states.

A
  • setting F (set of accept states) to be the empty set ∅ yields 0 accept states, which is allowable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What can we say about a machine’s recognized language if it accepts no strings?

A

It recognizes one language: empty language ∅.

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

What does it mean for a machine to recognize a language?

A
  • The language recognized (or accepted) by a FA M contains all the input strings which can take M from the start to the final state
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does it mean for a machine M to accept a string x?

A
  • if M stops in a final state after reading string x, then M accepts x
  • thus, x is a member of the language recognized by M, i.e., x ∈ L(M)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Define what it means for a set A to be the language for a machine M.

A

If A is the set of all the strings a machine M accepts, then A is the language of the machine M, i.e., L(M)=A

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