Question

a. Draw a DFA for the language of all strings over Σ = {?, ?} that...

a. Draw a DFA for the language of all strings over Σ = {?, ?} that do not have two consecutive ?’s.

b. Define the transition function, ?, for the DFA in the previous question.

Homework Answers

Answer #1

DFA: Deterministic Finite Automata

It is a tuple of 5 variables.

1.Set of states.

2.Set of Input symbols.

3.Transition function

4.Initial state

5.Final state/states.

DFA accpeted language L={e,a,b,ab,ba,aa,aab,aabab,......} (no consecutive b's).

This DFA does not accept any string that contains 2 consecutive b's.

Example: we see that

1. string1 'aabaabababa'

this string is accepted by the DFA.

2.string 2 'aaababababb'

This string does not accept by DFA it goes to Dead State D in the transition Diagram.

In the above Transition Function.

A is initial State and Final State too

B and C are also the Final States

D is dead State. If a string doesn't accept by the DFA it goes to dead state.

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
Design a DFA accepting the language of all strings over Σ = {0, 1} with the...
Design a DFA accepting the language of all strings over Σ = {0, 1} with the property that the number of 0s and the number of 1s in a string are both odd.
Let s and p be two particular strings over an alphabet Σ. Prove that the following...
Let s and p be two particular strings over an alphabet Σ. Prove that the following language M = {w ∈ Σ ∗ | w contains u as a substring but does not contain v as a substring} is regular. plz provide DFA and also simplified the DFA thx !
Show that language B = {〈A〉| A is a DFA and L(A) = Σ* } is...
Show that language B = {〈A〉| A is a DFA and L(A) = Σ* } is decidable.
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...
Write a formal grammar that generates all strings of odd length over Σ = {a, b}.
Write a formal grammar that generates all strings of odd length over Σ = {a, b}.
1. All questions assume the alphabet Σ = { a , b }. a) List the...
1. All questions assume the alphabet Σ = { a , b }. a) List the first 10 strings in canonical order of the language in question b above (even number of a's or odd number of b's, where the a's and b's can occur in any order). b) List the first 10 strings in canonical order of the language in question c above (ambn).
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
Prove the language of strings over {a, b} of the form (b^m)(a^n) , 0 ≤ m...
Prove the language of strings over {a, b} of the form (b^m)(a^n) , 0 ≤ m < n-2 isn’t regular. Use the pumping lemma for regular languages.
1. Draw a GTG (generalized transition graph) for the following right-linear regular grammar. S -> abA...
1. Draw a GTG (generalized transition graph) for the following right-linear regular grammar. S -> abA A -> baB B->aA | bb a)  Find a left-linear grammar for the language in the previous question.
Consider the language L3 over alphabet Σ = { a, b }, L3 = { w...
Consider the language L3 over alphabet Σ = { a, b }, L3 = { w ∈ Σ* | w is a palindrome of any length}. Construct a PDA that recognizes L3. Implement that PDA in JFLAP