Question

1. Define a deterministic finite automaton over the alphabet {a, b} which accepts the set of...

1. Define a deterministic finite automaton over the alphabet {a, b} which accepts the set of all strings that end with the substring ab or ba.

Homework Answers

Answer #1

A DFA or Deterministic Finite Automaton is such that for an input symbol , there is a single resultant state or say there is only transition possible.

The above mentioned question is solved in below images.

Here qo is the initial state . set of input elements is {a,b} .

Set of Final states is {q2,q4} .

Set of all possible states are {q0, q1,q2,q3,q4}.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA...
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA which accepts strings of odd length Design a DFA over w ∈ {a,b}*such that number of a = 2 and there is no restriction over length of b DFA for Number of a(w) mod 2 = 0 and Number of b(w) mod 2 = 0 DFA for Number of a(w) mod 2 = 0 orNumber of b(w) mod 2 = 0 DFA for Number...
1.2 Which of the following statements is wrong?        a). A set is a subset of itself...
1.2 Which of the following statements is wrong?        a). A set is a subset of itself        b). Emptyset is a subset of any set        c). A set is a subset of its powerset        d). The cardinality of emptyset is 0 1.3. Which of the following statements is correct?        a). A string is a set of symbols from an alphabet        b). The length of the concatenation of two strings can           be the same as one of them        c). The length of...
Design deterministic finite automata for each of the following sets: 1) The set of strings x...
Design deterministic finite automata for each of the following sets: 1) The set of strings x ε {0, 1}* such that #0(x) is even and #1(x) is a multiple of three. 2) The set of all strings in {1, 2, 3}* containing 231 as substring. 3) The set of strings in (a)* whose length is divisible by either 2 or 7.
Draw a deterministic finite state machine for the input alphabet A where A = {1, 2,...
Draw a deterministic finite state machine for the input alphabet A where A = {1, 2, 3, 4, 5} that recognises exactly all strings that include the 2 letter string 42 exactly once. For example, the machine will accept the string 54214 but reject the strings 432 and 421421.
Find a regular expression to describe: The set of all strings over the alphabet {a, b,...
Find a regular expression to describe: The set of all strings over the alphabet {a, b, c, d} that contain exactly one a and exactly one b So, for example, the following strings are in this language: ab, ba, cccbad, acbd, cabddddd, ddbdddacccc and the following strings are NOT in this language: a, ccbc, acbcaaacba, acacac, bcbbbbbca, aca, c, d, b
Which one of the following languages over the alphabet {0,1} is described by the regular expression...
Which one of the following languages over the alphabet {0,1} is described by the regular expression (0+1)* 0 (0+1)* 0 (0+1)* ? a.The set of all strings that begin and end with either 0 or 1 b.The set of all strings containing at most two zeros c.The set of all strings containing at least two zeros. d.The set of all strings containing the substring 00
Σ = { a, b, c } Create deterministic finite automata with the language of all...
Σ = { a, b, c } Create deterministic finite automata with the language of all strings that … end with 'abc'
Let F be the set of all finite languages over alphabet {0, 1}. Show that F...
Let F be the set of all finite languages over alphabet {0, 1}. Show that F is countable
Construct a non-deterministic finite state automaton (show the answer in a state machine diagram), where V...
Construct a non-deterministic finite state automaton (show the answer in a state machine diagram), where V = { S, A, B, 0, 1, λ}, T = { 0, 1 }, and G = ( V, T, S, P }, when the set of productions consists of: S → 1A, A → 0B, A → 1, B → 0. S → 0A, S → 1B, S → λ, A → 1A, A → 0, B → 0B, B → 1. S...
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA...
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA in which start and end symbol must be different Design a DFA in which start and end symbol must be same DFA in which every 'a' should be followed by 'b' DFA in which every 'a' should never followed by 'b' DFA in which every 'a' should followed by 'bb' DFA in which every 'a' should never followed by 'bb' DFA for anbm| n,m...