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
- Choose a local company that you know well and can access information about. The company should either: Strategic Business and Management Assignment, Malaysia
- BMG323: Based on the distribution, compute (by formula) the average and standard deviation for: Business analytics Assignment, WOU, Malaysia
- Wellness Assignment, MUM, Malaysia A therapeutic diet is a meal plan that controls the intake of certain foods or nutrients. It is part of the treatment of a medical
- MEMB2044 Theory of Machines Semester 2 Assignment Malaysia
- ESEM5634 Educational Research Methodology, Research Paper, UNITAR, Malaysia
- TA6434: Algorithm And Data Structure Assignment, UKM, Malaysia Write a menu-based program to create a list of records at least 3 data using the queue concept
- CBD215 Contact Administration Assignment 2 and Assignment 3
- Teaching and Learning Assignment, TU, Malaysia Teachers play a crucial role in supporting students to continuously upgrade their knowledge and skills through effective
- MC247: Interpersonal Communication Case Study, OUM, Malaysia Ashley is 17 years old. Her parents are frustrated by her selfish and destructive behavior
- FFN20303: A bond matures in 12 years and pay 8 percent coupon annually. The bond has face value of RM1000: Money And Capital Market Assignment, MSU, Malaysia