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

  Provide dfa-s accepting the languages over alphabet

Provide DFA's accepting the following languages over alphabet {0,1}. Set of all strings that, when interpreted as the binary integer, is a multiple of 5.

  A new manager is starting in the organisation shortly you

a new manager is starting in the organisation shortly. you have been asked to provide an outline to this new-starter so

  Implement finite state machine to recognze input string

Write implememnt finite state machine which recognzes input string according to following rules. First character should be either letter(upper or lower case.)

  Write a java program which will allow a s-grammar

COMP314 - Operating Systems - Athabasca University - Write a Java program which will allow a s-grammar (see slide 15 of the CFL slide set) G = (V,T,S,P)

  Succession planning is an important od intervention and

succession planning is an important od intervention and business sector succession planning-sometimes called workforce

  Students will conduct primary as available and secondary

students will conduct primary as available and secondary research present opinions while they compare and contrast

  Turing original definition-what we now call turing machine

Look up Turing's original definition of what we now call a Turing machine. What was his motivation for defining these machines?

  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.

  Define a linear-bounded automaton

Explain how linearbounded automata are used to recognize sets. Which sets are recognized by linear-bounded automata?

  Show that the grammar is unambiguous

What does it compute? Prove it, showing how you derive the loop invariant - Show that the grammar is unambiguous

  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 would an attacker break a caesar-style cipher

Julius Caesar used one of the earliest known cipher systems to communicate with Cicero in Rome while he was conquering Europe. Caesar knew that there was.

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