Question

In: Computer Science

Give reasons why one might conjecture that the following language is not deterministic. L = {anbmck:...

Give reasons why one might conjecture that the following language is not deterministic.

L = {anbmck: n = m or m = k}.

Solutions

Expert Solution

Given language, L = {anbmck: n = m or m = k}.

Clearly, for two conditions, the language can be accepted by a PDA (push down automata). The first condition is equality of the number of a's and number of b's in the string and the second condition is the equality of the number of b's and number of c's in the string. Thus, if a PDA is generated for such language, there must be two different final states for two different conditions. Thus, two choice are there in the PDA. In the first case, 'a' will be pushed in the stack and 'b' will cause pop from the stack (and skip 'c') to check equivalence and in second case, (skip 'a') 'b' will be pushed in the stack and 'c' will cause pop from the stack to check equivalence.

So the PDA will not deterministic. Means, one string that is accepted by path 1 will not be accepted by path 2 (towards final state) and vice versa. Thus, there is a conflict in the acceptance of the string and thus the given language is not deterministic.


Related Solutions

Give an example of a non-regular Context-Free Language that can be recognize by a Deterministic Pushdown...
Give an example of a non-regular Context-Free Language that can be recognize by a Deterministic Pushdown automata and one that cannot.
1) Give reasons why IFRS might not be the best approach for domestic use by reporting...
1) Give reasons why IFRS might not be the best approach for domestic use by reporting entities in all countries.
Give reasons why you think an organization might not value social responsibility. Explain.
Give reasons why you think an organization might not value social responsibility. Explain.
What are some of the reasons why a national brand sold in one country might not...
What are some of the reasons why a national brand sold in one country might not work if it was introduced in a new, but, unfamiliar foreign market? What are some of the reasons why a national brand might not work in an unfamiliar market? Please provide an example and explain why the brand was unsuccessful?
give several (at least two, though three or four might be better) reasons why countries in...
give several (at least two, though three or four might be better) reasons why countries in a particular region might be more likely to trade with other countries in that same region and briefly explain why. You could consider the country pairs of Germany and France, the united states and Canada, China and Thailand, and United arabs Emirates and Saudi arabia as example ( Though you don’t have to use them, and you could other as example)
Give two reasons why a country might impose a tariff on imported goods. Discuss the tradeoffs...
Give two reasons why a country might impose a tariff on imported goods. Discuss the tradeoffs that nations make when imposing tariffs – who is benefits and who loses? What are some reasons for the widespread use of tariffs despite their overall implications for national welfare? (No Copy Paste) =>250 words Use Website to write in your own words.
Give two reasons why actual trade policy might not always be the policy that maximizes national...
Give two reasons why actual trade policy might not always be the policy that maximizes national welfare but rather something that prioritizes the welfare of certain groups more than others?
Answer the following questions about monopolists. What are the three reasons why monopolies arise? Give one...
Answer the following questions about monopolists. What are the three reasons why monopolies arise? Give one example of a firm that is a monopoly and the reason why it is a monopoly. How does a monopolist determine its profit-maximizing level of output? How does it determine the price that it charges?
What are some reasons why household wealth might fluctuate even if current income is unaffected? Give...
What are some reasons why household wealth might fluctuate even if current income is unaffected? Give some examples of how households hold wealth. How would fluctuations in household wealth affect household spending and hence AD?
Is the following language a regular language? ( Prove with pumping Lenma ) L = {...
Is the following language a regular language? ( Prove with pumping Lenma ) L = { o^n 1^n 2^n | n => 0} Define CFL pumping lemma
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT