3 - finite state automata Flashcards

1
Q

it is a
theoretical model in computer science
and mathematics used to describe and
analyze systems that exhibit discrete and
sequential behavior.

A

finite automaton/
finite state machine (FSM),

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

A. 6 components of finite state machine

A

states
transition’
input alphabet
start state
accept state
other FSM details

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

A finite set of discrete states, typically represented as circles or
nodes in a diagram. These ______ represent different conditions or
configurations that the automaton can be in at any given moment.

A

states

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

A set of _______ or edges between states, typically
represented as arrows in a diagram. _______ define how the automaton
moves from one state to another based on input symbols or conditions.

A

transition

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

A finite set of symbols, known as the _______ _______, which
are used to trigger transitions between states. The automaton reads these
symbols one at a time and changes its state accordingly.

A

input alphabet

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

The initial state from which the automaton begins its operation
when it is given an input.

A

start state

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

One or more states designated as _____ _______ or final
states. When the automaton reaches an ______ ________ after processing the
input, it signifies that the input is accepted or recognized by the automaton.

A

accept state

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

A _____ is a basic unit of information or a character from a finite
set of characters.
In the context of FSMs,it is the individual elements that
make up the input alphabet. These can be letters, digits,
or any other characters relevant to the problem being modeled by
the FSM.

A

symbols

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

The _______, often denoted as Σ, is the finite set or collection of
symbols from which input strings are constructed for an FSM.

A

alphabet

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

A ______ is a sequence of symbols from the alphabet.
- In the context of FSMs, it is an input sequence that the FSM
processes. It is formed by concatenating symbols from the
alphabet in a specific order.

  • For example:
    o In the binary alphabet Σ = {0, 1}, the string “11010” is
    formed by concatenating the symbols ‘1’, ‘1’, ‘0’, ‘1’, and ‘0’.
A

string

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

A _______ is a set of strings defined over an alphabet.
- In the context of FSMs, it is a collection of strings that
an FSM can recognize or generate. it is typically
specified in terms of the alphabet and the rules that define which
strings belong to the language.

  • For example:
    o In the binary alphabet Σ = {0, 1}, the language L1 may
    consist of all strings with an even number of ‘1’s, such as
    {“”, “0”, “00”, “1100”, “101010”}.
    o In the alphabet Σ = {a, b}, the language L2 may consist of
    all strings that start with ‘a’ and end with ‘b’, such as {“ab”,
    “acb”, “aabb”, “abab”}.
A

language

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

It is often denoted as Σ, refers to the set of all possible strings
that can be constructed using the symbols from a given alphabet
Σ. In other words, Σ
represents the set of all finite-length strings
composed of symbols from the alphabet Σ, including the empty
string (ε).

A

Powers of Σ

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

Refers to the “size” or “number of elements” in a set. It is a way
of quantifying the size of a set or a collection of objects.
- Usually denoted by Σn
= 2n

  • Applies to both finite and infinite sets. Finite sets have a finite
    cardinality (a specific number of elements), while infinite sets
    have infinite cardinality (countably or uncountably infinite).
  • For examples:
    o The cardinality of the set {1, 2, 3} is 3, as it contains three
    elements.
    o Σ*
    = Σ0
    U Σ1
    U Σ2
    U Σ3

= { ε } U { 0,1 } U { 00,01,10,11 } U …
= set of all possible strings of lengths over { 0,1 } (infinite)

A

cardinality

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

B. 2 variation of finite state automata

A
  1. Deterministic Finite Automaton (DFA)
  2. Nondeterministic Finite Automaton (NFA)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

in _______, for each state and input
symbol, there is exactly one transition
to another state. particularly well-suited for recognizing regular languages.

A

deterministic finite automaton (DFA)

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

In an _______ , there can be
multiple transitions from a state for the
same input symbol, or there may even
be epsilon transitions (transitions that
don’t require input symbols).

A

nondeterministic finite automaton (NFA)

17
Q

DFA consists of 5 tuples

A

{Q, Σ, q, F, δ}.

Q : set of all states.
Σ : set of input symbols. (Symbols which machine takes as input)
q : Initial state. (Starting state of a machine)
F : set of final state.
δ : Transition Function, defined as δ : Q X Σ –> Q.

18
Q
A