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
- MKT6205E: Marketing Management Case Study, IIU, Malaysia Nespresso was created in 1986 as a subsidiary of the Swiss group Nestlé. It was initially a supplier to the coffee
- Supply Chain Management Assignment, UiTM, Malaysia Create a manufacturing company that acts as an end-product manufacturer. Your company must be in a developing
- DJM50113 Industrial Automation Practical Task 4 Human Machine Interface (HMI) [MELFA RV-AJ ARTICULATED]
- SEMM3023: Applied numerical method Report, UMT, Malaysia The determination of the fundamental natural frequency for cantilever beams is crucial in many engineering applications
- Corporate governance in Malaysia Assignment, HU, Malaysia What extent does the corporate Governance framework in Malaysia provide a framework of control mechanisms that support a company
- Financial Accounting and Reporting Assignment, SU, Malaysia The Malaysian Accounting Standard Board develops and publishes the Malaysian Private Entities Reporting Standards
- DPM10013 Principle of Marketing Course Work PM Malaysia Draw Three marketing channels for the consumer market with appropriate examples
- Corporate Accounting Assignment, OUM, Malaysia Present the financial affairs of a parent company and its legally distinct subsidiaries as if they were a single unified economic entity
- You have to select the latest annual report of any one of listed companies in Malaysia: Financial Account and Reporting 2 Assignment, Uitm, Malaysia
- International Business Assignment, UON, Malaysia The COVID-19 Pandemic has impacted International Business in a big way. Please discuss the main features of this