1. Home
  2. Explore
  3. Computer Science
  4. Regular Languages Equivalences

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Regular Languages Equivalences

  • 71Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Regular Languages
Regular languages can be characterized by several different equivalent formalisms, even though these formalisms may make different properties appear obvious. These formalisms are equivalent in terms of their
.

71 questions

  1. 1
    Regular languages can be characterized by several different equivalent formalisms, even though these formalisms may make different properties appear obvious. These formalisms are equivalent in terms of their
    _____
    .
    Hint

    Think about what it means for two computational models to recognize exactly the same class of languages.

    Answer

    computation power

  2. 2
    A language is called regular exactly when it is defined by some kind of
    _____
    .
    Hint

    Use the standard machine model abbreviated DFA.

    Answer

    deterministic finite state automaton

  3. 3
    In mathematics, a word is a string of symbols drawn from an
    _____
    .
    Hint

    This is the finite set of characters from which strings are formed.

    Answer

    alphabet

  4. 4
    An alphabet is a
    _____
    set of characters or symbols.
    Hint

    The standard finite-automaton model assumes only finitely many possible input symbols.

    Answer

    finite

  5. 5
    Any collection or set of words is called a
    _____
    .
    Hint

    In formal language theory, this term refers to a set of strings.

    Answer

    language

  6. 6
    A regular language is recognized by a machine with a finite amount of
    _____
    .
    Hint

    This limitation is the defining feature of the word 'finite' in finite automata.

    Answer

    memory

  7. 7
    Switching between different equivalent presentations of regular languages is useful because each presentation makes a different set of
    _____
    obvious.
    Hint

    Different viewpoints highlight different features of the same mathematical object.

    Answer

    properties

  8. 8
    The basic machine model introduced for regular languages is the finite state automaton, also called a
    _____
    .
    Hint

    The abbreviation for this machine is DFA.

    Answer

    deterministic finite automaton

  9. 9
    A finite state automaton processes an input word one character at a time, updating its internal
    _____
    after each character.
    Hint

    This is the machine's current memory configuration.

    Answer

    state

  10. 10
    The indicator light of a finite automaton is on at the end of the input when the word is
    _____
    by the machine.
    Hint

    An accepted word belongs to the language recognized by the automaton.

    Answer

    accepted

  11. 11
    If the indicator light is off after the entire input is processed, the word is
    _____
    by the machine.
    Hint

    The word does not belong to the language recognized by the automaton.

    Answer

    not accepted

  12. 12
    Between input characters, a finite state automaton does not change because it has no internal
    _____
    .
    Hint

    The machine is not time-dependent while it waits for the next key.

    Answer

    clock

  13. 13
    A finite state automaton is not connected to external data sources; it changes only in response to the next input
    _____
    .
    Hint

    The machine reads symbols from its input alphabet.

    Answer

    character

  14. 14
    The finite memory of an automaton means that, by the pigeonhole principle, sufficiently long input must eventually return the machine to a state it has visited
    _____
    .
    Hint

    There are more input steps than available states, so a state must repeat.

    Answer

    before

  15. 15
    When a finite automaton revisits a previous state, it has completely forgotten the information from the portion of input between the two visits to that
    _____
    .
    Hint

    The repeated memory configuration makes the earlier and later situations indistinguishable to the machine.

    Answer

    state

  16. 16
    Because finite automata have limited memory, they must process incoming data while discarding some
    _____
    .
    Hint

    They cannot retain the entire input word when the input is arbitrarily large.

    Answer

    information

  17. 17
    A finite state automaton has only a finite number of possible internal memory
    _____
    .
    Hint

    These are the nodes shown in a state diagram.

    Answer

    states

  18. 18
    Finite state automata are intended to model systems in which the incoming data is much larger than the system's internal
    _____
    .
    Hint

    The machine cannot store the entire streaming data set.

    Answer

    memory

  19. 19
    Turing machines differ from finite state automata because their memory is modeled as effectively
    _____
    .
    Hint

    Their tape can provide as much memory as needed for the computation.

    Answer

    infinite

  20. 20
    A real computer with a fixed number of bits has 2n2^n2n possible memory states when it has nnn bits; therefore, despite its practical power, it is technically closer to a
    _____
    than to a Turing machine.
    Hint

    Its memory has a finite number of configurations.

    Answer

    finite state automaton

  21. 21
    A real computer may behave like a finite state automaton when it receives a data set large enough that it must begin
    _____
    information.
    Hint

    The machine cannot store the entire data set once its finite memory is overwhelmed.

    Answer

    tossing out

  22. 22
    The contrast between a Turing machine with unbounded tape and a finite state automaton with fixed memory illustrates a
    _____
    between the two models.
    Hint

    The two models represent opposite assumptions about available memory.

    Answer

    duality

  23. 23
    Finite state automata are especially useful abstractions for streaming systems that cannot store an entire incoming
    _____
    .
    Hint

    The system must decide which information to retain as data arrives.

    Answer

    data set

  24. 24
    The purpose of declaring variables in the program analogy is to define exactly how much
    _____
    the program will use.
    Hint

    Variable declarations establish the storage available to the computation.

    Answer

    memory

  25. 25
    In the program analogy, C integers have a finite range, so they can represent only a finite number of possible
    _____
    .
    Hint

    Consider the possible values of all declared variables together.

    Answer

    configurations

  26. 26
    In a state diagram, each state is represented as a
    _____
    and each input-dependent state change is represented as an arrow.
    Hint

    Think of the standard graphical representation of a directed graph.

    Answer

    node

  27. 27
    If an automaton is in state 1 and reads the character c, the arrow labeled c determines the state it will
    _____
    .
    Hint

    The transition specifies the machine's next state.

    Answer

    wind up in

  28. 28
    For a deterministic automaton, each state must have exactly one outgoing arrow for each possible input
    _____
    .
    Hint

    There cannot be two possible destinations for the same state-symbol pair.

    Answer

    character

  29. 29
    The property that an automaton has no uncertainty or randomness in its transitions is called
    _____
    .
    Hint

    This is the word represented by the D in DFA.

    Answer

    deterministic

  30. 30
    An arrow entering the start state from outside a state diagram indicates the automaton's
    _____
    state.
    Hint

    This is the state where processing begins after the machine is reset.

    Answer

    initial

  31. 31
    Before processing a new word, the automaton is reset completely to its
    _____
    state.
    Hint

    This ensures that the same input always receives the same answer.

    Answer

    initial

  32. 32
    A state drawn with a double circle is called an
    _____
    state.
    Hint

    The indicator light is on when the machine finishes in this type of state.

    Answer

    accept

  33. 33
    A word is accepted precisely when the automaton finishes reading it in one of its
    _____
    states.
    Hint

    These are represented by double circles in a diagram.

    Answer

    accept

  34. 34
    An automaton may have more than one accept state; the set of accept states can be any
    _____
    of the full state set.
    Hint

    It may contain zero, one, or several of the available states.

    Answer

    subset

  35. 35
    In the example automaton, reading the character b leaves the current state unchanged, so the machine does not track how many
    _____
    characters have been read.
    Hint

    This input acts as a self-loop in every relevant state.

    Answer

    b

  36. 36
    In the example automaton, reading the character a swaps states 0 and 1 while leaving state 2 unchanged; therefore, the machine tracks the
    _____
    of a characters.
    Hint

    The state alternates between two values each time an a is read.

    Answer

    parity

  37. 37
    The example automaton accepts words containing an
    _____
    number of a characters.
    Hint

    An odd number of a symbols leads to state 1, the accepting state.

    Answer

    odd

  38. 38
    The example automaton rejects any word containing the character
    _____
    because reading it leads to a trap state.
    Hint

    This symbol sends the machine to state 2, from which acceptance is impossible.

    Answer

    c

  39. 39
    State 2 in the example automaton is a
    _____
    state because once entered, the machine can never reach an accept state.
    Hint

    This state permanently prevents acceptance.

    Answer

    trap

  40. 40
    The word ba is accepted by the example automaton because it contains an odd number of a characters and no
    _____
    characters.
    Hint

    The forbidden input symbol sends the machine to the trap state.

    Answer

    c

  41. 41
    The word baa is rejected by the example automaton because it contains an
    _____
    number of a characters.
    Hint

    There are two occurrences of a.

    Answer

    even

  42. 42
    The word bacba is rejected because the c sends the automaton to state
    _____
    , from which it cannot reach the accept state.
    Hint

    This is the trap state in the three-state example.

    Answer

    2

  43. 43
    The example language consists exactly of strings over the alphabet {a, b, c} that contain an odd number of a symbols and
    _____
    c symbols.
    Hint

    Any c causes immediate rejection.

    Answer

    no

  44. 44
    A transition function, conventionally written using the lowercase Greek letter delta, takes the current state and the input
    _____
    as its two arguments.
    Hint

    This is the symbol currently being read from the input.

    Answer

    character

  45. 45
    If the transition function receives state 1 and input c in the example, its output is state
    _____
    .
    Hint

    Follow the c-labeled arrow leaving state 1.

    Answer

    2

  46. 46
    A complete transition function allows a finite automaton to be represented as a
    _____
    showing the next state for each current-state and input pair.
    Hint

    This representation lists inputs and their corresponding outputs in rows or columns.

    Answer

    table

  47. 47
    Instead of using one transition function with two inputs, one can define a separate function from the set of states to itself for each input
    _____
    .
    Hint

    For the example, there is one function for a, one for b, and one for c.

    Answer

    character

  48. 48
    In the example, the function associated with input a swaps states 0 and 1 while leaving state
    _____
    unchanged.
    Hint

    This state is the trap state for the character c.

    Answer

    2

  49. 49
    In the example, the function associated with input b is the
    _____
    function because it returns every state unchanged.
    Hint

    An identity function maps each element to itself.

    Answer

    identity

  50. 50
    In the example, the function associated with input c always outputs state
    _____
    .
    Hint

    This is the trap state reached whenever c is read.

    Answer

    2

  51. 51
    The graph perspective represents every accepted word as a path from the
    _____
    state to an accept state.
    Hint

    This is the state marked by an arrow entering from outside the diagram.

    Answer

    start

  52. 52
    A finite automaton is formally described by a tuple containing the alphabet, the set of states, the start state, the transition function, and the set of
    _____
    states.
    Hint

    These are the double-circled states that cause the machine to accept.

    Answer

    accept

  53. 53
    In the formal DFA tuple, the symbol sigma denotes the machine's
    _____
    .
    Hint

    For the example, it contains the symbols a, b, and c.

    Answer

    alphabet

  54. 54
    The set of states in a finite state automaton must be
    _____
    .
    Hint

    This property is essential to the machine model's limited memory.

    Answer

    finite

  55. 55
    For the example automaton, the alphabet is the finite set containing the symbols
    _____
    .
    Hint

    These are the three keys used as input in the example.

    Answer

    a, b, and c

  56. 56
    For the example automaton, the set of states is
    _____
    .
    Hint

    The diagram contains three numbered states.

    Answer

    0, 1, and 2

  57. 57
    The designated state where a DFA begins processing every word is called the
    _____
    state.
    Hint

    It is also described as the initial state.

    Answer

    start

  58. 58
    The set of accept states in a DFA can contain any
    _____
    of the set of all states.
    Hint

    It need not contain exactly one state.

    Answer

    subset

  59. 59
    The program analogy begins by declaring variables, then initializing them to the automaton's
    _____
    state.
    Hint

    The program must establish its initial memory configuration before reading input.

    Answer

    start

  60. 60
    The program's input-processing loop continues until it encounters EOF, meaning
    _____
    .
    Hint

    This marker indicates that no more input remains.

    Answer

    end of file

  61. 61
    During each iteration of the input loop, a finite-state program modifies its memory based on the current input
    _____
    .
    Hint

    This is the same role played by an input symbol in a DFA.

    Answer

    character

  62. 62
    The digit-counting program illustrates that fixed-size integer variables have only finitely many values, so sufficiently large counts can become
    _____
    .
    Hint

    The program cannot represent values beyond the bounded integer range.

    Answer

    inaccurate

  63. 63
    The C function mentioned as a way to request additional memory is called
    _____
    .
    Hint

    Its name abbreviates memory allocation.

    Answer

    malloc

  64. 64
    A useful diagnostic question for a computer program is whether it fundamentally looks like a
    _____
    .
    Hint

    Ask whether it has fixed memory, reads input sequentially, and updates that memory.

    Answer

    finite state automaton

  65. 65
    One perspective on finite automata views them as collections of functions from a finite set of states to
    _____
    .
    Hint

    Each input symbol induces a function whose domain and codomain are the state set.

    Answer

    itself

  66. 66
    Another perspective views finite automata as paths through a
    _____
    .
    Hint

    States are nodes and transitions are labeled arrows.

    Answer

    graph

  67. 67
    A third useful perspective views a finite automaton as a particular type of computer
    _____
    .
    Hint

    This viewpoint focuses on variables, input loops, and memory updates.

    Answer

    program

  68. 68
    In the graph perspective, an accepted word corresponds to a path from the start state to one of the
    _____
    states.
    Hint

    These are the states that make the indicator light turn on.

    Answer

    final

  69. 69
    The function perspective and the graph perspective are equivalent ways of describing the same
    _____
    automaton.
    Hint

    Both representations specify the same states and transitions.

    Answer

    finite state

  70. 70
    The ability to use several equivalent descriptions helps researchers analyze regular languages from different
    _____
    .
    Hint

    One can switch viewpoints when a property is difficult to see in the current representation.

    Answer

    perspectives

  71. 71
    The broader study of regular languages and finite automata can also provide information about the formulas that are true of particular
    _____
    .
    Hint

    This connects automata theory to model theory.

    Answer

    structures

1 of 71
Question 1 of 71

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent