Suppose the PDA P = (Q= {go, q1}, Σ={0,1}, r={Zo, X}, &, qo, z=Zo, F={q1} ) has the following transition function: Automata theory, Assignment, UMS, Malaysia
| University | Universiti Malaysia Sarawak (UMS) |
| Subject | Automata theory |
1. Suppose the PDA P = (Q= {go, q1}, Σ={0,1}, r={Zo, X}, &, qo, z=Zo, F={q1} ) has the following transition function:
a. (go, 0, Zo) = {(go, XZo)}.
b. (go, 0, X)= {(go, XX)}.
c. (go, 1, X)= {(go, X)}.
d. (qo, λ, X)= {(1, 2)}.
e. &(q1, λ, X)= {(91, λ)}. f. &(q1, 1, X)= {(91, XX)}. g. (q1, 1, Zo) = {(1, 2)}.
Starting from the initial ID (go, w, Zo), show ALL the reachable ID’s and list the transition functions that are used when the input w is:
a. 01. [Hint: there are two ways]
b. 0011. [Hint: there are three ways] c. 010.
(6 marks) (19 marks) (5 marks)
5. Let C be a context-free language and R be a regular language. Let P be the PDA that recognizes C, and D be the DFA that recognizes R. If Q is the set of states of P and Q’ is the set of states of D, we can construct a PDA P’ that recognizes CR with the set of states Q x Q’. P’ will do what P does and also keep track of the states of D. It will accept a string wiff it stops a a state qe FpxFD, where Fp is the set of accept states of P and FD is the set of accept states of D. Since CR is recognized by P’, it is context free.
Let A= {w we (a, b, c)* and w contains equal numbers of a’s, b’s, and c’s}. Use the fact that CR is context free to show that A is not a context free language.
Get Help By Expert
Recent Solved Questions
- Contract law Assignment, TP, Malaysia What you have learned? What is the takeaway? What are the skills acquired from this subject? Will you be using this skill in future
- LEI2043: CURRENT ISSUES IN LAW ENFORCEMENT Assignment, SUC, Malaysia Based on the above article, kindly explain and elaborate what is the extent of discretionary powers of a police officer
- International Relations Dissertation, UITM, Malaysia: China has emerged as a major player in international affairs in the last few decades with global interests and the ability
- Economics Assignment, UON, Malaysia Trade policy uncertainty in major economies increased to a historically high level in 2019 and has hardly been resolved
- BUSN11078: Integration of Business Functions Assignment, UWS, Malaysia Demonstrate a critical understanding of the key tools for analysis of the internal and external environmental
- JFP463E: Finance Assignment, USM, Malaysia Conduct interviews with 5 investors/respondents to explore and understand their investment behavior
- MPME7113: Select an article from an academic journal in economics. The article must focus on a topic in Managerial Economics: MANAGERIAL ECONOMICS Assignment, CUM, Malaysia
- Supply Chain Management Assignment, UiTM, Malaysia Create a manufacturing company that acts as an end-product manufacturer. Your company must be in a developing
- CBOP3103: Object Oriented Approach in Software Development Assignment, OUM, Malaysia Global Skills Solution is a prominent training centre located at the heart of Kuala Lumpur
- Crime and Society Assignment, UUM, Malaysia Social control is the study of the mechanisms, in the form of patterns of pressure, through which society maintains