Professional Documents
Culture Documents
Assignment 1 Intro To Ai
Assignment 1 Intro To Ai
Assignment 1 Intro To Ai
ACANTHUS
AHMAD ABBAS BIN ABU DZARR [301909.], HARRIZ BIN AHMAD FAUZI [301699] and
LEYSHHANN KARTHIGESAN A/L [302426]
School of Computing, College of Arts and Sciences
Universiti Utara Malaysia
1.0 INTRODUCTION
Acanthus is a plant variety that relies on Water, Soil, and Air for its growth. It comprises
several species, including Mollis, Spinosus, and Montanus. Acanthus Mollis, originating from
the Mediterranean and known as Bear’s Breeches, exhibits either white or pink colors.
Among its variations, Tasmanian Angel requires moderate maintenance, showcases vibrant
leaves, and is resistant to deer. Another variant, Rue Ledan, is low-maintenance, displaying
a combination of white and green hues while being able to withstand butterflies. Acanthus
Spinosus, native to Europe and the Mediterranean and also recognized as Spiny Bear’s
Breeches, features purple and white tones. Its variants, Summer Beauty and Holland Day,
differ in their maintenance needs and colors. Summer Beauty, moderately maintained,
flaunts colorful leaves and is resistant to rabbits. In contrast, Holland Day, a low-
maintenance plant, presents itself with black and green hues.
Acanthus Montanus, originating from West Central Africa, presents itself with dark green
and whitish to pale purple colors. This species includes variations like Morning Candle and
Mountain Spike Thorn, each distinct in maintenance requirements and appearance. Morning
Candle, requiring low maintenance, demonstrates tolerance towards butterflies and displays
a combination of white and purple shades. Mountain Spike Thorn exhibits a color palette of
green with whitish tones and features slender, lance-shaped, and pointed bracts.
STIN1013 Introduction to Artificial Intelligence_A231 Assignment 1 Report
Specie s of Specie s of
Specie s of
Mounta in
Morning Spike Thorn
Low
Candle
Ta sma nia n
ACANTHUS
Angel Night
Candle Gree n, whitis h
gre en
Specie s of
Va rient of
Spiny be a r·s
bre eche s
Va rient of Be a r·s Bre e che s
Va rient of Holla nd
Night
Rules
Facts
Montanus
F1: colour (lake_ spike_ thorn, green, whitish_ green)
F2: shape (lake_spike_thorn, threadlike, bracts_small, lance_shaped, pointed.)
Mollis
F11: color of leaf (tasmanian_devil, colorful)
F12: tolerate (tasmanian_devil, deer)
F13: maintenance (tasmanian_devil, medium)
F14:color(rue_sedan ,white,green)
F15:maintenance(rue_sedan, low)
F16:tolerate(rue_sedan,butterfly)
STIN1013 Introduction to Artificial Intelligence_A231 Assignment 1 Report
Forward Chaining
CYCLE 1
R1: isa (X, acanthus) needs(X,water) needs(X,soil) needs(X,air) -skip
R2: isa (X,mollis) isa (X,montanus) isa (X,spinosus) isa(X,acanthus)-skip
R3: isa (X,morning candle) isa (X, mountain spike thorn )isa(X,montanus)-skip
R8: color (winter_beauty, colorful) maintenance (winter_beauty, medium) tolerance (winter_beauty, rabbit)
isa (winter_beauty, summer_beauty)
(rue_sedan, rue_ledan)
F14: color (rue_sedan, white,green) ---- X/rue_sedan
F15: maintenance (rue_sedan, low) ----X/rue_sedan
F16: tolerance (rue_sedan, butterfly) ----X/rue_sedan
Cycle 2
R6: isa (winter_beauty, summer beauty) isa (holland_night, holland day) isa(X,spinosus)
Cycle 3
R2: isa (tasmanian_devil, mollis) isa (night_candle ,montanus) isa (winter_beauty, spinosus) isa(mollis,
montanus, acanthus)
Cycle 4
F27: isa (mollis, acanthus) needs(mollis, water) needs (mollis, soil) needs(mollis, air) R1 … FIRED
STIN1013 Introduction to Artificial Intelligence_A231 Assignment 1 Report
PROLOG PROGRAM:
STIN1013 Introduction to Artificial Intelligence_A231 Assignment 1 Report
OUTPUT: