Construct a pushdown automaton accepting the language

Assignment Help Other Subject
Reference no: EM133270338

Question 1: For each of the following languages, construct a context-free grammar generating the language; briefly and precisely describe the strings generated by each variable in the grammar. Notes: You should aim to give the simplest grammars possible, and offer brief explanations about how your grammars work.
(a) {aibi ≥ 1, and |i - j| i ≤ 3}.
(b) {aib2jcjdk |i, j,k ≥ 1, and 2i ≤ k}.
(c) {aibj | i,j ≥ 0, and i ≠ j}.
(d) {x1x2cy | x1, x2, y ∈ {a, b}*, and there exists x ∈ {a, b}* with x1xx2 = Yr }.
(e) {aibjck | i > j > k ≥ 0. Ignore this part: incorrect membership condition.

Question 2: Read: (1) our textbook [Sip12] Example 2.3 for the context-free grammar G, and (2) lecture notes that a precise specification of the following language L,

L = {x ∈ {a, b}* | for every prefex u of x, #a(u) ≥ #b(u), and #a (x) - #b(x)}.

Following the framework shown in lectures that proves the correctness of a context-free grammar, give a detailed proof of correctness of L(G) = L

Question 3: Consider the following language:

L = {w ∈ {a, b}* | 2#a(w) ≠ 3#b(w)},

where #c,(w) denotes the number of symbol c occurring in the string w.

Construct a pushdown automaton accepting the language L (no conversion from context-free grammar to pushdown automaton is accepted); give brief and precise interpretation of the states and transitions of your machine.

Question 4: Let G be a context-free grammar in Chomsky Normal Form with it variables. Prove that, if G derives some string with a derivation having at least 272 steps, L(G) is infinite.

Question 5. Let ∑ be an alphabet. The symmetric difference of two languages A, B ⊆ ∑*, denoted by AΔB, is defined as:

(A ∩ B‾) U (A‾ ∩ B).

Prove that if A ⊆ ∑* is a context-free language and B ⊆ ∑* is a finite language, then the language AΔB is context-free.

Reference no: EM133270338

Questions Cloud

What are the classifications under substantive criminal law : What are the classifications under substantive criminal law? What type of crimes fall under this area? Please explain in detail
What is the status of terrorism in northern ireland : What is the status of terrorism in Northern Ireland including the rebirth of the IRA and status of negotiations? What is the LTTE, what is its current status
Describe the ways cyberterrorists might operate : Describe the ways cyberterrorists might operate. Describe the effectiveness of differing types of WMD (weapons of mass destruction)
What is the purpose of the cca : What is the purpose of the CCA? Provide the method(s) you will have to use to charge a young person found in contravention of this Act
Construct a pushdown automaton accepting the language : Construct a pushdown automaton accepting the language L (no conversion from context-free grammar to pushdown automaton is accepted)
Identify guidelines for sharing information : Identify guidelines for sharing information when requested by the news media about public safety operations/ investigations
What is the purpose of the final pretrial conference : What is the purpose of the final pretrial conference? Provide a list of items that might be discussed or resolved at the final pretrial conference
What is the purpose of dalessio and stolzenberg study : What is the purpose of Dalessio and Stolzenberg's (2003) study? Why using NIBRS data an improvement to Hindelang's UCR data
Describe how you would perform your legal research : Describe how you would perform your legal research to ensure you were making good and proper arguments to the court you are practicing in

Reviews

Write a Review

Other Subject Questions & Answers

  What decision should the company make using each strategy

Slaggert Systems is considering becoming certified to the ISO 9000 series of quality standards. Becoming certified is expensive.

  How the debt capacity of the governmental entity

Explain how the debt capacity of the governmental entity is determined.

  Describe the barriers and intervention approaches

Select a diverse family system, such as a family with differences in sexual orientation, a family with differences in race or ethnicity.

  What new skills will be essential for the strategic planner

How has the role of the strategic planner changed over the past several decades? What new skills will be essential for the strategic planner?

  Discuss the four areas of corporate social responsibility

What is this corporation's social corporate responsibility in this case for the four areas of corporate social responsibility

  After the civil war-metropolitan newspapers

After the Civil War, metropolitan newspapers

  Differences among viruses and malicious codes

Explain the key differences among viruses and other malicious codes.

  How will emotional intelligence apply to your success

How will emotional intelligence apply to your success post-college; or if you are already working, how does emotional intelligence apply to your behavior

  Discuss what determines their distribution channels

Distribution is determined largely by the products itself. Marketers determine which channels to take based on characteristics

  Identify each activity required for your dissertation

Topic - Business Organisation and the Family Business Model. Identify each activity required for your dissertation and allocate a time factor for each task

  Differences between the two classes of personifications

What are the differences between the two classes of personifications? What are the similarities between Sullivan's personifying process and Freud's concept.

  Explain how bullying relates to the agents of socialization

Define the identified critical step of research in your words. Explain how bullying relates to one (1) of the following topics: the agents of socialization.

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