Find nfa that accepts language to regular expression

Assignment Help Theory of Computation
Reference no: EM131212476

Theory of Computation Assignment

1. Find regular expressions for the following languages:

a. L = {an bm : n ≥ 3, m is odd}

b. L = {an bm : n + m is odd}

c. L = {w € {a, b}* : |w| mod 3 ≠ 0}

2. Let r1 and r2 denote regular expressions. Which of the following statements are true?

a. (r1*)* ≡ r1*

b. (r1*)( r1 + r2)* ≡ (r1 + r2)* 

c. ( r1 + r2)* ≡ (r1* r2*)*

d. (r1 r2)* ≡ (r1* r2*)

3. Find NFA (with λ-transitions) that accepts the language corresponding to the regular expression ab*aa + bba*ab.

4. Find NFA (with λ-transitions) that accepts the language corresponding to the regular expression (a + b)* b (a + bb)*.

5. Recall that a "left-linear grammar" is a grammar in which all non-terminals (i.e. variables) are on the left end of the right side of production rules, while a "right-linear grammar" is a grammar in which all non-terminals (i.e. variables) are on the right end of the right side of production rules.

a. Find a left-linear grammar that generates L = {an bm : n ≥ 3, m ≥ 2}

b. Find a right-linear grammar that generates L = {an bm : n ≥ 3, m ≥ 2}

6. Recall that a "(right) regular grammar" is a right-linear grammar in which production rules belong to these three formats: A → λ (empty string); A → a (terminal alphabet symbol); A → aB (terminal followed by non-terminal). Find a regular grammar that generates all strings over {a, b} * with no more than two a's.

Reference no: EM131212476

Questions Cloud

Sum up the responsibility of hr management : The textbook identified several issues that arise in the field of human resource (HR) management. Sum up the responsibility of HR management to address and solve these problems.
What is the total wtp for 3 tons of cleanup : If cleaning up 2 tons were to cost $12, is the WTP in this small community sufficient to finance it? What are the two potential reasons a voluntary cleanup might nevertheless fail?
International strategy at the crossroads : Case Study - ABLE TRANSLATIONS: INTERNATIONAL STRATEGY AT THE CROSSROADS - The paper is well organized and the flow is easy to follow. Major points have been explained in sufficient depth to be understood. The paper has been checked for spelling an..
Anticipate in the hospitality industry : Looking beyond technology, discuss the differences you anticipate in the hospitality industry over the next 20 years. Now look forward to the next 50 years. How will things have changed by then?
Find nfa that accepts language to regular expression : Find a left-linear grammar that generates L = {an bm : n ≥ 3, m ≥ 2}. Find NFA (with λ-transitions) that accepts the language corresponding to the regular expression ab*aa + bba*ab.
Whether the government should use a tariff or a quota : You are employed in the Ministry of the Economy and have been asked to provide a briefing on whether the government should use a tariff or a quota. - What will you say in your presentation?
Present one of these papers during class : Complete two short papers and present one of these papers during class (schedule TBA). Your papers should synthesize an article taken from the business press (see possible choices below) that is related to the paper topic and answer one of the pro..
Wage gap between men and women runs deep-persists : Notwithstanding the advancement of women in the professions (law and medicine, in particular), the wage gap between men and women runs deep and persists. Are the societal expectations of earning power between men and women so ingrained that even ..
Graph the marginal costs and marginal benefits of cleanup : Fill in the marginal columns, and identify the efficient cleanup level. At the efficient cleanup level, what are the net benefits to the family? What are the net benefits to the family if the floor is completely clean?

Reviews

Write a Review

Theory of Computation Questions & Answers

  Complete an essay discussing ethical theories

BIT203 Professional Practice and Ethics - During week 6 you will be required to give a brief 5-8 minute presentation to the class explaining either the analysis and conclusion of your essay topic or a detailed description of some aspect of the ass..

  What ambiguity exists in the statement

Suppose f is a function that returns the result of reversing the string of symbols given as its input, and g. What ambiguity exists in the statement x?

  How to express correctness properties in ltl

Express the given correctness properties in LTL. Defne propositions/variables to model the events mentioned in the question. If a parent process calls the blocking waitpid() system call then it is blocked until child process terminates.

  1 discuss which university has the more effective strategyi

1. discuss which university has the more effective strategy?i. provide example of effective hr planning.ii. what are

  A music store owner wants to have enough

A music store owner wants to have enough of the hottest CDs in stock so people who come to buy a particular CD won't be disappointed - and the store won't lose the profit. CDs that are not sold within a certain length of time go onto the sale tabl..

  Give the transitions for a turing machine

Give the transitions for a turing machine that accepts the language given below.L = {AnBnCn : n>=1}

  Design jflap truing machine takes input a tape

Design in JFLAP a Truing machine that takes as input a tape containing a series of n 1s, Where n >= 0, terminated by an = sign.

  Write grammar for language consisting of strings

Write a grammar for the language consisting of strings that have n copies of the letter a followed by same number of copies of the letter b, where n>0

  You have to design a syntactic analyzer for the language

you have to design a syntactic analyzer for the language specified by the grammar below. we are using the following

  Write the predicate logic

Write the predicate singleChild(Name) which finds the name of single children - For this problem single children means no other child has the same father and mother.

  Create a program that reads integers

Create a program that reads integers in range 0 .. 9999. The event stops reading if -99 is entered. Your event should use Stack to store those numbers then it used Priority Queue to print out those numbers in ascending order.

  Convert this english statement into logic statement

Translate the subsequent English statement in terms of L(x; y), P(x; y), quantiers and logical connectives.

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