Agent and Environment
Agent and Environment
LANGUAGES
A number of programming languages exist that are used
to build AI systems. General programming languages like
c++ and java are often used because these are the
languages with which most computer scientists have
experience.
tasty(cheese).
made_from(cheese, milk).
contains(milk,calcium).
These facts can be expressed as the following English
statements:
Cheese is tasty.
Cheese is made from milk.
Milk contains calcium.
LISP:
LISP(List Programming) is a language that more closely
resembles the imperative programming languages such
as c++ and pascal than does PROLOG. As its name
suggests, LISP is handling of lists of data. A list in LISP is
contained within brackets such as:
[A B C]
There is a list of 3 items.
A program in LISP can be treated as data. This introduces
the possibility of writing self-modifying programs in LISP.
LISP is far more complex language syntactically than
PROLOG.
AGENT AND ENVIRONMENT
An AI system is composed of an agent and its
environment. The agents act in their environment.
An agent is anything that can perceive its environment
through sensors and acts upon that environment through
effectors.