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

  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