3. Consider the following context-free grammar (CFG): X aXbY|Y Y CY | (a) Show...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3. Consider the following context-free grammar (CFG): X → aXbY|Y Y → CY |€ (a) Show using a parse-tree, or otherwise, how the word aabb is derived from the grammar. [5 marks] (b) The language described by the CFG above is recognised by the following push-down au- tomata (PDA): 90 E, E$ a, e a b, a → € C, EE JJ d E, EE €, $→ € 91 93 92 Trace the development of the stack for the path which leads to the acceptance of the word aabb. [5 marks] (c) Describe, in English, the language derived from the CFG. [4 marks] (d) By extending the PDA illustrated above (3b), or otherwise, design a PDA which recognises the language {abci, j, k ≥ 0 and i jor j = k}. [6 marks] 3. Consider the following context-free grammar (CFG): X → aXbY|Y Y → CY |€ (a) Show using a parse-tree, or otherwise, how the word aabb is derived from the grammar. [5 marks] (b) The language described by the CFG above is recognised by the following push-down au- tomata (PDA): 90 E, E$ a, e a b, a → € C, EE JJ d E, EE €, $→ € 91 93 92 Trace the development of the stack for the path which leads to the acceptance of the word aabb. [5 marks] (c) Describe, in English, the language derived from the CFG. [4 marks] (d) By extending the PDA illustrated above (3b), or otherwise, design a PDA which recognises the language {abci, j, k ≥ 0 and i jor j = k}. [6 marks]
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
North Mountain's currrent ratio is 148 It is considering issuing $ 31 million in bonds to purchase a new manufacturing facility Its current liabilities are $ 34 million but the new debt would...
-
Make a presentation about marketing: Your Companys marketing department promotes the products and interacts with the customers, sales force, and supply chain. They are also in charge of forecasting...
-
Show that the energymomentum relationship E2 = p2c2 + (mc2)2 follows from the expressions E = y mc2 and p = y mu.
-
A spotlight has a parabolic cross section that is 4 ft wide at the opening and 1.5 ft deep at the vertex. How far from the vertex is the focus?
-
A snow-cone machine at an icecream shop costs \(\$ 15,000\). The machine is expected to generate profits of \(\$ 2,500\) each year of its 10-year useful life. At the end of the 10 years, the machine...
-
Valley Corporation is attempting to select the best of a group of independent projects competing for the firms fixed capital budget of $4.5 million. The firm recognizes that any unused portion of...
-
Define what is meant by an asset and a liability. Give an example of each.
-
In a process development study on yield, four factors were studied, each at two levels: time (A), concentration (B), pressure (C), and temperature (D). A single replicate of a 2 4 design was run, and...
-
The underlying intent of this problem is to demonstrate the ignorance of adding cash flows across time, once a person understands time value of money. (Each part is worth 1 pt.) (a) Loan A: You...
-
Compare the rates for a given amount of auto insurance (by interviewing an agent, visiting a Web site, or calling a toll-free information line) for: a. An unmarried male and an unmarried female of...
-
Uncle John and Aunt Martha own 1,000 shares of AT Inc. in a brokerage account that is titled "John and Martha, Tenancy-in-Common." Explain how the assets would be handled if John passed away. What if...
-
Classify the four primary features of preferred stock into two groups (1) those that benefit the investor and (2) those that benefit the issuer, and explain how you categorized each. Also, formulate...
-
A gear of mass \(0.6 \mathrm{~kg}\) is attached to the bar in problem 8 at the center. Calculate the natural frequencies for axial vibration using (a) two and (b) four elements of equal length. Use...
-
Sedki earned $119,750 in 2010. How much did he pay in Social Security taxes? In Medicare taxes? In total FICA taxes? Don't forget the annual Social Security earnings cap.
-
Liability is any measurable thing that is capable to generate cash flows or other economic benefits in the future Select one: O True O False
-
Refer to the table to answer the following questions. Year Nominal GDP (in billions) Total Federal Spending (in billions) Real GDP (in billions) Real Federal Spending (in billions) 2000 9,817 578...
-
Jan has two jobs during 2012. One employer withheld and paid FICA taxes on $66,600 of Jan's salary, and the other employer withheld and paid FICA taxes on $44,400 in salary paid to Jan. Calculate the...
-
Skyler is covered by his company's health insurance plan. The health insurance costs his company $3,500 a year. During the year, Skyler is diagnosed with a serious illness and the health insurance...
-
Abigail (Abby) Boxer is a single mother working as a civilian accountant for the U.S. Army. Her Social Security number is 676-73-3311 and she lives at 3456 Alamo Way, San Antonio, TX 78249. Helen,...
-
One difference between accounting for a governmental (not-for-profit) unit and a commercial (for-profit) enterprise is that a governmental unit should a. Not record depreciation expense in any of its...
-
Carson Citys general fund issued purchase orders of $630,000 to vendors for supplies. Which of the following entries should the city make to record this transaction? Debit Credit Q. ENCUMBRANCES...
-
Belle Valley incurred $100,000 of salaries and wages for the month ended March 31, 20X2. How should this be recorded on that date? c. Expenditures Salaries and Wages Debit Vouchers Payable Salaries...
Study smarter with the SolutionInn App