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
2. Find five other valid sentences, besides those given in Exercise 1.
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 MATH
- 2. Consider the following argument: (a) Seabiscuit is a thoroughbred. Seabiscuit is very fast. Every very fast racehorse can win the race. .. Therefore, some thoroughbred racehorse can win the race. Let us define the following predicates, whose domain is racehorses: T(x) x is a thoroughbred F(x) x is very fast R(x) x can win the race : Write the above argument in logical symbols using these predicates. (b) Prove the argument using the rules of inference. Do not make use of conditional proof. (c) Rewrite the proof using full sentences, avoiding logical symbols. It does not need to mention the names of rules of inference, but a fellow CSE 16 student should be able to understand the logical reasoning.arrow_forwardFind the inverse of the matrix, or determine that the inverse does not exist for: € (b) 7 -12 240 1 1 1 (c) 2 3 2 2 17 036 205 20 (d) -1 1 2 1 T NO 1 0 -1 00 1 0 02 (e) 1 0 00 0 0 1 1arrow_forward4. Prove the following. Use full sentences. Equations in the middle of sentences are fine, but do not use logical symbols. (a) (b) (n+3)2 is odd for every even integer n. It is not the case that whenever n is an integer such that 9 | n² then 9 | n.arrow_forward
- 3. (a) (b) Prove the following logical argument using the rules of inference. Do not make use of conditional proof. Vx(J(x)O(x)) 3x(J(x) A¬S(x)) . ·.³x(O(x) ^ ¬S(x)) Rewrite the proof using full sentences, avoiding logical symbols. It does not need to mention the names of rules of inference, but a fellow CSE 16 student should be able to understand the logical reasoning.arrow_forward3. Pleasearrow_forwardWhat does the margin of error include? When a margin of error is reported for a survey, it includes a. random sampling error and other practical difficulties like undercoverage and non-response b. random sampling error, but not other practical difficulties like undercoverage and nonresponse c. practical difficulties like undercoverage and nonresponse, but not random smapling error d. none of the above is corretarrow_forward
- solve on paperarrow_forwardsolve the question based on hw 1, 1.41arrow_forwardالتمرين الأول: 08) نقاط) نرمي رباعي وجوه مرقم من ا إلى 4 بحيث إحتمال وجوهه يحقق العلاقة التالية: - 24 = (3)P(1) = ) = 4P -1 أحسب احتمال كل وجه. -2 (١ أحسب احتمال الحادثة : الحصول على عدد زوجي). ب استنتج احتمال الحادثة ة. -3 أحسب احتمال الحادثة B الحصول على عدد د أكبر أو يساوي (2)arrow_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
- College Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage LearningAlgebra: Structure And Method, Book 1AlgebraISBN:9780395977224Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. ColePublisher:McDougal Littell