Question

Question 1: Every language is regular T/F Question 2: There exists a DFA that has only...

Question 1: Every language is regular

T/F

Question 2: There exists a DFA that has only one final state

T/F

Question 3: Let M be a DFA, and define flip(M) as the DFA which is identical to M except you flip that final state. Then for every M, the language L(M)^c (complement) = L( flip (M)).

T/F

Question 4: Let G be a right linear grammar, and reverse(G)=reverse of G, i.e. if G has a rule A -> w B fir variables A,B and strings w, then reverse(G) has a rule A -> B w^R

There exists a right linear grammar G such that L(G) = L(reverse(G))

T/F

Question 5:

Let RL be the set of two regular languages. To prove RL is closed under intersection, it is equivalent to prove that “There exists two regular languages L1L2 such that L1 intersect L2 is also regular.”

T/F

Question 6: You can assume that L={a^n b^n : n >=0} is not regular.

For every regular language L', L union L' is not regular.

T/F

Question 7: Any NFA can be turned into an equivalent NFA that has two final states.

T/F

Question 8: A DFA M accepts string w if there exists an accepting path from the initial state to a final state when talking the input W.

T/F

Question 9: The language L = {(ab)^n : n >= 0} is equal to the language L' = {a^n b^n: n >=0}.

T/F

Question 10: You can assume that the set of regular languages is closed under homomorphism, i.e. every homomorphic mapping. Suppose you have a homomorphic mapping h, and h(L) is regular. We can conclude that L is regular.

T/F

Question 11: Any regular grammar G can be turned into a DFA M such that L(G) = L(M)

T/F

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer 1 :True, simply because every language accepted by an NFA is regular, and every regular language is context-free.

Answer 2: True,there exists DFA with 1 final state. Some but not all DFA's require more than 1 final states, so by restricting DFA with only one final state which may require more than one final state will not accept the language it should accept. So DFA with one final state is less powerful than DFA with more than one final state.

Answer 3:True

Answer 4:False

Answer 5: True

Answer 6:True, if L is Non regular then for any regular language L' , L union L' is not regular .

Answer 7:False

Answer 8:True
Answer 9:True

Answer 10:True:using algorithm ,if you have a homomorphic mapping h, and h(L) is regular therefore l is regular

Answer 11: True: Using the algorithm, any DFA may be converted to a regular grammar

Add a comment
Know the answer?
Add Answer to:
Question 1: Every language is regular T/F Question 2: There exists a DFA that has only...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Question 9 10 pts Select all the statements below which are true: Every dfa is also...

    Question 9 10 pts Select all the statements below which are true: Every dfa is also an nfa. A maximum of 1 final state is allowed for a dfa. Alanguage that is accepted by a dfa is a regular language. Each dfa must have a trap state 0 Let M be an nfa, and let w be an input string. If Mends in a non-final state after reading w, then wis rejected. Let = {a,b,c,d}and M be an nfa with...

  • 1(a)Draw the state diagram for a DFA for accepting the following language over alphabet {0,1}: {w...

    1(a)Draw the state diagram for a DFA for accepting the following language over alphabet {0,1}: {w | the length of w is at least 2 and has the same symbol in its 2nd and last positions} (b)Draw the state diagram for an NFA for accepting the following language over alphabet {0,1} (Use as few states as possible): {w | w is of the form 1*(01 ∪ 10*)*} (c)If A is a language with alphabet Σ, the complement of A is...

  • 5. (20 pt.) Prove that the class of regular languages is closed under reverse. That is,...

    5. (20 pt.) Prove that the class of regular languages is closed under reverse. That is, show that if A is a regular language, then AR = {wR W E A} is also regular. Hint: given a DFA M = (Q,2,8,90, F) that recognizes A, construct a new NFA N = (Q', 2,8', qo',F') that recognizes AR and justify why your construction is correct.

  • THEOREM 3.1 Let r be a regular expression. Then there exists some nondeteministic finite accepter that...

    THEOREM 3.1 Let r be a regular expression. Then there exists some nondeteministic finite accepter that accepts L (r) Consequently, L () is a regular language. Proof: We begin with automata that accept the languages for the simple regular expressions ø, 2, and a E . These are shown in Figure 3.1(a), (b), and (c), respectively. Assume now that we have automata M (r) and M (r) that accept languages denoted by regular expressions ri and r respectively. We need...

  • Problem 2 (1) Find a DFA for the language L = {a"V" : n + m...

    Problem 2 (1) Find a DFA for the language L = {a"V" : n + m is odd). (2) Then find a regular grammar for the language L

  • 6.[15 points] Recall the pumping lemma for regular languages: Theorem: For every regular language L, there...

    6.[15 points] Recall the pumping lemma for regular languages: Theorem: For every regular language L, there exists a pumping length p such that, if s€Lwith s 2 p, then we can write s xyz with (i) xy'z E L for each i 2 0, (ii) ly > 0, and (iii) kyl Sp. Prove that A ={a3"b"c?" | n 2 0 } is not a regular language. S= 6.[15 points] Recall the pumping lemma for regular languages: Theorem: For every regular...

  • Question 8, please. 2. Prove: (a) the set of even numbers is countable. (b i=1 3....

    Question 8, please. 2. Prove: (a) the set of even numbers is countable. (b i=1 3. The binary relation on pair integers - given by (a,b) - (c,d) iff a.d=cbis an equivalence relation. 4. Given a graph G = (V, E) and two vertices s,t EV, give the algorithm from class to determine a path from s to t in G if it exists. 5. (a) Draw a DFA for the language: ( w w has 010 as a substring)....

  • Question 1. Let Σ = {a, b}, and consider the language L = {w ∈ Σ...

    Question 1. Let Σ = {a, b}, and consider the language L = {w ∈ Σ ∗ : w contains at least one b and an even number of a’s}. Draw a graph representing a DFA (not NFA) that accepts this language. Question 2. Let L be the language given below. L = {a n b 2n : n ≥ 0} = {λ, abb, aabbbb, aaabbbbbb, . . .} Find production rules for a grammar that generates L.

  • 1. (1 point) Which of the following is true? A. Every regular language is a context-free...

    1. (1 point) Which of the following is true? A. Every regular language is a context-free language. B. Every context-free language is a regular language. C. If a language is context-free, then there exists a pushdown automata to recognize it. D. The set of context free languages is strictly larger than the set of regular languages. E. Each of A,C, and D is true. 2. (1 point) The following diagram shows a context free grammar with start variable S and...

  • 1. (1 point) Which of the following is true? A. Every regular language is a context-free...

    1. (1 point) Which of the following is true? A. Every regular language is a context-free language. B. Every context-free language is a regular language. C. If a language is context-free, then there exists a pushdown automata to recognize it. D. The set of context free languages is strictly larger than the set of regular languages. E. Each of A,C, and D is true. 2. (1 point) The following diagram shows a context free grammar with start variable S and...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT