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: 66% (3 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...
-
Bei Yong is uncertain about the control features of a bank account. Explain the control benefits of (a) a check and (b) a bank statement.
-
Pick an industry and a product or service. Engage in a creative-thinking process, as outlined in Chapter 11, to generate an improved offering. Do the same to create an entirely new offering that uses...
-
Wells Technical Institute (WTI), a school owned by Tristana Wells, provides training to individuals who pay tuition directly to the school. WTI also offers training to groups in off-site locations....
-
Prof. Dimitriou developed the following code to evaluate the expressions A(), B() and CO) but it takes too long to compute even for small values of n. A(int n) if (n <0) return 0; if (n
-
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...
-
Quantity A Quantity B x 70 Quantity A is greater. Quantity B is greater. The two quantities are equal. The relationship cannot be determined from the...
-
A Li-ion battery system presents a lifetime of 12 000 cycles of complete charge and discharge. When a cycle is not completely discharging the battery, the cycle is weighted by the depth of discharge...
-
If you were conducting a survey for conducting a new ice cream rollout flavor: Create 10 sample questions that will be used in your survey, considering common issues in survey design. Explain your...
-
Which among the following risks can be mitigated with the use of content filtering and data-loss prevention tools
-
If the Jordan dinar depreciates relative to foreign currencies, then: a . . All of the aboveO b . . Net exports of the Jordan will increase c . . Jordan goods will look cheaper to foreign buyers d ....
-
Aisyah receives RM 9,000 from her farther. She invests the money in a bank that offers interest of 6% compounded quarterly. The accumulated amount at the end of 3 years will be enough to pay for the...
-
Briefly summarize the accounting for an investment in available-for-sale securities.
-
Find the intercepts and then graph the line. (a) 2x - 3y = 6 (b) 10 - 5x = 2y
-
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.
-
Answer each question in at least one paragraph, where each paragraph would have at least more than 10 lines and provide justification to your answers with some references and some articles. Can a...
-
1. Use the mmls command to display the partition table of the DD image provided. 2. What is the starting sector number for the NTFS partitions? 3. Display the partition contents of both NTFS...
-
Answer the questions A-D AND Create Please list the formulas used in each box. "Food Booth Optimization Model": The optimization model for Julia's problem. You can do the template tab first, then...
Study smarter with the SolutionInn App