CS 317 Automata and Formal Languages Assignment

Assignment Help Theory of Computation
Reference no: EM132636837

CS 317 Automata and Formal Languages - Washington State University

Pay attention to writing all the steps of a proof.

Question 1. For Σ = {a, b}, construct two NFAs, one accepting the language A and one

accepting the language B. (Notes, since every DFA is also an NFA, you can make a DFA if you want.)

a. A = {w | w is in Σ* and w has an odd number of a's}

b. B = {w | w is in Σ* and w ends in ab}

c. Construct an NFA (use ε) for the language L = {w | w is in A or w is in B}

Question 2. Give state diagrams for NFAs that have the specified number of states and recognize the following languages where Σ = {1, 0}.

a. L = {w | w is in Σ* and w contains the substring 0101 so w = x0101y for some x, y} using only 5 states

b. L = {w | w is in Σ* and w contains an even number of 0's or contains exactly two 1's} using only 6 states

Question 3. Use the construction given in Theorem 1.39 to convert the following two nondeterministic finite automata to equivalent deterministic finite automata. The start state is q1.

2374_figure.jpg

Question 4. For each of the DFAs M1 and M2 pictured below, using the construction given in Theorem 1.49 on page 62, make two new NFAs that accept the languages A* and B* where A = L(M1) and B = L(M2).

583_figure1.jpg

Question 5. Give regular expressions (using Σ = {a, b}, ε, Φ and the operators U, °, *) for the following subsets of {a, b}*.

a. A = {w | w begins with bb and ends with aa}

b. B = {w | w has an odd number of b's}

c. C = {w | w has an even number of a's and an even number of b's}

d. D = {w | w contains at least two a's and at most one b}

Question 6. Use the procedure described in Lemma 1.55 (If a language is described by a regular expression, then it is regular.) to construct NFAs that accept the sets of strings matching the following regular expressions. Σ = {0, 1}.

a. (000 U 11*)*

b. (000)*1 U (00)*1

Question 7. For Σ = {a, b}, construct NFAs that accept the set of strings matching the following regular expressions. You do not need to use the method in Lemma 1.55.

a. a(abb)* U a+(ε U b)

b. (ab)* U (a U b(ab*a)*b)*

Question 8. Give the regular expression for the FA {{q1, q2}, S = {a, b}, d, q1, {q1}}.

 

a

b

q1 F

q1

q2

q2

q1

q2

Question 9. Give a regular expression for the FA {{q1, q2, q3, q4}, S = {a, b}, d, q1, {q3}}.

d

a

b

q1

q2

q4

q2

q3

q2

q3 F

q4

q3

q4

q4

q4

Question 10. Give a regular expression for the FA {{q1, q2, q3}, S = {a, b}, d, q1, {q2, q3}}.

d

a

b

q1

q2

q3

q2 F

q1

q2

q3 F

q1

q3

Reference no: EM132636837

Questions Cloud

What is corporate governance : How do corporations go public and continue to grow? What are agency problems? What is corporate governance? What should be the primary objective of managers?
Compute and interpret altman z-scores for the company : Compute and interpret Altman Z-scores for the company for both years. (Do not round until your final answer; then round your answers to two decimal places.)
Show the effect of each transaction for cullumber company : Cullumber Company, Issued common stock to investors for $136,140 cash. Show the effect of each transaction on the accounting equation.
How do show effect of transaction on accounting equation : During 2022, Cullumber Company entered into the transaction. Using the tabular analysis, show the effect of each transaction on the accounting equation.
CS 317 Automata and Formal Languages Assignment : CS 317 Automata and Formal Languages Assignment Help and Solution, Washington State University - Assessment Writing Service
Show effect of each transaction on the accounting equation : Show the effect of each transaction on the accounting equation. Received $14,000 cash from a previously billed customer for services performed.
The cybersecurity analyst toolbox : During job interviews, employers often ask if you are familiar with cybersecurity software. Describe the process to install, set up,
What is the profit margin for the store : In response to complaints about high prices, a grocery chain runs, What is the profit margin for the store? (in %) (round 2 decimal places)
Four merchant levels of pci-dss compliance : What are the four merchant levels of PCI-DSS compliance? Outline the six control categories of PCI-DSS.

Reviews

Write a Review

Theory of Computation Questions & Answers

  Finite-state machine design

Create a finite-state machine design to turn your FPGA development board into a simple programmable music box.

  Redundant sequence identi cation

Redundant sequence identi cation

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  Propositional and predicate logic

Write down a structural induction principle for the PlayTree free type

  Design a syntactic analyzer

Design a syntactic analyzer for the language specified by the grammar

  Design unambiguous grammar to parse expressions

Write a program would read two numbers and then print all numbers between the first and the second, inclusive. Design unambiguous grammar to parse expressions

  Consider a logic function with three outputs

Consider a logic function with three outputs,  A ,  B , and  C , and three inputs,  D ,  E , and  F . The function is defined as follows:  A  is true if at least one input is true,  B  is true

  Considering a single programmed operating system

Considering a single programmed operating system, what is the minimal total time required to complete executions of the two processes? You should explain your answer with a diagram.

  How to construct an nfa

Give a construction that assumes you are given a DFA for L and show how to construct an NFA (with or without ε-moves) to recognize sort(L).

  Equivalence classes to construct minimal dfa for language

How many equivalence classes does this relation have and what are they? Use these equivalence classes to construct the minimal DFA for the language.

  Impact of moore-s law on data center costs

Discuss the impact of Moore's law on data center costs on such things as servers and communications equipment. List at least 3 steps or recommendations your data center can take to offset some or all of the effect of Moore's law.

  Problem encountered in statements in predicate logic

How the problem would be encountered in attempting to represent the following statements in Predicate logic. it should be possible to: John only likes to see French movies.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd