Concept explainers
Exercises 1-3 refer to the grammar with start symbol sentence, set of terminals T = {the, sleepy, happy, tortoise, hare, passes, runs, quickly, slowly}, set of non-terminals N = {noun phrase, transitive verb phrase, intransitive verb phrase, article, adjective, noun, verb, adverb), and productions:
sentence ? noun phrase transitive verb phrase noun phrase sentence ? noun phrase intransitive verb phrase noun phrase ? article adjective noun noun phrase ? article noun transitive verb phrase ? transitive verb intransitive verb phrase ? intransitive verb adverb intransitive verb phrase ? intransitive verb
article ? the
adjective ? sleepy
adjective ? happy
noun ? tortoise
noun ? hare
transitive verb ? passes
intransitive verb ? runs
adverb ? quickly
adverb ? slowly
1. Use the set of productions to show that each of these sentences is a valid sentence.
a) the happy hare runs
b) the sleepy tortoise runs quickly
c) the tortoise passes the hare
d) the sleepy hare passes the happy tortoise
Want to see the full answer?
Check out a sample textbook solutionChapter 13 Solutions
DISCRETE MATHEMATICS LOOSELEAF W/CONNECT
- Find the length of the following curve. 3 1 2 N x= 3 -y from y 6 to y=9arrow_forward3 4/3 3213 + 8 for 1 ≤x≤8. Find the length of the curve y=xarrow_forwardGiven that the outward flux of a vector field through the sphere of radius r centered at the origin is 5(1 cos(2r)) sin(r), and D is the value of the divergence of the vector field at the origin, the value of sin (2D) is -0.998 0.616 0.963 0.486 0.835 -0.070 -0.668 -0.129arrow_forward
- 10 The hypotenuse of a right triangle has one end at the origin and one end on the curve y = Express the area of the triangle as a function of x. A(x) =arrow_forwardAre there any unusually high or low pH levels in this sample of wells?arrow_forwardAn angle measures 70.6° more than the measure of its supplementary angle. What is the measure of each angle?arrow_forward
- Please solve the following Probability Problem: Show all work and complete what is askedarrow_forwardPlease solve the following probability problem. Show all work and must solve all parts HW 1.z. (Mingle)A number is called and players need to group up and enter rooms. Ifplayers do not manage to make it into the rooms in time, or if a room hasless or more players than it is supposed to have, they will be eliminated.Assume there are 200 people other than you and the number called is 10.Determine the probability that you will form the group of the correct sizein each of the following cases:a) Imagine you had no better strategy than going to each of the 200people and tossing a fair coin to determine if they will join yourgroup or not.b) Imagine everybody else is divided into 25 groups of 4 people and 20groups of 5 people. Among all the possible groups, you are choosingto join two at random.c) Imagine everybody else is divided into 20 groups of 4 people, 10groups of 2 people and 20 groups of 5 people. You are choosing tojoin two groups at random.d) Imagine everybody else is divided into 20…arrow_forwardIn Problems 17-26, solve the initial value problem. 17. dy = (1+ y²) tan x, y(0) = √√3arrow_forward
- Algebra for College StudentsAlgebraISBN:9781285195780Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage LearningIntermediate AlgebraAlgebraISBN:9781285195728Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage LearningHolt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGAL