Re: How to convert a problem to prolog code
- From: "phal" <betterdie@xxxxxxxxx>
- Date: 10 Oct 2005 18:48:16 -0700
Dearl MoNa
I not very clear about prolog, but I have join a Logic and data
abstraction class, it is mainly about how to write a reasonable fact.
if X a human, then X will die one day.
H=>D
Bob is a human, then Bob will die one day.
human(bob),
die(X):-human(X).
-----
I think this is how to translate the problem into prolog according to
the logic way.
Phal
.
- Follow-Ups:
- Re: How to convert a problem to prolog code
- From: ~ MoNa ~
- Re: How to convert a problem to prolog code
- References:
- How to convert a problem to prolog code
- From: ~ MoNa ~
- How to convert a problem to prolog code
- Prev by Date: Error choice from user
- Next by Date: Re: Error choice from user
- Previous by thread: How to convert a problem to prolog code
- Next by thread: Re: How to convert a problem to prolog code
- Index(es):
Relevant Pages
|
|