Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Unit 3 A

Be sure to carefully follow the syntax and semantics of each representational scheme.

For pictorial/graphical representations, you may hand draw them, scan them, and import them into your document. Or, you may use the drawing tools available in your software app.

For quantifiers in predicate logic, feel free to use A and E if you are unable to produce the specialized symbols (∀ and ∃)

For help with logic, review the handout online. There are many other resources available on predicate logic, for example: http://www.cs.odu.edu/~toida/nerzic/content/logic/pred_logic/intr_to_pred_logic.html

1) Represent the following facts as a set of frames:

"The aorta is a particular kind of artery which has a diameter of 2.5 cm.
An artery is a kind of blood vessel.
An artery always has a muscular wall, and generally has a diameter of 0.4 cm.
A vein is a kind of blood vessel, but has a fibrous wall.
Blood vessels all have tubular form and contain blood."

2) Represent the following facts in the language of predicate logic:

Every apple is either green or yellow.
No apple is blue.
If an apple is green then it is tasty.
Every man likes a tasty apple.

3) "Herbert is a small hippopotamus who lives in Edinburgh zoo. Like all hippopotamuses he eats grass and likes swimming."

Represent the above:
• as a semantic network;
• in predicate logic
For quantifiers, feel free to use "A" and "E" if you are unable to produce the specialized symbols

Unit 3 B

1. Develop a simple set of rules for diagnosing respiratory symptom diseases given patient symptoms, using the following knowledge of typical symptoms. Describe how a simple backward chaining interpreter could be used to go through the possible diagnoses, asking the user questions about their symptoms. If you have an expert system shell available, try implementing a simple diagnosis system based on the above.

o Influenza: Symptoms include a persistent dry cough and a feeling of general malaise.

o Hayfever: Symptoms include a runny nose and sneezing. The patient will show a positive reaction to allergens, such as dust or pollen.

o Laryngitis: Symptoms include a fever, a dry cough, and a feeling of general malaise. A "laryngoscopy" will reveal that the person has an inflamed larynx.

o Asthma: Symptoms include breathlessness and wheezing. If it is triggered by an allergen, such as dust or pollen, it is likely to be "extrinsic asthma". "Intrinsic asthma" tends to be triggered by exercise, smoke or a respiratory infection.

2. What do you think are the main problems and limitations of the rule-set developed for the question above? What additional knowledge might be useful to deal with more complex or subtle diagnoses?

Unit 3 E

In exercise 1, create the parse tree for each sentence. Sentences which can be recognized will have a complete parse tree while unrecognized sentences will have incomplete parse trees. Be sure to indicate which sentences are recognized.

In exercise 2, list the full DCG notation for the extended grammar. Test your grammar by using Amzi prolog.

Amzi Prolog allows DCG to be input directly. Therefore, you can enter your grammar exactly as you would create it for problem #2, page 123. For example, you can enter: sentence --> np(N), vp(N). etc.

The only "trick" is how to specify the sentence to check for proper grammar. Here's how:
?- sentence([word1,word2,word3,etc],[]).

note the use of square brackets within the parentheses, each word of the sentence is entered between commas, and the final argument [] (open bracket, close bracket). Thus to check whether "All rabbits eat carrots" is syntactically correct, enter
?- sentence([all,rabbits,eat,carrots],[]).

Examples:

?- sentence([the,rabbit,eats,the,carrot],[]).
yes
?- sentence([rabbit,the,carrot,eats,the],[]).
no

Submit the .pro file as text copied within the document you submit here. Please upload one document with all exercise answers along with your name and ID#

The following is a grammar of a subset of English in DCG notation:

• sentence --> np(N), vp(N).
• np(N) -->det, noun(N).
• vp(N) --> verb(N), np(_).
• noun(s) --> [carrot].
• noun(s) --> [rabbit].
• noun(p) --> [rabbits].
• verb(s) --> [eats].
• det --> [the].

1. Which of the following sentences can be recognized with this Grammar?

o The carrot eats the carrot.
o The rabbits eats the carrot.
o The rabbit eats carrots.
For each sentence which is recognized by the grammar, show its parse tree.

2. Extend the grammar to handle sentences like the following. "All" and "some" should be treated as kinds of determiner (det).

o All rabbits eat carrots.
o Some rabbits eat the carrot.
o The rabbit eats every carrot.

The grammar should NOT allow sentences that are grammatically incorrect because a plural noun (e.g. carrots) is used with a determiner that can only be used with singular nouns (e.g., a, every) or vice versa, e.g.,

o All rabbit eat the carrot.
o A rabbits eat the carrot
o Every rabbits eat the carrots.

Try out your grammar using Prolog.

Unit 4 B

Apply the difference operator mask on page 129 to the image on page 128. Notes: use a threshold of 2; use the absolute value of the difference operation; the resulting matrix will be 7x7 rather than 8x8 (as the original is).

List the resulting matrix and show your work in computing it. This is a difficult assignment; don't panic, but work carefully and deliberately.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91954797

Have any Question?


Related Questions in Computer Engineering

Explain the differences between working in the web based

Explain the differences between working in the web based version of Outlook in Office 365 to the desktop application version of Outlook.

In this project you will format a document you will select

In this project, you will format a document. You will select and format text and then use the Find and Replace command to correct errors in the document. You will convert text to a numbered list as well as a bulleted lis ...

Short answer1 describe best case average case and worst

SHORT ANSWER 1. Describe best case, average case, and worst case in terms of Big O Notation. When implementing algorithms or data structures which two "Big O cases" are most important to consider and why? 2. Compare and ...

Question 1 the facilities coordinator is a critical role

Question: 1. The facilities coordinator is a critical role. Put yourself in the position of the facilities coordinator. 2. Determine and list the qualities you have that would make you an excellent candidate for this pos ...

One of the basic motivations behind the minimum spanning

One of the basic motivations behind the Minimum Spanning Tree Problem is the goal of designing a spanning network for a set of nodes with minimum  total  cost. Here we explore another type of objective: designing a spann ...

1 what would be the purpose for a user to protect a

1. What would be the purpose for a user to protect a file from "read" or "write" access by other users? 2. Is there a reason why it would be safer for administrators to use two different accounts when working with a comp ...

Ellen is an anthropologist who has been working at olduvai

Ellen is an anthropologist who has been working at Olduvai Gorge in Tanzania for the past six months. She has been conducting research on the Internet. She finds a Web site with an article that proposes a revolutionary t ...

Social sitessocial media is a common marketing tool and

Social Sites Social media is a common marketing tool and most site builders offer integration with major social media sites. Discuss at least two examples of what you would promote on social media from a web site that yo ...

Can someone help me with the following java question

Can someone help me with the following java question please (a) Implement a recursive search function in Java int terSearch(int arr[], int l, int r, int x) that returns location of x in a given sorted array arr[l...r] is ...

Lets do some r suppose you have the following situation you

Let's do some R.... Suppose you have the following situation: You have a large jar of beans, 43% black, 57% white. You take a sample of 14 beans. a) Use R to figure out the probability for every single possible outcome. ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As