Académique Documents
Professionnel Documents
Culture Documents
RIZA SASONGKO
MUHAMMAD NUR S
G.231.12.0156
G.231.12.0196
G.231.12.0248
A. Diketahui :
R1: IF (Shape = long) and (Color= green or yellow) THEN Fruit = banana
R2: IF (Shape = round or oblong) and (Diameter > 4 inches) THEN Fruitclass=vine
R3: IF (Shape = round or oblong) and (Diameter < 4 inches) THEN Fruitclass=tree
R4: IF Seedcount = 1 THEN Seedclass=stonefruit
R5: IF Seedcount>1 THEN Seedclass=multiple
R6: IF (FruitClass= vine) and (Color= green) THEN Fruit= watermelon
R7: IF (FruitClass= vine) and (Surface= rough) and (Color= tan) THEN Fruit=honeydew
R8: IF (FruitClass= vine) and (Surface= smooth) and (Color= yellow) THEN Fruit= cantaloupe
R9: IF (FruitClass= tree) and (Color= orange) and (Seedclass= stonefruit) THEN Fruit= apricot
R10: IF (FruitClass= tree) and (Color= orange) and (Seeedclass= multiple) THEN Fruit
=orange
R11: IF (FruitClass= tree) and (Color= red or yellow or green) and (Seedclass=multiple) THEN
Fruit= apple
G.231.12.0156
G.231.12.0196
G.231.12.0248
a.
Iterasi 1
Fakta shape =round and Diameter =3 inch memicu rule ke-3
IF(Shape=round or oblong) and (Diameter < 4 inches) THEN FruitClass=tree
Sehinggga memori kerja berubah menjadi:
Fakta:
Diameter = 3 inch
Shape = round
SeedCount > 1
Color = yellow
Surface = smooth
G.231.12.0156
G.231.12.0196
G.231.12.0248
Fakta Baru:
Fruit class=tree
G.231.12.0156
G.231.12.0196
G.231.12.0248
ke-11
G.231.12.0156
G.231.12.0196
G.231.12.0248
b.
Fruit=apple?
R11: IF FruitClass= tree and Color= red or yellow orgreen and Seedclass=multiple
THEN Fruit= apple
FruitClass= tree?
R2: IF Shape = round or oblong and Diameter < 4 inches
THEN Fruitclass=tree
Shape = round or oblong ? YES (Dari fakta)
Diameter > 4 inches? YES
YES
Color= red or yellow or green? YES
G.231.12.0156
G.231.12.0196
G.231.12.0248
Seedclass=multiple YES
Jadi dengan fakta yang ada, maka dengan backward chaining terbukti bahwa fruit apple