Find context-free grammars generating

Assignment Help Theory of Computation
Reference no: EM132500501

Question 1. Find context-free grammars generating the following languages, and justify that they generate them:

(a) L1 = {aibjck | i = j or j = k}.

(b) L2 = {aibjck | i ≠ j + k }

Question 2. Prove that the CFG G with productions S → 0S1S | 1S0S | Λ generates the language L = {x ∈ {0, 1}∗ | n0(x) = n1(x)}.

Question 3. Show that if L is accepted by a PDA in which no move replaces the top stack symbol with Λ, then L is regular.

Question 4. Suppose that M is a PDA accepting L. Describe how to construct a PDA accepting the language L∗ and justify that it does accept L∗. (Remember that the stack may become empty when M accepts a string!)

Question 5. Show that if there is a PDA M = (Q, Σ, Γ, q0, Z0, A, δ) accepting language L by empty stack (i.e. x ∈ L if and only if (q0, x, Z0) €∗M (q, Λ, Λ) for some state q ∈ Q), then there is a PDA M1 = (Q1, Σ, Γ1, q1, Z1, A1, δ1) accepting L by final state (i.e. x ∈ L if and only if (q1, x, Z1) €∗M1 (q, Λ, α) for some α ∈ Γ∗1 and q ∈ A1).

Attachment:- Homework Assignment.rar

Reference no: EM132500501

Questions Cloud

Find what was the cost of goods sold for september : Find What was the cost of goods sold for September. In September, Lauren Ashley Company purchased materials costing $240,000 and incurred direct
Identify the fixed and step and variable costs : What is the cost incurred by the campus for 150 people over a 1-week period? Desert Vista Homeless Campus provides shelter and breakfast to individuals.
Compare the competitive outcome with the cartel outcome : Compare the competitive outcome with the cartel outcome. What is the individual firm's incentive to cheat on the cartel? (show the procedure you reach your conc
BUS5WB - Data Warehousing and Big Data Assignment : BUS5WB - Data Warehousing and Big Data Assignment Help and Solution - La Trobe University Australia. Title- Smart City Design - Data Warehousing and 5G Networks
Find context-free grammars generating : Find context-free grammars generating the following languages, and justify that they generate and Describe how to construct a PDA accepting the language L
What are the variable costs and contribution margin : What are the variable costs, fixed costs, and contribution margin? Sales Commissions 280,000 Fixed Advertising Expenses 20,000 Variable Administrative Expenses.
What price will it set for fee : The only golf course in an isolatd town incurs a marginal cost of $5 per round of golf. It wishes to charge a membership fee and a fee per round of golf.
Determine the cournot equilibrium : There are only two firms, A and B, and each has a marginal cost of 2. Determine the Cournot equilibrium.
Providing a vital public service : Augustine has decided to build their own municipal water supply. They must now decide what price to charge consumers. After some careful research

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