Solved

ProLog Vs. LISP

Posted on 2003-03-02
Medium Priority
2,748 Views
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
Question by:thecuriousboy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 101

Accepted Solution

mlmcc earned 100 total points
ID: 8053048
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

LVL 4

Expert Comment

ID: 8054627
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

LVL 1

Expert Comment

ID: 8055140
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

Expert Comment

ID: 9474592
thecuriousboy:
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

LVL 101

Expert Comment

ID: 9482100
Not enough for a good split.  I think I provided sufficient information

mlmcc
0

Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses
Course of the Month15 days, 2 hours left to enroll