Grammar permits redundant or contradictory declarations

Assignment Help Finance Basics
Reference no: EM131099200

The following grammar generates declarations for a single identifier:

a) Show how this grammar can be generalized to permit n options Ai. I ≤: i es n. each of which can be either a, or bj

b) The above grammar permits redundant or contradictory declarations such as We could insist that the syntax of the language forbid such declarations. We are tbus left with a finite number of token sequences that are syntactically correct. Obviously these legal declarations form a context-free language. indeed a regular set. Write a grammar for declarations with n options, each option appearing at most once.

c) Show that a grammar for part (b) must have at least 2" symbols. d) What does (c) say about the feasibility of enforcing nonredundancy and noncontradiction among options in declarations via the syntactic definition of a language?

Reference no: EM131099200

Questions Cloud

Construct an equivalent unambiguous grammar : Note that the first vertical bar is the "or" symbol. not a separator between alternatives, a) Show. that this grammar generates all regular expressions over the symbols a and b.
Aid of well liabelled graphs : Distinguish between the capital market line and the security market line illustrate with the aid of well liabelled graphs.
Briefly define and explain the hypocrisy paradigm : Explain how the researchers tested the effect of hypocrisy on behavior change in this study. Specifically, describe who the subjects were, what they did in each condition of the study, and how behavior change was measured. Summarize the results of..
Eliminate the left-recursion from the grammar : a) Eliminate the left-recursion from the grammar in Exercise 4.1. b) Construct a predictive parser for the grammar in (a) . Show the behavior of the parser on the sentences in Exercise 4.l(b
Grammar permits redundant or contradictory declarations : a) Show how this grammar can be generalized to permit n options Ai. I ≤: i es n. each of which can be either a, or bj
Which is true regarding the responsive evaluation model : A program evaluator who determines that the results of the proposed evaluation will most benefit those who participate in the program or who are stakeholders will employ which model of program evaluation?
Determining the amortized mortgage : If a company buys a building for $874,600 and finances the acquisition with a 10-year amortized mortgage that has a 3.96% interest rate with quarterly payment, how much principal will be repaid during year 5? can you show me the answer and how do ..
Use regular-expression-like operators : We can use regular-expression-like operators in the right sides of grammar productions. Square brackets can be used to denote an optional part of a production. For example, we might writ
Draw an entity-relationship diagram for database : Draw an Entity-Relationship diagram for this database using UML notation.Be sure to include all the entities mentioned above, together withattributes

Reviews

Write a Review

Finance Basics Questions & Answers

  The book value of the bonds on april 30 was 144600 bond

on april 30 2010 one year before maturity red products inc. retired 150000 of 8 bonds payable at 103. the book value of

  Repeat the calculation using a handheld financial calculator

Repeat the calculation using a handheld financial calculator. Would he have made a 20 percent rate of return if the stock had risen to $30 a share?

  Problem-chamberlain canadian imports

Chamberlain Canadian Imports has agreed to purchase 15,000 cases of Canadian beer for 4 million Canadian dollars at today's spot rate. noted the following current spot and forward rates:

  You want to buy a house in 4 years and expect to need 25000

you want to buy a house in 4 years and expect to need 25000 for a down payment. if you have 15000 to invest how much

  Estimate of equity beta for frim a

If you find that equity beta is different between Frim A and its comparable firm in (a), how would you explain the difference? If you expect no difference explain why they are not different.

  Estimates regarding medicare

In the year 2000, the Congressional Budget Office offered the following estimates regarding Medicare (the U.S. government program that pays for part of the health costs of individuals who are permanently disabled or over 65 years old)

  Measurements from a normal distribution

Suppose you have selected a random sample of N-7measurements from a normal distribution. Compare the standard normal z- critical values with the corresponding t- critical values if you were forming the following confidence intervals:

  Npv-sensitivity-risk-bias-ethics in capital budgeting

Investment projects should never be selected through purely mechanical processes. Managers should ask questions about the positive net present value (NPV).

  What is the effective annual rate of interest on additional

A house is for sale for $250,000. You have a choice of two 20-year mortgage loans with  monthly payments: (1) if you make a down payment of $25,000, you can obtain a loan with a 6% rate of interest

  What kind of duties and expectations are asked of you

What is your proposed job description and what kind of duties and expectations are asked of you? Financial analyst who assists others in managing their wealth and distributions.

  The demand curve and supply curve for one-year discount

The demand curve and supply curve for one-year discount bonds with a face value of $ 1,000 are represented by the following equations: Bd: Price = - 0.6 Quantity + 1140 Bs: Price = Quantity + 700 a. Draw the Supply and Demand graphs for this bond

  Calculate how much has to be in your account before the

bull calculate how much has to be in your account before the first withdrawal at age 64. 2 pointsbull calculate how

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