Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2794
  • Last Modified:

ProLog Vs. LISP

Hello experts, we know that prolog and lisp both are used AI based programs. Please tell me how do they differ?
what are the application areas of each? which one is easier to learn and which one is more popular.
thanks.
TheCuriousBoy.
0
thecuriousboy
Asked:
thecuriousboy
1 Solution
 
mlmccCommented:
prolog is based on known facts and relationships.

For instance if I have pairs that show child-parent relationship

Facts
All children's parents are/were married
Each child is uniquely named
(Tom, Frank) - Frank is Tom's dad
(Tom, Joan) - Joan is Tom's mom

I can then infer that Frank & Joan are parents and they are/were married.

From a list of child-parent relationship I can find out who is married to whom.

Look at
http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/pt_framer.html
http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/pt_framer.html

Lisp uses lists of information to determine things.
Lisp to most stands for Lots of Idiotic Single Parentheses.

Look at
http://www.apl.jhu.edu/~hall/lisp.html
http://grimpeur.tamu.edu/~colin/lp/


There would probably be a big debate as to which is easier to learn.  

I learned Lisp many years ago.  The biggest problem I found was its lack of variables and thinking recursively.  Once you get used to the fact that all you have is functions and no variables as other labguages use them, it is a very interesting language to use.

I have played with Prolog a little but have never learned it or used it seriously.

There would also be a debate as to which is more in use.  Each side would feel its language is better.

mlmcc
0
 
n_fortynineCommented:
Learn both, LISP and Prolog are quite different although you might find conceptional commonalities between them. I like LISP better, but my AI professor worships Prolog so...
=)
0
 
ksokolowskiCommented:
The very basic difference between the two is that Prolog is based on logical representation of data, where as LISP uses List representations of data.. They are very different languages to be sure... I'll write more in the AM when I am not so tired :)
0
 
CleanupPingCommented:
thecuriousboy:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
mlmccCommented:
Not enough for a good split.  I think I provided sufficient information

mlmcc
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now