Give context-free grammars that generate languages

Assignment Help Theory of Computation
Reference no: EM13684091

1. Give context-free grammars that generate the following languages. In all parts, the alphabet Σ = {0,1}.

(a) (0i1j| i, j ≥ 0 and i ≤ j + 3}
(b) The empty set
(c) {0i1j| i, j 0 and i ≠ j}
(d) {0i1j| i,j 0 and 2i ≤ j ≤ 3i }

2. Transform the following grammar into Chomsky normal form Note: Show all the steps.

S → AbB|A
A → aBA | B
B → bAb | ε

Remark: Even though submitting 5 rejected and 5 accepted strings is not required, it is highly recommended. Think of the process as unit/conformance testing of your design/between your designs

3. Submit a JFLAP file of your CFG and a print out on your answers showing 2 different parse trees)

Use JFLAP to show that the following grammar is ambiguous.

S → aSbS | bSaS | ε

4. Use the procedure developed in Lemma 2.21 to convert the following CFG to its corresponding PDA

    S → aSb | bSa | a | b

5. Give the state diagram of pushdown automaton for the following languages.

(a) (ω  ∈ {a, b}" | na(ω) = nb(ω)}

where nx(ω) is the number of occurrences of x in ω

(b) { ai bjck | i, j, k ≥ 0 and i + j = k}

Reference no: EM13684091

Questions Cloud

Measure the effect of exchange rate variation : Measure the effect of exchange rate variation on financial management and prepare a report on the management of risk in an international environment.
Find what maximum energy is stored in the inductor : A 57 meter length of insulated copper wire is wound to form a solenoid of radius 2.3 centimeter. Find what maximum energy is stored in the inductor
Obtain the electric field between its plates : A 12 Volt battery remains connected to a parallel plate capacitor with a plate area of 0.294 m2 and a plate separation of 5.24 millimeter. Obtain the electric field between its plates
Determine how massive a person would make the ladder slip : A uniform 5 kilogram ladder is leaning against a frictionless vertical wall, with which it makes a 15 degree angle. how massive a person would make the ladder slip
Give context-free grammars that generate languages : Give context-free grammars that generate the following languages - Transform the following grammar into Chomsky normal form
Evaluate the angular speed after the catch slips : In preparation for building a space station, an astronaut removes a self-telescoping uniform rod from the cargo bay and releases it, not noticing that he gave it an angular speed of 0.0500 rad/s. Evaluate the angular speed after the catch slips
Find their relative speed : A student notes that the length of a 12-inch long ruler held by her teacher (who is moving relative to her) is the same as that of her meter stick (when oriented parallel to his ruler). Find their relative speed
Determine the adjustment for the month ended : Determine the adjustment for the month ended January 31, 2011
Evaluate how much energy is stored in the capacitor : A 12 Volt battery remains connected to a parallel plate capacitor with a plate area of 0.294 m2 and a plate separation of 5.24 millimeter. Determine how much energy is stored in the capacitor

Reviews

Write a Review

Theory of Computation Questions & Answers

  Create a recursive java method maximum

Create a recursive java method maximum that calculate the maximum element of a linked list of integers.The solution must be simplified and should not use class Node or head

  Essay is about qantas emirates alliance focus on change

essay is about qantas emirates alliance. focus on change took place in qantas airline due to this alliancepart 11.

  Purchasing and accounts payablesaul and latisha are both

purchasing and accounts payablesaul and latisha are both administrative managers in a machine tool company. latisha is

  Argue that the problem is np complete

Argue that the following prob is NP Complete. Given list of positive integers, u1,u2,...un (in binary representation) and asked if there is partition of this set into 3 subsets, each of which has same sum.

  Farmers friend for their customer support systems

Create the two main documents that model the current processes at Farmers Friend for their Customer Support Systems (CSS).

  Te speed team at ibmsteve ward the vice president of

the speed team at ibmsteve ward the vice president of business transformation and chief information officer at ibm was

  Use undecidability of allcfg to show problem is undecidable

Use undecidability of ALLCFG to illustrate that following problem is also undecidable: Given PDA M1 and FA M2, is L(M1) = L(M2)?

  Write algorithm for finding useless-productive nonterminals

Write down the algorithm for finding useless/productive nonterminals. Describe how this gives you the algorithm for whether language generated by grammar is empty.

  Discuss the pros and cons of executive compensation is

discuss the pros and cons of executive compensation. is executive compensation to u.s. ceos too excessive or

  Write a job description for each member of a three-person

write a job description for each member of a three-person virtual team tasked to improve company morale the virtual

  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

  Write a research paper excluding the title page on logical

write a research paper excluding the title page on logical circular and arithmetic shift operations. use an example not

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