Prolog Tutorial

[ad_1]
Get the Cheat Sheet Here :

Support me on Patreon :

Installation 01:08
Introduction 05:40
Facts 09:55
Rules 12:00
Variables 15:30
If Statement 23:54
Complex Terms / Structures 25:56
Format 28:38
Comparison 31:13
Trace 33:36
Recursion 36:16
Math 39:10
Reading / Writing Console 44:08
File I/O 46:10
Looping 49:29
Changing the Database 53:31
Lists 56:51
Strings 1:00:47


Posted

in

by

Tags:

Comments

48 responses to “Prolog Tutorial”

  1. ludia Avatar

    hateeee prolog, but AMAZING help with this video for the exams!!!! thank youuu

  2. Jonathan Levi Avatar

    http://cygwin.com/install.html
    Here is the URL for the website he mentioned because he forgot to put it in the description. (:

  3. Ahmad Yahya Avatar

    how to open the db.pl and the prolog terminal ? 5:45

  4. Mrctyree3 Avatar

    It's basically another form of database management. Thanks for the video

  5. Mrctyree3 Avatar

    For instance the Halt. command just closes the terminal rather than logging out of prolog to the terminal. Date difference?

  6. Mrctyree3 Avatar

    uncaught exception: error(existence_error(procedure,loves/2),top_level/0) is all I get after trying the first prolog commands. I'm guessing most of this is because your video is like 2014 and it's 2017. IDK Prolog looks cool playing with several languages for AI actually something new but related to AI.

  7. John Luke Lusty Avatar

    Derek Banas,

    I tried slogging through the "Art of Prolog" but was recommended your video by a friend of mine. You not only effectively concatenated a detailed reading of the first few chapters, but improved upon their clarity. I feel like I can return to the later chapters of the book now with an improved understanding.

    Thanks again.

  8. Abhothra Avatar

    Hi Derek, quick question : Why didn't you use SWI-Prolog on windows ? It's a neat little prolog thingymajig.

  9. Jay B Avatar

    understood everything until 4:33 S.O.S!!!!!!!!!!!!!!!!!!!!!!!

  10. Jaystings Avatar

    I WANNA TALK TO MY PHONE, AND HAVE IT RESPOND FOR ONCE

  11. beA GentleMan Avatar

    Change the title to "GNU Prolog Tutorial".

  12. Khallighanm Avatar

    Thanks. This was very helpful. 🙂

  13. Alexander Ivanov Avatar

    One of the best tutorials out there. The examples are just the thing one needs to get familiar with Prolog. Thank you!!!

  14. Lijeshet Anteneh Avatar

    I have a prolog problem I whic I thought I couldn't correctly solve, Can u help please ?

  15. Lijeshet Anteneh Avatar

    Thank you Derek, This is a lot.

  16. taylor dudek Avatar

    at 4:46 the yellow dot is what it looks like how do i add that into the script? ive read online that it is f2?

  17. Stephen Enzor Avatar

    Very helpful — thanks a lot.

  18. ubaid ahmed Awan Avatar

    sir i have installed prolog successfully on my mac… But a error in prolog code :- dynamic yes/1,no/1. in running

  19. webstime1 Avatar

    How about using CodeBlocks?

  20. Josh Fong Avatar

    very helpful, i learned more in this video than the whole month of college course. Keep it up!

  21. Javi Ivaj Avatar

    Thanks you so much, this video helps me a lot for studying for a Uni test

  22. Adam S Avatar

    You created a file Helloworld.h, where did Helloworld.cpp come from?

  23. Gunjan Sharma Avatar

    Certainly, the best prolog tutorial by far.

  24. FroschManager Avatar

    Sir, you are a hero.

  25. Skeetneet Avatar

    I downloaded Cygwin but it doesn't even look like what's on the screen? What did I do wrong?

  26. nojh,jnljkvg hgdk6uv Avatar

    I am organizingm y chicken farm so nicely. Thank u

  27. Kuro Redfox Avatar

    Awesome video, I have learned a lot!

  28. dragonqwan 10 Avatar

    Better than college! Thank you!

  29. Chen Li Avatar

    I cannot express my gratitude enough for the existing of this video!

  30. Brett L Avatar

    When I type in, "vertical(line(point(5,10), X))." I get "X = point(5, _3638).", or some other 4 digit number after the underscore. Do you know why that number could be showing up after the underscore?

  31. Zod Avatar

    After years of using conventional programming languages this feels so unintuitive it hurts

  32. Endaron ElPrime Avatar

    Hey man great tutorial! I spottet a minor mistake at 51:30 when you count up you made a little mistake by keeping Z is Y + Low, with any Low number but 0 it will not funktion properly:

    count_up(5,10). would be

    ?- count_up(5,10).
    10
    true ;
    11
    true ;
    12
    true ;
    13
    true ;
    14
    true ;
    15
    true.

    ?-

  33. Adrian Armaselu Avatar

    Prolog is not entirely useless outside AI. You can write less enterprise level code in prolog, which is mathematically very readable(as compared to the dumb nonsense most developers write in other languages), than an imperative language like java or python. The paradox is that writing business code creates incentives for dumb programmers who do not have to be paid a lot in order to convert business requirements; whereas, knowing how to code in prolog and adapt it to different needs requires really advanced mental power for abstraction, something most programmers do not have and most businesses do not want, since it is expensive.

  34. Gherharth Schveighoffer Avatar

    Hello,
    Is there a shortcut or comand (such as cls/clear) to clear the window ? By the way, I love your tutorials.

  35. Aiden Luke Avatar

    I had to attend lab tutorials in my college for the whole semester but not learning anything. Here, it takes me 10 minutes for everything to start making sense.

  36. ImaginedTrain8 Avatar

    Owner@Owner ~
    $ ls
    helloworld.cpp helloworld.h

    Owner@Owner ~
    $ g++ helloworld.cpp -o helloworld
    In file included from /usr/include/wchar.h:6:0,
    from /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/c++/cwchar:44,
    from /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/c++/bits/posty pes.h:40,
    from /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/c++/iosfwd:40,
    from /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/c++/ios:38,
    from /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/c++/ostream:3 ,
    from /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/c++/iostream:3 9,
    from helloworld.cpp:1:
    /usr/include/sys/reent.h:14:20: fatal error: stddef.h: No such file or directory
    compilation terminated.

    Owner@Owner ~
    $
    anyone know a fix?

  37. micky3432 Avatar

    worst language ever, but i have to pass my exam so thanks for the tutorial bud

  38. Gökhan Atılgan Avatar

    Mr. Banas thank you but, I'm not fallow your words. You are speaking incomprehensibly. I do not fully understand your words. If you speak slowly, the main language will be understood by non-English speakers.

  39. Fady Serhan Avatar

    it tells me download incomplete??!!! whyy?? when trying to install cygwin stuff!!

  40. Jam Ward Avatar

    Thank you for taking your time to make this video. this was the perfect video to refresh what I had learnt a few years ago!

  41. olman mora Avatar

    I needed no more for my course prolog lecture, This video really rocks!

  42. NerdieStuff Anime Avatar

    Hi when I try to run in the terminal it says file or directory cannot be found

  43. Amar Vashishth Avatar

    20:45
    Bob is not the grandparent
    it should be albert, alice

    get_grandparent :-
    parent(X,carl),
    parent(X,charlie),
    parent(Y,X),
    format('~w ~s grandparent~n', [Y, "is the"]).

  44. Andy Valenti Avatar

    I think the instructor is mistaken in explaining the implication A :- B. It should be If B then A, but the instructor explains it the other way around. The procedural languages we are all familiar with (C++, etc.) work this way but I do not believe this is how Prolog works!

  45. Julian Ullrich Avatar

    I got a feeling you aren't using prolog as it's supposed to be, but you try to use it like a normal programming language lol..

Leave a Reply

Your email address will not be published. Required fields are marked *