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

  What is the probability that your first and second choices

Suppose that each time that you buy a car, you choose between Ford and General Motors. Suppose that each time after the first, you stay with the same company with probability 2/3 and switch with probability 1/3

  How many of the bulbs should she plant next fall

How many of the bulbs should she plant next fall if she would like at least 88 to bloom?

  Which topological space that we have previously encountered

Which topological space that we have previously encountered appears to be topologically equivalent to the quotient space that results from this partition?

  Set partitions and bit strings

The set of bit strings that end with 00; the set of bit strings that end with 01; the set of bit strings that end with 10; and the set of bit strings that end with 11.

  Test using the traditional approach with a = 0.05

Test using the traditional approach with α = 0.05

  Compute the probability the outstanding credit card balance

Suppose that the average outstanding credit card balance for young couples is $650 with a standard deviation of $ 420. If a couple is selected at random, what is the probability the outstanding credit card balance exceeds $ 700?

  How many of selections will contain no defective calculators

An electronic store receives a shipment of 30 graphing calculators, including 6 that are defective. Four of these calculators are selected to be sent to a local high school. How many selections can be made? How many of this selections will contain..

  Find the orders be placed to minimize inventory costs

If it costs $2 to store a box for a year, what is the order size and how many times a year should the orders be placed to minimize inventory costs?

  Find the dimensions of the box produced from the minimal

A company wishes to manufacture a box with a volume of 36 square feet that is open on the top and is twice as long as it is wide. Find the dimensions of the box produced from the minimal amount of the material.

  Find the volume of the solid obtained by revolving the graph

Find the volume of the solid obtained by revolving the graph of y=8x*sqrt(16-x^2) over [0,16] about the y-axis.

  Use the gauss-jordan method of computing inverses

Use the Gauss-Jordan Method of Computing Inverses to find the inverse and then to solve the system of linear equations.

  In how many days will the pool be empty

A swimming pool has a small leak in it. The pool has 25000 gallons of water. The water is leaking out at the rate of 12 gallons every 7 minutes. In how many days will the pool be empty?

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