Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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. For full marks the diagram must be complete and correct in every respect. This worksheet is worth of 20% this term's assignment. The hand in deadline is the end of Sunday, 6th of March 2022. Appendix - An Example of PDA A simple example of PDA is a recogniser for the language {1, 11, 111, (1), (1)(1), (1(11)), ((1)(1)11), ......} Below is a possible PDA. (, /push(*(") 1, op. SI $2 $3 H push($) 1, oe A.$/pop '('_ / push('(') ")',6 / pop

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Stability Analysis Of Nonlinear Systems

Authors: Vangipuram Lakshmikantham, Srinivasa Leela, Anatoly A Martynyuk

2nd Edition

3319272004, 9783319272009

More Books

Students also viewed these Mathematics questions

Question

What is the role of cognition and thought in learning?

Answered: 1 week ago

Question

What is your view of spirituality in the workplace?

Answered: 1 week ago