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

  Which states are transient

A state s' in a finite-state machine is said to be reachable from state s if there is an input string x such that f (s, x) = s'.

  Show that if the statement is true

Show that if the statement P(n) is true for infinitely many positive integers, and the implication P(n+1) ---> P(n) is true for all n>=1, then P(n) is true for all positive integers.

  Design turing machine having at least four nontrivial states

Design Turing machine (using Sipser notation) having at least 4 nontrivial (i.e., nonrejecting) states and at least six nontrivial (i.e., not to the rejecting state) transitions.

  Prove the following statement using hals theorem

Prove the following statement using Hall's Theorem. For any bipartite graph G=(U, V, E), if every node (either a left node or a right node) has exactly.

  Construct a regular grammar

Construct a regular grammar G = (V , T , S, P ) that generates the language recognized by the given finite-state machine.

  Describe the concept of the universal turing machine

What is the UTM? Describe the concept of the universal Turing machine. Explain how such a machine can be built.

  How fsms are used in study of network protocols

Explain how finite-state machines are used in the study of network protocols.

  Is l decidable give a brief explanation for your answer

Let L = {(M): M has an even number of states}. Is L decidable? Give a brief explanation for your answer. Let L = {(M): L(M) has an even number of elements}. Is L decidable? Give a brief explanation for your answer

  1- when organization have a balance of both management and

1- when organization have a balance of both management and leadership and goals and challenges have been met how do we

  Develop a website - an education consulting firm

Develop a Website: An education consulting firm would like to develop a career oriented website for guide them for higher education in Australia.

  Prove that l is not regular using pumping theorem

Prove that L is not regular. (Be particularly careful if you use the Pumping Theorem. You must choose a w that is actually in L.)

  Explain why the relation does or does not satisfy

explain why the relation does or does not satisfy each of the properties reflexive,symmetric, antisymmetric, andtransitive.

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