24.11.2014 Views

human judgment in diagnosing problem behavior in horses using

human judgment in diagnosing problem behavior in horses using

human judgment in diagnosing problem behavior in horses using

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• A powerful search and backtrack<strong>in</strong>g <strong>in</strong>ference mechanism,<br />

• A powerful built-<strong>in</strong> ‘pattern match<strong>in</strong>g’ mechanism,<br />

• A simple but sophisticated data structure with the ability to manipulate the data<br />

structure.<br />

There is also a uniformity of Program and Data. In Prolog the data and the<br />

program are <strong>in</strong> fact just two different ways of look<strong>in</strong>g at the Prolog objects. Items can be<br />

freely created and deleted <strong>in</strong> a uniform database. Thus as there is no dist<strong>in</strong>ction between<br />

program and data, Prolog has the ability to change its program whilst that program is<br />

runn<strong>in</strong>g. There are no po<strong>in</strong>ters, assignments, or “go_to” statements <strong>in</strong> Prolog. Recursion<br />

is also a very natural programm<strong>in</strong>g technique <strong>in</strong> Prolog.<br />

Another important aspect of Prolog is that it is related to a logic called predicate<br />

calculus. This gives Prolog a number of dist<strong>in</strong>ct properties that it <strong>in</strong>herits from logic and<br />

gives it better foundations than other conventional programm<strong>in</strong>g languages. One of the<br />

properties is that it is a declarative language. This allows one to develop a program by<br />

concentrat<strong>in</strong>g on “what” needs to be done <strong>in</strong>stead of “how” it is done. It can also allow a<br />

program to be understood without the need to follow through its dynamic execution.<br />

However, the true power of Prolog comes not from any s<strong>in</strong>gle feature, but from the result<br />

of hav<strong>in</strong>g these features comb<strong>in</strong>ed.<br />

40

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!