The Prolog tutorial proved to be exceptionally helpful in my journey to grasp the intricacies of this programming language. From demystifying its fundamental concepts to providing practical examples, the tutorial was a comprehensive guide that significantly enhanced my understanding of Prolog. The tutorial's structured approach allowed me to systematically delve into Prolog's syntax and semantics, breaking down complex ideas into manageable segments. The inclusion of real-world examples and hands-on exercises was particularly beneficial, as it enabled me to apply theoretical knowledge to practical scenarios. One notable aspect of the tutorial was its clarity in explaining challenging concepts, making it accessible even for individuals new to logic programming. The step-by-step explanations, coupled with illustrative examples, greatly facilitated my learning process. Furthermore, the tutorial's emphasis on problem-solving and logical reasoning skills added a valuable dimension to my Prolog education. The exercises not only solidified my understanding of the language but also honed my ability to think critically and construct solutions in a logical manner. In conclusion, the Prolog tutorial was a standout resource that played a pivotal role in my successful journey to mastering Prolog. Its clarity, practicality, and emphasis on problem-solving make it an indispensable tool for anyone looking to delve into the world of logic programming. I am genuinely grateful for the invaluable insights and skills I gained through this tutorial.
In the previous video you told the difference between NO and FALSE , FALSE is something releated to the universal fact and not with the facts mentioned in our KnowledgeBase.but here is quite different.plzzz clarify
hey, In the previous video you said if you pass wrong parameters like father(mary,jane) you would get no not false then why the prolog output is false in this case?
I mistakenly said no...... What happens is, whatever you pass, all those things are matched against declared facts and run (if possible) on declared rules. If your query does not match any rule standard or any fact then it will assume that whatever is queried is false. So, it will be no only when you have declared somewhere as output for some case to be no. If you haven't declared no anywhere then result will be false. I hope this makes your doubt clear :)
@@techdose4u father(mary,jane) , but for this query i am getting "no". why? but #yug Rawal who has asked about this question has got "false". Why variation in output?
How can I define the following two relations ? (a) sister(X, Y) which holds if X is the sister of Y. (b) grandfather(X, Y) which holds if X is the grandfather of Y
ube :- write('Write a number: '), read(Number), process(Number). process(stop) :- !. process(Number) :- C is Number * Number * Number, write('Cube of '),write(Number),write(': '),write(C),nl, cube
move(1,X,Y,_) :- write('Move top disk from '), write(X), write(' to '), write(Y), nl. move(N,X,Y,Z):- N>1, M is N-1, move(M,X,Z,Y), move(1,X,Y,_), move(M,Z,Y,X).
I tried same but at first line only error is there operator expected............. I write valuable(gold). then I complied it but it shows syntax error as Operator Expected
water jug (X, Y) :-X>4, Y4, Y>3, write ('Both water jugs overflowed.), nl. water jug (X, Y) - (X=:=0, Y=:=0,nl, write ('41:0 & 31:3 (Action: Fill 31 jug.)'), YY is 3, water jug (X, Y)); (X=:=0, Y==0,nl, write ('41:4 & 3L:0 (Action: Fill 41 jug.)),xx is 4, water jug (XX,Y)); (X=:=2, Y=:=0,nl, write ('41:231:0 (Action: Goal State Reached....)')); (X=:=4, Y=:=0,nl, write('41:131:3 (Action: Pour water from 41 to 31 jug.)),XX is X-3, YY is 3, water jug (XX, Y)); (x-:-0, Y-:-3,nl, write('41:3 & 31:0 (Action: Pour water from 31 jug to 41 jug.)), XX is 3, YY is 0, water jug (XX, YY)); (X-:-1, Y:-3, nl, write('41:1 & 31:0 (Action: Empty 31 jug.)'), YY is 0, water jug (X, YY)); (x-:-3, y=:=0,nl, write ('41:331:3 (Action: Fill 31 jug.)), YY is 3, water jug (X, YY)); (X=:=3, Y=:=3,nl, write('41:431:2 (Action: Pour water from 31 jug to 4L jug until 4L jug is full.)'),XX is x+1, YY is Y-1, water jug (XX, YY)); (X=:=1, Y=:=0, nl, write ('4L:0 & 31:1 (Action: Pour water from 4L to 3L jug.)'), XX is Y, YY is X, water jug (XX, YY)); (X=:=0,Y=:=1,nl, write('41:4 & 31:1 (Action: Fill 41 jug.)'),XX is 4, water jug (XX, Y)); (X=:=4, Y=:=1,nl, write ('41:2 & 31:3 (Action: Pour water from 4L jug to 31 jug until 31 jug is full.)'),XX is X-2, YV is Y42, water jug (XX, YY)); (X=:=2, Y=:=3, nl, write ('4L:2 & 3L:0 (Action: Empty 31 jug.)), YY is 0, water jug (X, Y)); (X=:=4, Y:-2, nl, write ('41:06 3L:2 (Action: Empty 4L jug.)'), xXx is 0, water jug (XX, Y)); (X=:=0, Y=:=2, nl, write('41:231:0 (Action: Pour water from 3L jug to 4L jug.)),XX is Y, YY is X, water jug (XX, YY)).
🟣 JOIN our 𝐋𝐈𝐕𝐄 𝐢𝐧𝐭𝐞𝐫𝐯𝐢𝐞𝐰 𝐭𝐫𝐚𝐢𝐧𝐢𝐧𝐠 𝐩𝐫𝐨𝐠𝐫𝐚𝐦 through whatsapp query: +91 8918633037
🔴 𝐂𝐡𝐞𝐜𝐤𝐨𝐮𝐭 𝐚𝐥𝐥 𝐨𝐮𝐫 𝐂𝐨𝐮𝐫𝐬𝐞𝐬: techdose.co.in/
The Prolog tutorial proved to be exceptionally helpful in my journey to grasp the intricacies of this programming language. From demystifying its fundamental concepts to providing practical examples, the tutorial was a comprehensive guide that significantly enhanced my understanding of Prolog.
The tutorial's structured approach allowed me to systematically delve into Prolog's syntax and semantics, breaking down complex ideas into manageable segments. The inclusion of real-world examples and hands-on exercises was particularly beneficial, as it enabled me to apply theoretical knowledge to practical scenarios.
One notable aspect of the tutorial was its clarity in explaining challenging concepts, making it accessible even for individuals new to logic programming. The step-by-step explanations, coupled with illustrative examples, greatly facilitated my learning process.
Furthermore, the tutorial's emphasis on problem-solving and logical reasoning skills added a valuable dimension to my Prolog education. The exercises not only solidified my understanding of the language but also honed my ability to think critically and construct solutions in a logical manner.
In conclusion, the Prolog tutorial was a standout resource that played a pivotal role in my successful journey to mastering Prolog. Its clarity, practicality, and emphasis on problem-solving make it an indispensable tool for anyone looking to delve into the world of logic programming. I am genuinely grateful for the invaluable insights and skills I gained through this tutorial.
Please SUBSCRIBE to help our channel and keep me going :)
users/itachi ... :)) So this is where Naruto fans are hiding... mastering Prolog. Thanks for the tutorial, sensei! :))
:P
@@techdose4u Itachi Uchiha 😎😁
Sir, thanks for class in prolog.
Ur explanation is so clear to begin prolog
Welcome 😊
valuable(gold).
female(jane).
owns(jane,gold).
father(john,mary).
gives(john,book,mary).
play(john,mary,football).
play(jane,jim,badminton).
man, i cant believe how awesome you are!! thank you soo much!
four_queens(Board) :-
Board = [Q1,Q2,Q3,Q4],
permutation([1,2,3,4] , Board),
no_diagonal_onflict(Q1,Q2,1),
no_diagonal_onflict(Q1,Q3,2),
no_diagonal_onflict(Q1,Q4,3),
no_diagonal_onflict(Q2,Q3,1),
no_diagonal_onflict(Q2,Q4,2),
no_diagonal_onflict(Q3,Q4,1).
no_diagonal_conflict(I,J,K) :- abs(I-J) =\= K.
Thank you for this videos on prolog, you saved my exam❤
its very nice and clear explanation and that too step by step.
:)
Thanks Sir, u explain so beatiful
Great exposition ❤
In the previous video you told the difference between NO and FALSE , FALSE is something releated to the universal fact and not with the facts mentioned in our KnowledgeBase.but here is quite different.plzzz clarify
Very helpful, thanks
My GF : so who is jane ?
oops!! 😱😱
Thank you mr itachi uchiha.
Thank you! very helpful.
Welcome :)
Very helpful ❤
THANKS BRO LIKED AND SUBSCRIBED, SENDING LOVE XXXX
Thank you so much for sharing
Welcome :)
" What the heck!!" 😂😂😂😂
Thanks Itachi!
Hi, thank you for your explanations. But I can't open my pl file after I'm closing it. There is no suitable file to open it back ? What should I do?
that was helpful, thanks.
Welcome
hey,
In the previous video you said if you pass wrong parameters like father(mary,jane) you would get no not false then why the prolog output is false in this case?
I mistakenly said no...... What happens is, whatever you pass, all those things are matched against declared facts and run (if possible) on declared rules. If your query does not match any rule standard or any fact then it will assume that whatever is queried is false. So, it will be no only when you have declared somewhere as output for some case to be no. If you haven't declared no anywhere then result will be false. I hope this makes your doubt clear :)
@@techdose4u father(mary,jane) , but for this query i am getting "no". why? but #yug Rawal who has asked about this question has got "false". Why variation in output?
Good explain Sir
Well explained 🎉🎉
Thanks :)
There is prolog lab and done 4 5 program so should i include in my skill as i somewhat familiar with it
You can.
I love u bro, u saved me tnx dude
Will you write prolog program to swap two number without using third variable?
How can I define the following two relations
?
(a) sister(X, Y) which holds if X is the sister of Y.
(b) grandfather(X, Y) which holds if X is the grandfather of Y
Assign new variable like Z then define X is a grandfather of X
wait am i the only one who say ur username is itiachi,any way nice vedio finally got it where to write code i didnt know where to write code
what if i want to write
valuable(gold).
valuable(diamond).
is there a way to make it one line?
I’m having troubles with flow free game using prolog , a grid 4*5 with red/blue/yellow dots , connect them using uninformed search , how?
very helpful🙂
Thanks
thank you so much
Welcome 😊
ube :-
write('Write a number: '),
read(Number),
process(Number).
process(stop) :- !.
process(Number) :-
C is Number * Number * Number,
write('Cube of '),write(Number),write(': '),write(C),nl, cube
thank you man
You're welcome!
move(1,X,Y,_) :-
write('Move top disk from '), write(X), write(' to '), write(Y), nl.
move(N,X,Y,Z):-
N>1,
M is N-1,
move(M,X,Z,Y),
move(1,X,Y,_),
move(M,Z,Y,X).
I tried same but at first line only error is there operator expected............. I write valuable(gold). then I complied it but it shows syntax error as Operator Expected
thanks
Welcome
water jug (X, Y) :-X>4, Y4, Y>3, write ('Both water jugs overflowed.), nl. water jug (X, Y) -
(X=:=0, Y=:=0,nl, write ('41:0 & 31:3 (Action: Fill 31 jug.)'), YY is 3, water jug (X, Y));
(X=:=0, Y==0,nl, write ('41:4 & 3L:0 (Action: Fill 41 jug.)),xx is 4, water jug (XX,Y)); (X=:=2, Y=:=0,nl, write ('41:231:0 (Action: Goal State Reached....)'));
(X=:=4, Y=:=0,nl, write('41:1 31:3 (Action: Pour water from 41 to 31 jug.)),XX is X-3, YY is 3, water jug (XX, Y));
(x-:-0, Y-:-3,nl, write('41:3 & 31:0 (Action: Pour water from 31 jug to 41 jug.)), XX is 3, YY is 0, water jug (XX, YY)); (X-:-1, Y:-3, nl, write('41:1 & 31:0 (Action: Empty 31 jug.)'), YY is 0, water jug (X, YY));
(x-:-3, y=:=0,nl, write ('41:331:3 (Action: Fill 31 jug.)), YY is 3, water jug (X, YY)); (X=:=3, Y=:=3,nl, write('41:431:2 (Action: Pour water from 31 jug to 4L jug until 4L jug is full.)'),XX is x+1, YY is Y-1,
water jug (XX, YY)); (X=:=1, Y=:=0, nl, write ('4L:0 & 31:1 (Action: Pour water from 4L to 3L jug.)'), XX is Y, YY is X, water jug (XX, YY)); (X=:=0,Y=:=1,nl, write('41:4 & 31:1 (Action: Fill 41 jug.)'),XX is 4, water jug (XX, Y)); (X=:=4, Y=:=1,nl, write ('41:2 & 31:3 (Action: Pour water from 4L jug to 31 jug until 31 jug is full.)'),XX is X-2, YV is Y42,
water jug (XX, YY)); (X=:=2, Y=:=3, nl, write ('4L:2 & 3L:0 (Action: Empty 31 jug.)), YY is 0, water jug (X, Y));
(X=:=4, Y:-2, nl, write ('41:06 3L:2 (Action: Empty 4L jug.)'), xXx is 0, water jug (XX, Y)); (X=:=0, Y=:=2, nl, write('41:231:0 (Action: Pour water from 3L jug to 4L jug.)),XX is Y, YY is X, water jug (XX, YY)).
Blud has jane in his mind😏
amazing video damn are books are useless!!!!
:)
F for Cyprus
Who is Jane
what the heck!!
I think sir you love Jane
I need a code for hitori game or any help in that
I will search and see if its available. If you already have the code then mail me, i will try it.
Have a look at this github.com/kjellhaaland/hitori-prolog
how can i make a Domino pilling with bumps in cells
sorry, i meant bomb
thanks bro