Generate operator-precedence relations

Assignment Help Finance Basics
Reference no: EM131099226

A grammar is said to be a (uniquely invertible) operator-precedence grammar if it is an operator grammar with no two righ[ sides that have the same pattern of terminals. and the method of Exercise 4.26 yields at most one precedence relation between any pair of terminals. Which of the grammars of Exercise 4.27 are operator-precedence grammars?

Exercise 4.27 Generate operator-precedence relations for the following grammars.

a) The grammar of Exercise 4.2.

b) The grammar of Exercise 4.3.

c} The expression grammar (4. 10).

Exercise 4.2. Consider the grammar

a) Show that this grammar is ambiguous by constructing two different leftmost derivations for the sentence abab.

b) Construct the corresponding rightmost derivations for abab.

c) Construct the corresponding parse trees for obob.

*d) What ,language does this grammar generate'!

Exercise 4.3 Consider the grammar

a) Construct a parse tree for the sentence not (true or false).

b) Show that this grammar generates all boolean expressions.

*c) Is this grammar ambiguous? Why?

Exercise 4.26 There is a mechanical way to produce operator-precedence relations from an operator grammar. including those with many different nonterminals. Define leading (A) for nonterminal A to be the set of terminals a such that a is the leftmost terminal in some string derived from A. and define trailing (A) to be the set of terminals that can be the rightmost in a string derived from A. Tben for terminals a and b. we say a .,; b if there is a right side of the form au(3.b")'. where (3. is either empty or a single nonterminal, and a and 'Yare arbitrary. We say a b if there is a right side of the form «Abf3.. and lJ is in trailing (A ). •n both cases. a and 13 are arbitrary slrings, Also. $

Reference no: EM131099226

Questions Cloud

What is the smallest amount : You are going to inherit €200,000 fifteen years from today. However, you need funds today. If the discount rate associated with that cash flow is 16% then what is the smallest amount that would you be willing to accept today in order to forgo the ..
Who benefitted from the run up in mortgages : Who benefitted from the run up in mortgages? Why did it go on so long? Where were the "rating" agencies on this? Why did the Federal Reserve cut interest rates to "zero" and start buying treasury bonds?
What is psychopathology : How did the early beliefs about abnormal behavior influence the types of treatments for mental illness? How did the psychoanalytic approach contribute to the understanding of what causes mental illness?
Problem regarding the assigned a discount rate : Because of its high risk, the project has been assigned a discount rate of 16 percent. In dollars, how much will this project return in today's dollars for every $1 invested?
Generate operator-precedence relations : A grammar is said to be a (uniquely invertible) operator-precedence grammar if it is an operator grammar with no two righ[ sides that have the same pattern of terminals.
To produce operator-precedence relations : There is a mechanical way to produce operator-precedence relations from an operator grammar. including those with many different nonterminals.
To produce operator-precedence relations : There is a mechanical way to produce operator-precedence relations from an operator grammar. including those with many different nonterminals.
Problem regarding the assigned a discount rate : Because of its high risk, the project has been assigned a discount rate of 16 percent. In dollars, how much will this project return in today's dollars for every $1 invested?
Listing of the key contents of policy directions : SLE721 Policy and Planning for Sustainable Development, Assignment: Policy Implementation Requirements. Listing of the Policy directions. Listing of the key contents of Policy directions. Discussion/analysis as to why these directions are necessary

Reviews

Write a Review

Finance Basics Questions & Answers

  Option contracts to minimize risk

Benefit from using option contracts to minimize risk.

  How can ordeal mechanisms reduce a particular problem

How can ordeal mechanisms reduce a particular problem with some benefits programs. What is the problem, and which ordeal mechanism or mechanisms do you prefer to use in which programs. Be specific in every case.

  Compares aicpa code and ima code of professional conduct

500 words in MS word-Compares the AICPA Code of Professional Conduct and the IMA Code of Professional Conduct - Describes the purpose and major elements of both codes and compares the two codes

  Suppose a company has a preferred share issue and a common

suppose a company has a preferred share issue and a common share issue. both have just paid a dividend of 2.50.

  Calculate the current market value and occ

Calculate the current market value and OCC of the portfolio consisting of the assetsin parts a, b and c.

  Provide a comprehensive analysis of the financial health

The final project for XACC 280 is a 1,750- to 2,050-word paper in which you provide a comprehensive analysis of the financial health of two companies, compare the companies, and make recommendations to improve the financial status of each. The ..

  How large a sales increase can the company achieve

How large a sales increase can the company achieve without having to raise funds externally - that is, what is its self-supporting growth rate?

  Best alternative for peter out of the following choices

However, the $10000 he has right now is needed for urgent repairs to his home, repairs that will cost at least $15000 if he delays them for a year. What is the best alternative for Peter out of the following choices?

  Due to a recession expected inflation this year is only 35

due to a recession expected inflation this year is only 3.5. however the inflation rate in year 2 and thereafter is

  Net working capital investment

Suppose you also know that the firm's net capital spending for 2014 was $1,390,000, and that the firm reduced its net working capital investment by $73,000. What was the firm's 2014 OCF?

  Describe the risk exposures in the following financial

describe the risk exposures in the following financial transactions. identify which transactions are influenced by

  You bought 2000 shares of tilleyrsquos stock 748 per

you bought 2000 shares of tilleyrsquos stock 7.48 per share and with a 1 broker commission on your purchase. what is

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd