just for the record: when you type weather(City,_, warm) @ 3:04 and press ENTER, SWI-Prolog only prints City = la. City = phoenix won't be printed until you press SPACE.
I got a little confused on the last part, why is that we put both days, monday and wednesday on both courses, if on monday is in one building and on wednesday is on the other? If I was for the building of cse110 on monday wouldnt it tell me both buildings?
Given that each struct has day( Monday, Wednesday ). If I ask the question, where is my CSE110 class on monday? it would appear it would give 2 answers: COOR115; COOR321.
when you type weather(City,_, warm) @ 3:04 and press ENTER, SWI-Prolog only prints City = la. City = phoenix won't be printed until you press SPACE (or semi-colon).
It is because when you have more than one outputs for a single query, it will keep asking you whether the first is correct answer, or you need all other outputs. semi-colon is for OR operator
1) do we something like else so to write(X is not warmer than Y'); 2) can't we use "coor105;coor321" in struct to represent or amoung buildings instead of creating another struct for that...
quick question regarding the last example with structs, where you put day, time, professor. shouldn't they be in capitals to declare them as variables? thank you
Ivoire Rienna Prolog is a fundamental language for programming in Artificial Intelligence. Many careers begin upwards of 70k-80k depending on your location and even more. It's a dialect of common LISP and is a very popular language still used today. Although, it may not be directly "Prolog", research LISP.
Oh I see. Thank you for answering my question and thank you for taking the time to upload these videos. Really helped me in my 'Info Infrastructure Protection' class that I am taking right now. Reallym thanks a BUNCH!
+The Simple Engineer This is not a dialect of LISP. Prolog is not related to functional language LISP because it is not functional at all. Prolog has emerged from pure mathematics in partucular from first order logic (Horn Clauses).
thank you sir....i'm very impressed your teaching style..and i also like music which is play at beginning of the lacture...first time i learn the prolog now i seems like a programmer.....thansk a lot sir...
In the struct example, I don't understand why didn't we add building(coor105, coor321) instead of the other block you added, seems I did not understand structs from this video :(
Can I see the full code somewhere? Like the white background window? Thanks for the videos, btw. My teacher recommended these as supplements for our prolog assignment.
Hello!! Thanks so much for the video, I really find your tutorial helpful in understanding the fundamentals of Prolog (I'm still a beginner). I just had a question about the structs if you don't mind? So looking at the two structs you made after you did it all made sense but how come there was a difference in formatting some of the attributes of the course? The way my brain is seeing it is to write it all as name(cse110), time(11,12), day(mon, wed), prof(holton, bryce), place(coor105) but you only wrote cse110 and coor105... Basically what I'm asking is why didn't you have the name of the course or the location of the course written in the same format as time, day or prof? Thanks again :)
Im getting false for weather(City, summer, hot), weather(City, winter, warm). for some reason. (4:30) I have written the same rules that you have. Also, for weather(City, _, warm), compiler only prints City = la.
When you query weather(City,_,warm), the first object for which the query is true is returned. I thought that the comma would give the next true statement, but for me 'r' (which is syntax for redo) returned the next true statement, phoenix
just for the record:
when you type weather(City,_, warm) @ 3:04 and press ENTER, SWI-Prolog only prints City = la. City = phoenix won't be printed until you press SPACE.
you can also type semicolon instead of SPACE
Thank you, was wondering why that doesn't work.
thanks for the comment man! it should have been explained in the video.
Thank you so much. I Spent one hour figuring what was wrong. Thank you!
we can also use tab instead of spacebar
I got a little confused on the last part, why is that we put both days, monday and wednesday on both courses, if on monday is in one building and on wednesday is on the other? If I was for the building of cse110 on monday wouldnt it tell me both buildings?
Thank you for the simple, clear and good teaching
Given that each struct has day( Monday, Wednesday ). If I ask the question, where is my CSE110 class on monday? it would appear it would give 2 answers: COOR115; COOR321.
Shouldn't the first struct exclude wed since that room number doesn't apply to it? Same with the second and mon.
Yeah, I was thinking the same thing. Great video though.
I'm thinking its done that way due to how the struct is constructed but i couldn't say it for certain.
8:16 in the summer LOL
Thank you so much for these videos
when you type weather(City,_, warm) @ 3:04 and press ENTER, SWI-Prolog only prints City = la. City = phoenix won't be printed until you press SPACE (or semi-colon).
It is because when you have more than one outputs for a single query, it will keep asking you whether the first is correct answer, or you need all other outputs. semi-colon is for OR operator
Glad I am starting this after you already have these great tutorials up!
1) do we something like else so to write(X is not warmer than Y');
2) can't we use "coor105;coor321" in struct to represent or amoung buildings instead of creating another struct for that...
quick question regarding the last example with structs, where you put day, time, professor. shouldn't they be in capitals to declare them as variables? thank you
Thanks for the videos, really helpful!!
Sooooo, what kinds of job would I get if I'm really good at prolog programing...?
Ivoire Rienna Prolog is a fundamental language for programming in Artificial Intelligence. Many careers begin upwards of 70k-80k depending on your location and even more. It's a dialect of common LISP and is a very popular language still used today. Although, it may not be directly "Prolog", research LISP.
Oh I see. Thank you for answering my question and thank you for taking the time to upload these videos. Really helped me in my 'Info Infrastructure Protection' class that I am taking right now.
Reallym thanks a BUNCH!
+The Simple Engineer This is not a dialect of LISP. Prolog is not related to functional language LISP because it is not functional at all. Prolog has emerged from pure mathematics in partucular from first order logic (Horn Clauses).
can we also stuck the building into building(105,321).
thank you sir....i'm very impressed your teaching style..and i also like music which is play at beginning of the lacture...first time i learn the prolog now i seems like a programmer.....thansk a lot sir...
In the struct example, I don't understand why didn't we add building(coor105, coor321)
instead of the other block you added, seems I did not understand structs from this video :(
I like your site so much,,, it is really good. It help me a lot at school.
Can I see the full code somewhere? Like the white background window? Thanks for the videos, btw. My teacher recommended these as supplements for our prolog assignment.
Thanks for this! Very helpful.
Sir Can You code davis putnam SAT procedure code please
Thanks my friend. It is really interesting. many thanks to you.
Hello!!
Thanks so much for the video, I really find your tutorial helpful in understanding the fundamentals of Prolog (I'm still a beginner).
I just had a question about the structs if you don't mind? So looking at the two structs you made after you did it all made sense but how come there was a difference in formatting some of the attributes of the course? The way my brain is seeing it is to write it all as name(cse110), time(11,12), day(mon, wed), prof(holton, bryce), place(coor105) but you only wrote cse110 and coor105... Basically what I'm asking is why didn't you have the name of the course or the location of the course written in the same format as time, day or prof?
Thanks again :)
subbed, great vids so far!
Omg, these videos are so interesting, would you please please upload more videos on prolog? :)
Hello, How to run a query based on the last rule/fact i.e. course?
brief a example pls .
Thnx
Thanks dude, cheers
Coor building and holton bryce? Did you go to ASU?
Thanks a lot.
Thank you guy
Hello :) I have one question :D How to program with backtracking and cut in Prolog?
How do you run it? The program with the warmer_than function?
Intro song?
Glass animals - holiest
Is Bryce suffering from some sort of entanglement?
what will be the output if we write warmer_than(la, phoenix) .... is it la??
there won't be any output, except for 'false'.
Why does it show only the name of one city though it has got two cities with Temp as warm ? screen.w3.ua/Apr18/10830915.jpg
Thanx so much ^_^
My pleasure!
whats the name of the intro song ?
What's the name of intro song ? :O
***** thanks
I need the answer! its not displayed here :(
Im getting false for weather(City, summer, hot), weather(City, winter, warm). for some reason. (4:30) I have written the same rules that you have. Also, for weather(City, _, warm), compiler only prints City = la.
same for me too. For output only la is shown.
When you query weather(City,_,warm), the first object for which the query is true is returned. I thought that the comma would give the next true statement, but for me 'r' (which is syntax for redo) returned the next true statement, phoenix
Yeah! Thank you @Ugorji.. I got it now. screen.w3.ua/Apr18/11110001.jpg
BUT its doesnt show any message like witch city is warmer that the other you just jumped it