Add the following context-free grammar rules to the dog's world grammar of Section 15.2.1. Map the resulting
Question:
Add the following context-free grammar rules to the dog's world grammar of Section 15.2.1. Map the resulting grammar into transition networks. sentence ↔ noun_phrase verb_phrase prepositional_phrase prepositional_phrase ↔ preposition noun_phrase preposition ↔ with preposition ↔ to preposition ↔ on
Data from section 15.2.1
Transcribed Image Text:
Chapter 3 introduced the use of rewrite rules to specify a grammar. The rules listed below define a grammar for simple transitive sentences such as "The man likes the dog." The rules are numbered for reference. 1. 2. sentence noun_phrase verb_phrase noun phrase noun 3. 4. verb_phrase verb noun_phrase article noun 8. 9. 10. 11. 5. verb_phrase verb noun_phrase 6. article a 7. article the noun man noun dog verb likes verb bites Rules 6 through 11 have English words on the right-hand side; these rules form a dic- tionary of words that may appear in sentences. These words are the terminals of the gram- mar and define a lexicon of the language. Terms that describe higher-level linguistic concepts (sentence, noun_phrase, etc.) are called nonterminals. Nonterminals appear in this typeface. Note that terminals do not appear in the left-hand side of any rule. A legal sentence is any string of terminals that can be derived using these rules. A der- ivation begins with the nonterminal symbol sentence and produces a string of terminals through a series of substitutions defined by the rules of the grammar. A legal substitution replaces a symbol that matches the left-hand side of a rule with the symbols on the right- hand side of that rule. At intermediate stages of the derivation, the string may contain both terminals and nonterminals and is called a sentential form.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 60% (5 reviews)
The transition networks must have new paths added 1 Sentence Figure 154 will have a second ...View the full answer
Answered By
Aysha Ali
my name is ayesha ali. i have done my matriculation in science topics with a+ . then i got admission in the field of computer science and technology in punjab college, lahore. i have passed my final examination of college with a+ also. after that, i got admission in the biggest university of pakistan which is university of the punjab. i am studying business and information technology in my university. i always stand first in my class. i am very brilliant client. my experts always appreciate my work. my projects are very popular in my university because i always complete my work with extreme devotion. i have a great knowledge about all major science topics. science topics always remain my favorite topics. i am also a home expert. i teach many clients at my home ranging from pre-school level to university level. my clients always show excellent result. i am expert in writing essays, reports, speeches, researches and all type of projects. i also have a vast knowledge about business, marketing, cost accounting and finance. i am also expert in making presentations on powerpoint and microsoft word. if you need any sort of help in any topic, please dont hesitate to consult with me. i will provide you the best work at a very reasonable price. i am quality oriented and i have 5 year experience in the following field.
matriculation in science topics; inter in computer science; bachelors in business and information technology
_embed src=http://www.clocklink.com/clocks/0018-orange.swf?timezone=usa_albany& width=200 height=200 wmode=transparent type=application/x-shockwave-flash_
4.40+
11+ Reviews
14+ Question Solved
Related Book For
Artificial Intelligence Structures And Strategies For Complex Problem Solving
ISBN: 9780321545893
6th Edition
Authors: George Luger
Question Posted:
Students also viewed these Computer science questions
-
Add rules for (multiple) prepositional phrases to the English grammar of Example 3.3.6. Data from Example 3.3.6 Our final example is not from the predicate calculus but consists of a set of rewrite...
-
Modify the sentence-generator program of Case Study sothat it inputs its vocabulary from a set of text files at startup.The filenames are nouns.txt, verbs. txt, articles.txt, andprepositions.txt. (...
-
Add grammar rules to Example 3.3.6 that allow complex sentences such as, sentence sentence AND sentence. Data from Example 3.3.6 Our final example is not from the predicate calculus but consists of...
-
Maggie, Bihun, and Mee decided to go into the landscaping business. The three orally declared that they would be partners in PPL Landscapers, sharing profits and losses equally. Maggie, Bihun, Mee...
-
A 75-kg adult sits at one end of a 9.0-m-long board. His 25-kg child sits on the other end. (a) Where should the pivot be placed so that the board is balanced, ignoring the boards mass? (b) Find the...
-
For Further Research (Individual) Some companies focus exclusively on consumer markets. Other companies solely focus on business-to-business. However, there are also numerous companies across...
-
Determining an Annual Interest Rate. A payday loan company charges 4.25 percent interest for a two-week period. What is the annual interest rate? LO5-4
-
Asset Disposal Refer to Exercise 8-6. Assume that Gonzalez Company sold the asset on July 1, 2010, and received $15,000 cash and a note for an additional $15,000. Required 1. Identify and analyze the...
-
Exercise 19-08 a-b Oriole Corporation incurred the following costs while manufacturing its product. Materials used in product Depreciation on plant Property taxes on store Labor costs of...
-
Use resolution for queries in the farmer, wolf, goat, and cabbage problem of Section 15.3. Data from section 15.3 To this point we have offered representations and algorithms that support symbol...
-
Define an ATN parser for the dog's world grammar with adjectives (Exercise 7) and prepositional phrases (Exercise 8). Data from exercise 7 Extend the dogs world grammar to include adjectives in noun...
-
The year 1933 was the year with the highest return to be earned (54%) by investing in stocks. What lesson does this impart?
-
An epidemiologist plans to conduct a survey to estimate the percentage of women who give birth. How many women must be surveyed in order to be 90% confident that the estimated percentage is in error...
-
Palmerstown Company established a subsidiary in a foreign country on January 1, Year 1, by investing 8,000,000 pounds when the exchange rate was $1.00/pound. Palmerstown negotiated a bank loan of...
-
Question 1.Which of the following plans provide the greatest immediate tax benefit for the participating employee? (1) Roth IRA (2) deductible IRA (3) non-deductible IRA (4) 401(k) a. (1) and (3)...
-
Transcribed image text: 9:13 LTE Done 7 of 7 QUESTION WA AUDION QUESTION 23 = w the tons of a coin comes down heads, you win two dollars. If it comes down tails, you lose fifty cents. How much would...
-
TRUE or FALSE It is 2016 and the D.C. Circuit has issued its ruling in USTA v. FCC . The D.C. Circuit upheld the 2015 Open Internet Order so the FCC's net neutrality rule stands.True or...
-
A 1 cm diameter insulated pipe carries a steady flow of water at a velocity of 30 m/s. The temperature increases from 300 K at the inlet to 301 K at the exit due to friction. If the specific entropy...
-
A fast-food restaurant averages 150 customers per hour. The average processing time per customer is 90 seconds. a. Determine how many cash registers the restaurant should have if it wishes to...
-
How many IP addresses and how many link-layer addresses should a router have when it is connected to five links?
-
Figure 9.7 shows a system as either a host or a router. What would be the actual entity (host or router) of system A and B in each of the following cases: Figure 9.7 a. If the link is the first one...
-
Define framing and give the reason it is needed.
-
You have just been hired as a new management trainee by Earrings Unlimited, a distributor of earrings to various retail outlets located in shopping malls across the country. In the past, the company...
-
Brief Exercise 10-6 Flint Inc. purchased land, building, and equipment from Laguna Corporation for a cash payment of $327,600. The estimated fair values of the assets are land $62,400, building...
-
"faithful respresentation" is the overriding principle that should be followed in ones prepaparation of IFRS-based financial statement. what is it? explain it fully quoting IAS. how this this...
Study smarter with the SolutionInn App