AutomataSA2 - Sheet1 (1) Flashcards
______ is a set accepted by a finite automaton.
Regular set (language)
A set is closed under an operation if, wherever the operation is applied to members of the set, the result is also a member of the set
Closure
{ x | x ∊ A or x ∊ B}
Union
{xy | x ∊ A and y ∊ B}
Concatenation
{x1x2…xk | k >= 0 and each x1 ∊ A}
Star
The class of regular languages is c_________
closed under Union
The Operators of RE
The union of two languages L1 and L2 denoted L1 ∪ L2.
The concatenation of two languages L1 and L2, denoted L1L2.
The Kleene Closure or star of a language L denoted by L*
The Positive Closure of a language L denoted by L+
The set of those strings that can be formed by taking any number of strings from L, possibly with repetitions and concatenating all of them, including the null string
The Kleene Closure or star of a language L denoted by L*
The set of those strings that can be formed by taking any number of strings from L, possibly with repetitions and concatenating all of them, excluding the null string
The Positive Closure of a language L denoted by L+
several operations defines on languages:
L1 ∪ L2
L1 ∩ L2
L1L2
-L2
L1*
L1 - L2
L1^R
Union, Concatenation, Negation, Kleene Star, Reverse
The general approach is as follows:
Build automata (DFA or NFA) for each of the languages involved
Show how to combine the automata in order to form a new automaton which recognizes the desired language
Since the language is represented by NFA/DFA, shall conclude that the language is regular
If L1 and L2 are _____, then so is L1 U L2
regular languages
Create a new start state
Make a ε-transition from the new start state to each of the original start states
Union of L1 and L2
Put a ε-transition from each final state of L1 to the initial state of L2
Make the original final states of L1 nonfinal
Concatenation of L1 and L2
Start with a complete Dfa, not with an NFA
Make every final state nonfinal and every nonfinal state final.
Negation of L1
Make a new start state; connect it to the original start state with a λ-transition
Make a new final state; connect the original final state (which become nonfinal) to it with λ-transitions
Connect the new start state and new final state with a pair of λ-transition
Kleen Star of L1
Start with an automaton with just one final state
Make the initial state final and final state initial
Reverse the direction of every arc
Reverse of L1
The same construction is used for both intersection and set difference. The distinction is in how the final states are selected
Reverse of L1
If L and M are regular languages, then so is L ∩ M
Intersection
Let A and B be DFA’s whose language are L and M, respectively
Construct C, the product automaton of A and B
Make the final states of C be the pairs consisting of final states of both A and B
Make a state (A, B) as final if both
i) A is a final state in L1 and ii) B is a final state in L2
Intersection
Finite automata are like computers in that they receive input and process the input by changing states.
Automaton with Output
_______ are like computers in that they receive input and process the input by changing states.
Finite automata
Two models of finite automata that produce more output than a yes/no.
Moore Machine
Mealy Machine
______ are finite state machines with output value and its output depends only on present state.
Moore Machines
This machine might be considered as a “counting” machine
Moore Machines
It can be defined as a six-tuple
M = (Q, q0, Σ, O, ઠ, λ)
Moore Machine
Mealy Machine
Basically a _____ is just a FA with two extras.
Moore machine
It has TWO alphabets, an input and output alphabet
It has an output symbol associated with each state. The Machine writes the appropriate output symbol as it enters each state
Moore machine
The length of output for a ____ is greater than input by 1
Moore machine
________ are also finite state machines with output value and its output depends only on present state and current input symbol.
Mealy Machines
This machine might be considered as an “output” producer
Mealy Machines
_______ are exactly as powerful as ______ (can implement any _____ using a _____, and vice versa)
Mealy, Moore, Mealy, Moore
_______ move the output function from the state to the transition.
Mealy machines
_______ move the output function from the state to the transition.
This turns out to be easier to deal with in practice, making Mealy machines more practical
Mealy machines
There are no accept states in a _____ because it is not a language recogniser, it is an output producer
Mealy machine
The length of output for a _____ is equal to the length of the input
Mealy machine
Output depends both upon the present state and the present input
Mealy machine
Output depends only upon the present state
Moore Machine
Generally, it has fewer states that Moore Machine
Mealy Machine
Generally, it has more states than Mealy Machine
Moore Machine
The value of the output of the transitions and the changes, when the input logic on the present state is done
Mealy Machine
The value of the output function is a function of the current state and the changes at the clock edges, whenever state changes occur
Moore Machine
Mealy machines react faster to inputs. They generally react in the same clock cycle
Mealy Machine
In Moore machines, more logic is required to decode the outputs resulting in more circuit delays. They generally react one clock cycle later
Moore Machine