(1) Some people like plum blossom, some people like Chrysanthemum, some people both like plum blossom and like chrysanthemum.
(2) Some people go to play basketball every afternoon.
(3) The new type of computer is fast and the storage capacity is large.
(4) Not every computer department student likes the computer creates Macintosh program.
(5) Anyone who likes to program is fond of computers.
Answer:
1. Define predicates:
People P (x): X refers to a person;
Like L (x, y): × likes y;
Where Y's individual domain refers to {plum, chrysanthemum}.
(∃x) (P (x) →l (x, plum) v L (x, chrysanthemum) v L (x, Plum) ∧l (x, Chrysanthemum))
2. Define predicates:
People P (x): X refers to a person;
Basketball B (x): X refers to playing basketball;
Afternoon A (Y): Y refers to the afternoon.
(∃x) (∀y) (A (Y) →b (x) ∧p (x))
3. Define predicates:
New computer NC (x): X refers to a new type of computer;
Fast F (x): x refers to speed;
Large L (x): X means large capacity.
(∀x) (NC (x) →f (x) ∧l (x))
4. Define predicates:
Student S (x): X is a student of computer science;
Like L (x,pragramming): X refers to the likes of programming;
Use U (x,computer): X refers to using a computer.
¬ (∀x) (S (x) →l (x,pragramming) ∧u (X,computer))
5. Define predicates:
People P (x): X refers to a person;
Like L (x, y): × likes Y.
(∀x) (P (x) ∧l (x,pragramming) →l (X,computer))
2.11, the problem of farmer, wolf, goat and cabbage is represented by predicate notation.
The farmer, the wolf, the goat, the cabbage all on the left bank of a river, now to send them all to the right bank of the river, the farmer has a boat, when the river, in addition to the farmer outside the ship can carry a wolf, goat, cabbage in one. A wolf eats a goat, and a goat eats cabbage unless the farmer is there. Plan for a safe crossing across the river. Please write out the definition of the predicate used, and give the function of each predicate and the individual domain of the variable.
Solution: To simplify the problem description, cancel the boat's state of travel in the river and describe only the state of things that exist on the right shore of the left bank. The method of direct description is as follows:
At the left AL (x): x is the individual domain of the x in the right bank, the {farmer, wolf, goat, cabbage}.
The corresponding, ¬al (x) represents x on the right bank.
Initial state: Al (Farmer), AL (ship), AL (Wolf), Al (Goat), AL (cabbage)
Target states: ¬al (Farmer), ¬al (ship), ¬al (Wolf), ¬al (goat), ¬al (cabbage)
(2) The predicate that needs to be added (the individual domain of x is {wolf, goat, cabbage})
L-r: The farmer himself rowed from the left bank to the right bank l-r (x): Farmer with X boating from left Bank to right bank
R-l: The farmer himself rowed from the right bank to the left Bank r-l (x): Farmer with x boating from right bank to left bank
AL (boat) AL (farmer) AL (Wolf) AL (goat) AL (cabbage) |
¬al (boat) ¬al (farmer) AL (Wolf) ¬ AL (goat) AL (cabbage) |
AL (boat) AL (farmer) AL (Wolf) ¬al (goat) AL (cabbage) |
¬al (ship) ¬al (Farmer) ¬al (Wolf) ¬al (Goat) AL (cabbage) |
L-r (Goat) |
R-l |
L-r (Wolf) |
R-l (Goat) |
AL (boat) AL (farmer) ¬al (Wolf) AL (goat) AL (cabbage) |
¬al (boat) ¬al (farmer) ¬al (Wolf) AL (goat) ¬ AL (cabbage) |
AL (boat) AL (farmer) ¬al (Wolf) AL (goat) ¬AL (Chinese cabbage) |
¬al (ship) ¬al (Farmer) ¬al (Wolf) ¬al (Goat) ¬al (cabbage) |
L-r (cabbage) |
R-l |
L-r (Goat) |
|
2.16, write out their semantic networks for the following propositions, respectively
(1) Each student has a computer.
(2) High teacher from March to July to the computer department students to talk about the "computer network" class.
(3) There are men, women, graduate students and undergraduates.
(4) The innovation Company at 56th Hoi An avenue, Liu Yang is the company's manager, he is 32 years old, Master's degree.
(5) The Red team and the Blue team played football and ended with a 3:2 score.
Answer:
(1) Each student has → a computer
(2) Gao teacher from → March to July to → computer department students → "Computer network" course
Male ¦-Undergraduates
(3) classes have → students-postgraduate
Female ¦
(4) 32-year-old –-Liu Yang Manager → Innovation company-→ 56th, Hai da Jie
¦
Master's Degree
(5) Red Team → football game ← Blue Team
¦ Score 3:2
End
2.17, please express the following proposition with a semantic network:
(1) Trees and grasses are plants;
(2) Both the tree and the grass have leaves and roots;
(3) Weeds are grass, and grow in water;
(4) fruit trees are trees and will result;
(5) Pear tree is a kind of fruit tree, it will knot pear.
Answer:
Pear tree → fruit trees → trees → plants ← grass ← Seagrass
↓↓¦↓
The knot of pears results in the growth of leaves and roots in water.
Ai Second Job