Question: Based on the FA you already designed, your next task is to extend it to a Pushdown Automaton (PDA) which can recognise arithmetic expressions with

 Based on the FA you already designed, your next task is
to extend it to a Pushdown Automaton (PDA) which can recognise arithmetic
expressions with brackets. All brackets must be paired up correctly. Multiplication operator

Based on the FA you already designed, your next task is to extend it to a Pushdown Automaton (PDA) which can recognise arithmetic expressions with brackets. All brackets must be paired up correctly. Multiplication operator can't be omitted. Some accepted examples: 1, -2, -(1), (1+2)*(3-7.3), 1/(-3-1), 8*-(3/8), ((1.2))(2.1) Some rejected examples: (3)), (2)(3) 4-) (1.)5, (3)3) In Appendix, we show you an example of PDA which accepts strings of unary numbers with correctly matched brackets. Please fully understand how it works. When you design your PDA, you should use your FA (from previous worksheet) as a start point. You need to modify your FA into a PDA, thinking carefully where are the positions you should allow open/close brackets. I For full marks the diagram must be complete and correct in every respect. Appendix An Example of PDA A simple example of PDA is a recogniser for the language 11, 11, 111, (1), (1)(1), (1(11)), ((1)(1)11), ...} Below is a possible PDA. C push(( wwor SI S2 H push(s) honop A.S/pop push(( pop Task 2 - model answer Please use this as a start point for Portfolio task 3 0-9 0-9 decl start digit 0-9 0-9 sign dec2 0.9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!