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.
Draw a DFA (deterministic finite automaton) accept all and only strings in the language represented by...
Draw a DFA (deterministic finite automaton) accept all and only strings in the language represented by the ((aa ∪ bb)c)*
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...
For the language L over {a,b,c} defined by the regular expression (a+b)*(b+c)*(c+a)* a) Draw a DFA...
For the language L over {a,b,c} defined by the regular expression (a+b)*(b+c)*(c+a)* a) Draw a DFA that accepts L. b) Draw an εNFA that accepts L informally (without using Thompson's Construction Algorithm). Please show all steps and please explain it. Thank you
Construct a DFA for the set of strings over {0, 1} which do not contain 0110...
Construct a DFA for the set of strings over {0, 1} which do not contain 0110 as a substring.
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}.
Σ = { 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 u and v be two particular strings over an alphabet Σ. Prove that the following...
Let u and v be two particular strings over an alphabet Σ. Prove that the following language B = {w ∈ Σ ∗ | w contains u as a substring but does not contain v as a substring} is regular. As a hint, think of using operations under which regular languages are known to be closed to simplify your argument. plz provide with the full detail !
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT