a) Define a phrase-structure grammar.
b) What does it mean for a string to be derivable from a string w by a phrase-structure grammar G?
To define a phrase-structure grammer.
Answer to Problem 1RQ
“ A phrase structure grammer is denoted by set
Explanation of Solution
Given:
Phrase structure grammer.
Concept: Definition of phrase structure grammer involves following description of few alphabets :
V: It is a finite, non empty set of elements called symbols.
T : It is a subset of set V that consisting of terminal ( non replacing symbols of vocabulary) symbols.
S : It is a starting symbol ( element of vocabulary, used to start a sentence ) from V.
P : It stands for production. These are the rules that specify the replacement of one string from another in the sentence.
Meaning for a string to be derivable from another string
Answer to Problem 1RQ
A string
Explanation of Solution
If two strings of a production of phrase-structure-language are be replaced in such a way, then it is said that one string is a derivation of another string. And it is represented by symbol
Want to see more full solutions like this?
Chapter 13 Solutions
Discrete Mathematics and Its Applications ( 8th International Edition ) ISBN:9781260091991
- (3) Give a grammar G =(V.2,5, P), whereV =14, B,C;, =;a,b;,S =4, P: A- a4|bB, B- bC|aB,C aB|aC|2. (a) Is G a regular grammar? Why? (b) Find an nfa which accepts the language L(G). (c) Find the regular expression r associated with the language accepted by the above nfa. (d) Find regular language L(r) from the above r.arrow_forwardgrammar is LL(1) or not With the reason statedarrow_forwardGive context-free grammars to generate the following languages: (a) L = {vuvkw : u, v, w E {0, 1}*, |u| = |w| = 2} (b) L2 = {a"b"&d² :n+ m = k + l} (c) L3 = {w : na(w) > ns(w) + 1}arrow_forward
- ALEKS - Christian Seither - Learn X + ● https://www-awu.aleks.com/alekscgi/x/Isl.exe/10_u-IgNslkr7j8P3jH-1BjnuwZGiweF Here are the meanings of some of the symbols that appear in the statements belo means "is a subset of." C means "is a proper subset of." Z means "is not a subset of." Øis the empty set. For each statement, decide if it is true or false. . SETS Identifying true statements involving subsets and proper subsets Statement (11, 13, 15) Jxplanation Check (11, 12, 13, 14, 15} (7,9) Ø (c. d. f. g} = (d, f} (q, r, w) C (q, r, w} True False O 0 O O O Search X hparrow_forwardDetermine a possible regular expression that could define a language containing strings ab, acb, accb, adb, addb, adddb,...arrow_forwardWhich of the following sets of connectives are expressively adequate? →, ¬, A →, +, V 7,V ^, Varrow_forward
- 5. Using the following context free grammar give a parse tree for the strings. E → E +T|T T → TxF|F F → (E)\a (a) a+a+a (b) ((a))arrow_forwardMake a example of Subset and convert that into symbolic formarrow_forwardA palindrome is a string that reads the same backward as it does forward, that is, a string w, where w = wr, where wr is the reversal of the string w. Find a context-free grammar that generates the set of all palindromes over the alphabet { 0, 1 }.arrow_forward
- Construct a nondeterministic FSA that recognizes the language generated by the regular grammar G = (V, T, S, P), where V = {0, 1, S, A, B}, T = {0, 1), S is the start symbol, and P = {S → 1A, S→ 1B, S→ OC,S → 0,S→ 2, A → OB, A → 0, B → 1B, B → 0, B1, C → 04}arrow_forward2. Find two verbs or nouns each that are: (a) reflexive (b) transitive (c) symmetric 3. Which of the following is an equivalence relation? Explain. (a) lives in the same city as (b) is descendant of 4. given: R= {(1, 2), (2, 3), (4, 5), (5,6), (4,7)} (a) Determine the transifive closure R+ (b) Determine the equivalence classesarrow_forward
- Discrete Mathematics and Its Applications ( 8th I...MathISBN:9781259676512Author:Kenneth H RosenPublisher:McGraw-Hill EducationMathematics for Elementary Teachers with Activiti...MathISBN:9780134392790Author:Beckmann, SybillaPublisher:PEARSON
- Thinking Mathematically (7th Edition)MathISBN:9780134683713Author:Robert F. BlitzerPublisher:PEARSONDiscrete Mathematics With ApplicationsMathISBN:9781337694193Author:EPP, Susanna S.Publisher:Cengage Learning,Pathways To Math Literacy (looseleaf)MathISBN:9781259985607Author:David Sobecki Professor, Brian A. MercerPublisher:McGraw-Hill Education