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
- ASSIGNMENT INDUSTRIAL PROJECT FOR PROF DIPLOMA
- This is a group assignment and must be completed in a group of a maximum of 4 students: object oriented development Assignment, APU, Malaysia
- NBNS1104: Discuss strategies to overcome adolescent pregnancies and reasonable steps to avoid the stigma: transculture in nursing Assignment, OUM, Malaysia
- CDCT 2203 Information Technology and Environment Assignment, OUM, Describe the environmental factors that influence a business organization in Malaysia
- MGT6206: Individual Project May 2024: Optimizing Supply Chain Visibility in a Multinational Corporation (MNC): Operations Management, Assignment, INTI, Malaysia
- Nurse Education Research Paper, AU, Malaysia Nurse Education Today is the leading international journal providing a forum for the publication of high-quality original research
- Finance Accounting and Management Assignment, UON, Malaysia Choose any three 3 accounting standards that you have learned in the class and discuss briefly those standards in regard to their recognition
- DCP5101: Program Design Assignment, MMU, Malaysia I need a standalone console application that can keep track of my restaurant sales. Customers will typically order food and drinks
- Algorithm and Data Structure Assignment, MUM, Malaysia Write a menu-based program to create a list of records (at least 3 data) using the queue concept
- BTW3153: Malaysian income tax law Case Study, MUM, Malaysia The student has to imagine that this request comes from a client, a partner in an accounting firm, or the manager of the company