Prove that given language is context-free

Assignment Help Theory of Computation
Reference no: EM133026375

There are 5 questions for credit and one for your spiritual growth.

Question 1: Consider the two languages below:

L1 = {ambnck dj | m, n, k,j ≥ 0 and m = n and k = j }

and

L2 = {ambnck dj | m, n, k,j ≥ 0 and m = k and n = j }

One of these languages is context-free but the other one is not. Identify which is which. For the context-free language give a context-free grammar and for the other one give a proof using the pumping lemma that it is not context-free.

Question 2 Consider the language below:

L = {aibjck | i, j, k ≥ 0 and (i ≠ j or j ≠ k)}.

Prove that this language is context-free by giving a grammar. However this language is not deterministic context-free: prove this by showing that its complement is not context-free. The grammar can be rather long to write out fully so it suffices to explain what you are doing and reduce it to similar cases and then say, "this case is just like what we have done before." Proving that the complement is not context free can be done by a reduction argument to a familiar language that is known to be not context free. A direct pumping lemma proof would be painful.

Question 3 Suppose that we have a language L defined over the alphabet {a, b, c} and suppose that L is context-free. We define a new language perm(L) to be the set of all permutations of all words in L. For example, if L = {abc, aab} then perm(L) = {abc, acb, bac, bca, cab, cba, aab , aba, baa} . I have given an example where the language L is finite just for illustrative purposes; the same definition works equally well when L is infinite. Show that perm(L) need not be context-free by giving an example of a language L that is context-free but where perm(L) is not context-free. You need not give a pumping lemma proof if your example is just like one we have seen in class.

Question 4 Suppose that we have a finite collection of languages L1......,Ln, all defined over the same alphabet, Σ. Suppose that Uni=1 Li = ∑* and that for all i and j we have i≠j =› Li ∩ Lj = Φ i.e. each string is in exactly one language. Suppose that all the languages are computably enumerable. Show that all the languages are decidable. A brief answer is all that is required.

Question 5 For each of the three following assertions give brief arguments indicating whether they are true of false.
a. The intersection of two decidable languages is decidable.
b. The intersection of two CE languages is CE.
c. If L is decidable then L* is also decidable.

Remember when trying to show that something is decidable you need not worry about efficiency but your algorithm must terminate. Thus, you cannot say things like "check every word ...." as this will definitely not terminate on an infinite language.

Spiritual grovrth Show that over a one-letter alphabet the context-free languages are regular.

Reference no: EM133026375

Questions Cloud

Difference between a visa and a passport : 1. Describe how the high context cultures and low context cultures view a contract?
What will be the exact amount of trade receivable : Trade receivable in 2013= 459,000 In 2014 trade receivable will be improved by 44.9 days. Then, what will be the exact amount of trade receivable in 2014
Major forms of employment legislation in canada : What are the major forms of employment legislation in Canada and what is the difference between Federal and Provincial legislation?
How employees will accept the changes : Because of a recent downturn in the economy, the HR director of Clearwater Electronics would like to implement several changes to help the firm navigate anticip
Prove that given language is context-free : Identify which is which. For the context-free language give a context-free grammar and for the other one give a proof using the pumping lemma
How much is the replacement value per share : The remaining has an estimated replacement value of 70% of the recorded net book value. How much is the replacement value per share
List the pros and cons of virtualization : Define virtualization and the various types of virtualization. List the pros and cons of virtualization.
Improving the team performance : 1. Imagine that you are having a conversation with one of the members you worked with in class on the indigo HR Develop Team Exercise and that you are providing
Illustrate fayol principle of equity : Problem: Ping believes all workers should receive the same wage rate regardless of their position within a company.

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