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

  Write grammar for language comprising of strings

Write down the grammar for language comprising of strings which have n copies of letter a followed by same number of copies of letter b, where n > 0.

  Formulate the corresponding coffee-machine decision problem

meeting rooms on university campuses may or may not contain coffee machines. we would like to ensure that every meeting

  What activities can a leader use to help get the team to

what activities can a leader use to help get the team to buy-in to the vision so that it becomes a shared

  Question 1show via chains of equivalences that the

question 1show via chains of equivalences that the following propositions are tautologies.a p and q rarr p harr qb p or

  In an internet retailer you will find a wide range of job

in an internet retailer you will find a wide range of job functions. leaders frequently need to adjust their own

  Write down a 2 page research paper excluding the title page

write a 2 page research paper excluding the title page on the turing and von neumann models. compare and contrast each

  Millenium development goal

Millenium Development Goal has proved to be one of the most ambitious and difficult and global education starts with, well, education-informing and inciting into action those who are more capable of bringing about change.

  The internet has created new ways to do business for

the internet has created new ways to do business for organizations with much less capital planning as opposed to the

  Determine if system in a safe state-share nine tape drives

There are four processes that are going to share nine tape drives. Their current and maximum number of allocation numbers. Is system in a safe state? Explain why or why not?

  Write a research paper - utilize the lirn library

Utilize the LIRN Library to help you search for resources. You can visit the Academic Resource Center for a guide on how to utilize the LIRN Library successfully.

  Conflict between the team membersrod edwards the

conflict between the team membersrod edwards the advertising manager for waterlite advertising and associates has two

  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.)

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