Here is a context-free grammar that can be used to generate

Assignment Help Mathematics
Reference no: EM13471429

Here is a context-free grammar that can be used to generate algebraic expressions via the arithmetic operators (addition, subtraction, multiplication, and division), in the variables p, q, and r. The letter E stands for expression:

Rule 1: E -› p
Rule 2: E -› q
Rule 3: E -› r
Rule 4: E -› E + E
Rule 5: E -› E - E
Rule 6: E -› E X E
Rule 7: E -› E/E
Rule 8: E -›(E)

(i). Use the above grammar to derive the string given by the mathematical expression E = (p + q) X p - r X p/(q + q)

(ii). Provide a parse tree for this derivation.

Reference no: EM13471429

Questions Cloud

Critically discuss the differences among expressions : what are the differences among expressions equations and functions? provide examples of each.require 200-300 words
Describe give a theory regarding the described events using : case studyon your way to class monday morning you hear buzzing from other students gathered at the student union.
Jerry lee was a professional singer he entered into a : jerry lee was a professional singer. he entered into a contract to sing at a concern sponsored by abc co. he also
The attorney-client relationship and resultant privileged : the attorney-client relationship and resultant privileged communications status is established the moment a person
Here is a context-free grammar that can be used to generate : here is a context-free grammar that can be used to generate algebraic expressions via the arithmetic operators addition
Intergenerational transmission theory is frequently used : what are your thoughts and opinions on the eugenics movement?intergenerational transmission theory is frequently used
Sketch histogram showing 20 sample means use classes -05 to : using the telephone numbers listed in your local directory as your population randomly obtain 20 samples of size 3.
Draft an essay in which you address the given questions : draft an essay in which you address the following questionsbullwhat does the term healthy living mean to you? bullhow
A health inspector at a restaurant will enter the kitchen : a health inspector at a restaurant will enter the kitchen and choose 5 stations to inspect from a predetermined list of

Reviews

Write a Review

Mathematics Questions & Answers

  Arc length of parametric curve

Find the arc length of the parametric curve x = 3 cos t, y = 3 sin t, z = 4t; 0

  Information about linear algebra-wronskian

Compute the Wronskian of the given set of functions, then determine whether the function is linearly dependent or linearly independent: x^2 - x, x^2 + x, x^2, all x

  Find the smallest possible value of bc - ab

Finding the difference of the side lengths of a triangle - Find the smallest possible value of BC - AB?

  Probability questions with cards and unbiased dice

Probability questions with cards and unbiased dice, Suppose that you select two cards without replacement from an ordinary deck of playing cards.

  State the union and intersection for those two sets

Provide a real-world example that shows 2 related sets. List all the members of your sets in set notation. A set can consist of individuals, objects

  What dimensions will give the largest printed area

A poster is to have an area of 250 in2 with 2 inch margins at the bottom and sides and a 3 inch margin at the top. What dimensions will give the largest printed area? (Give your answers correct to one decimal place.

  Calculate the amount earned by a principal

Calculate the amount earned by a principal.

  What is the monthly payment

The price of a home is $167,000. The bank requires a 20% down payment and three points at the time of closing. The cost of the home is financed with a 30-year fixed-rate mortgage at 8%. What is the monthly payment (excluding escrowed taxes and ins..

  Find the absolute maximum and minimum mpg

Find the absolute maximum and minimum mpg

  What is the measure of its complementery angle

a computer monitor makes a 60 degree angle with the desk it rest on .what is the measure of its complementery angle?

  Write the total cost c as a function of the number

A company produces very unusual CD's for which the variable cost is $12 per CD and the fixed costs are $25,000. They will sell the CD's for $98 each. Let x be the number of CD's produced.

  What is the largest number of floors that building

An apartment building has seven elevators. Each elevator stops on at most six floors. You can get to any one flooor from any other floor without changing elevators (if you take the right elevator). What is the largest number of floors that buildin..

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