Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Learning Prolog, need help!

Name: Anonymous 2008-08-18 8:43

Ok guys, I'm essentially doing an AI programming class and its centered around prolog. Now I have programmed in over a dozen different languages and had very little trouble picking them up but prolog is a major logic headfuck. I knew this was going to be hard and be a different programming language compared to the other more traditional mediums but my bonehead of a professor (genius as he is) is fucking hopeless when it comes to explaining to lay, non-math oriented folks like me how it really works, I flunked math in HS, and don't have the patience to fuck around learning all these new fang-dangled math terms that he decided to throw in to make things easier to understand for all the cs/math freaks.

tldr; any info in the anon-cloud on how to explain prolog so a lay person could understand and start programming with it? tutes, pretty pictures even a reasonable explanation is fine by me.

Name: Anonymous 2008-08-18 8:53

Prolog is a set of if/then statements.

Name: Anonymous 2008-08-18 9:06

Read SICP, section 4.4.

Name: Anonymous 2008-08-18 9:11

if you're not smart enough to be good at math then why are you pursuing an AI class

Name: Anonymous 2008-08-18 9:12

Name: Anonymous 2008-08-18 9:20

I typed some stuff in this space but I'm not sure it would be useful to you. Tell us what you know about Prolog.

Name: Anonymous 2008-08-18 9:37

Step 1. Understand syntax
Step 2. Understand backtracking ( http://en.wikipedia.org/wiki/Prolog#Evaluation )
Step 3. Satori

Name: Anonymous 2008-08-18 10:06

>>7
*Step 2a. Understand how to properly use the cut ("!") operator.

Name: Anonymous 2008-08-18 19:31

>>8
I.E. Dont, unless you have to, which you most probably mean never.

Name: Anonymous 2008-08-18 19:43

>>9
You need cuts to do anything non-trivial (like conditionals).

Name: Anonymous 2008-08-18 20:04

Prolog
Prolog
/prog/

Name: Anonymous 2008-08-18 22:01

>>11
you forgot your [spoiler] tags.

Name: Anonymous 2008-08-20 12:44

I had learned enough Prolog to solve a simple problem (similar to SEND MORE MONEY, but not quite) in 30 minutes or so.
What exactly you can't understand?

Name: Anonymous 2013-04-22 22:20

aye

Don't change these.
Name: Email:
Entire Thread Thread List