1. Construct DFAs that recognize the following languages over the alphabet {a,b}: (a) {w; w contains...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Construct DFAs that recognize the following languages over the alphabet {a,b}: (a) {w; w contains exactly two b's, or an even number of a's} (b) {ww contains as substring ababb and/or bbb }. (c) {w w is any string except the two strings abba and aba} Draw the state diagram for all; add a formal description of the DFA for (b), and add a proof that your DFA recognizes exactly the specified language for (c)). To do this, you will need to prove that (1) your DFA accepts all strings in the language and (2) any string accepted is in the language. 2. Problem 1.16 (a) page 86 of the textbook Sipser - second edition (convert NFA to DFA). Please see the scan on Blackboard. Show intermediate steps, if any. 3. For each of the following give two strings that are members of the language, and two strings that are not members of the language. Assume the alphabet = = {0, 1}. 1. *00*12*. 2. (1 U10 U00)* 3. (111)*. 4. Give regular expressions generating the languages of Exercise 1. For (a), prove (by induction) that the language of your expression is equal to the language as described in (a). 5. Problem 1.21(a) page 86 of the textbook Sipser - second edition (convert DFA to regular expres- sion). Please see the scan on Blackboard. Show intermediate steps, if any. 6. Construct state diagrams of NFA's accepting languages specified by the following regular expres- sions: 1. (21)* U2* 2. (213)*2* 3. (12 U11)* (21 U 22)* 1. Construct DFAs that recognize the following languages over the alphabet {a,b}: (a) {w; w contains exactly two b's, or an even number of a's} (b) {ww contains as substring ababb and/or bbb }. (c) {w w is any string except the two strings abba and aba} Draw the state diagram for all; add a formal description of the DFA for (b), and add a proof that your DFA recognizes exactly the specified language for (c)). To do this, you will need to prove that (1) your DFA accepts all strings in the language and (2) any string accepted is in the language. 2. Problem 1.16 (a) page 86 of the textbook Sipser - second edition (convert NFA to DFA). Please see the scan on Blackboard. Show intermediate steps, if any. 3. For each of the following give two strings that are members of the language, and two strings that are not members of the language. Assume the alphabet = = {0, 1}. 1. *00*12*. 2. (1 U10 U00)* 3. (111)*. 4. Give regular expressions generating the languages of Exercise 1. For (a), prove (by induction) that the language of your expression is equal to the language as described in (a). 5. Problem 1.21(a) page 86 of the textbook Sipser - second edition (convert DFA to regular expres- sion). Please see the scan on Blackboard. Show intermediate steps, if any. 6. Construct state diagrams of NFA's accepting languages specified by the following regular expres- sions: 1. (21)* U2* 2. (213)*2* 3. (12 U11)* (21 U 22)*
Expert Answer:
Related Book For
Posted Date:
Students also viewed these algorithms questions
-
answer the question clearly You are building a flight-control system for which a convincing safety case must be made. Would you assign the tasks of safety requirements engineering, test case...
-
In this question assume that p and q are atomic formulae. (a) Compare and contrast path formulae and state formulae in temporal logic. [4 marks] (b) Describe and contrast the meanings of F(G p) and...
-
(You can use other websites for this question) The Chicago Bulls realize that they've sucked since the 90s because they have relied on one start player for too long (Jordan, Rose), and that Machine...
-
MSK Construction Company contracted to construct a factory building for $525,000. Construction started during 2019 and was completed in 2020. Information relating to the contract follows:...
-
Which of the following is the correct order of preparing the financial statements? A. Income statement, statement of cash flows, balance sheet, statement of owners equity B. Income statement,...
-
Using the alternative calculation formula verify analysis of variance table for the paper-strength in Example 4. Data From Example 4 EXAMPLE 4 Confidence intervals quantify the amount of difference...
-
Hodge Confections is known for its creamy milk chocolate fudge. Hodge sells its fudge to local retailers. A unit of fudge is a 10- pound batch. The standard quantities of ingredients for a batch...
-
The loading Code AS1170.1 requires that the reading room (without a bookstore) at the library be designed for a floor live load of Q = 2.5 kPa. If the spans between two steel beams are L = 12 m as...
-
6.2. Data has been collected from a chemical reactor. The inlet concentration was the only input variable that changed when the data was collected. The input and output data is given in Table Q6.2....
-
In the advertising and marketing in nonprofit organizations,what was the main message of Dan Pallottas in Teds talk? And what was his most convincing point? Why?
-
What does the term Best practice often refer to? A standardized set of deliverables, like plans, reports, and checklists. A set of Tools and techniques that a project manager should master. The...
-
Response on how you feel about this opinion, agree or disagree with supporting points The transactional leadership style focuses on process and control from a leader and is characterized by a strict...
-
Regardless of whether consumers are aware or not, many products in the United States are developed with products of genetic engineering. For example, 90% of soybeans and 88% of animal feed corn are...
-
This writer feels that you have made some great points in this discussion post! One point that stuck out to this writer is the importance of seeking professional help when a person is grieving and...
-
As we have discussed in class in-office, remote, and hybrid presence models are currently being evaluated by knowledge workers post COVID. Samsung company's outline a presence model justifying your...
-
A firm had beginning inventory of OR 15000, ending inventory of OR 20000 and cost of goods sold of OR 80000. What value is goods purchased? Select one: a. OR 75000 b. OR 85000 O C. OR 65000 O d. OR...
-
An interest bearing promissory note for 90 days at 5.6% p.a. has a face value of $120,000. If the note is discounted 20 days after the issue date at a rate of 6.8% p.a., calculate the amount of...
-
Use the construction in the proof of Theorem 1.47 to give the state diagrams of NFAs recognizing the concatenation of the languages described in a. Exercises 1.6g and 1.6i. b. Exercises 1.6b and...
-
Show how the circuit depicted in Figure 9.26 computes on input 0110 by showing the values computed by all of the gates, as we did in Figure 9.24. Figure 9.26 Figure 9.24 13 12 V
-
Let G be a CFG in Chomsky normal form that contains b variables. Show that if G generates some string with a derivation having at least 2b steps, L(G) is infinite.
-
The materials which exhibit the same elastic properties in all directions are known as: (a) Homogeneous (b) Isotropic (c) Isentropic (d) Inelastic
-
In a reaction steam turbine, steam expands: (a) In nozzle only (b) In moving blades only (c) Partly in nozzle partly in blades (d) None of the above
-
In impulse turbines, pressure on the two sides of the moving blades: (a) Increases (b) Decreases (c) Remains same (d) None of the above
Study smarter with the SolutionInn App