01:30 Jim's parents, Peter and Pat, are either full siblings or half-siblings, since Bob is a parent of both!! In any case Peter is not even shown on the graphical tree, but is shown in the prolog statements.
Thank you for so many videos. I have a scenario where names are not unique causing conflict. #1 parent(joe, joe). #2 parent(sam,sue). #3 parent(sam,sue). Although renaming (first come first entitled to their original name), while duplicates have a unique identifier added is a simple solution, but is also a distraction from the pure logic aspect of the problem at hand. Just thought I'd mention this because my project exercise is facing this dilemma.
In Prolog, can the relationship be the unknown search for? For example, I want to know the Kinship between john and jane, can I use something like X(john, jane). ?
Extend the program by adding rules for the following family relationships (add more facts as you need ). Rules father(X.Y) > Father (z,w) where X is Y's father father(X,Y):>male(X),Parent(X, Y). brother(X, Y): where X is Y's brother brother(X,Y):-male().praent(X,Y). Brother (y.w) sister(X,Y):-famale(X),praent(X, Y). sister(X, Y): where X is Y's sister Sister(w.y) son(X, Y)> son(X,Y):-male(X), praent(Y,X). where X is Y's son Son(y.z) daughter(X, Y) :- Daughter (w,x) where X is Y's daughter daughter(X,Y):-famale(X), praent(Y.X). where X and Y are sibling Sibling(X, Y):-praent(X,Y), praent(X, Y). Sibling(X.Y): Sibling(w.y) hint) Solved example: female(mary). Facts male(joe). parent(mary, joe). mother(MX)- female(M). parenx(M, X) Rule Question → ?-mother (mary. joe). Answer True. (hint) draw a family tree if you need.
Get Certification in Prolog in Artificial Intelligence: bitly.ws/WpVp
Use coupon ""UA-cam12"" to get “FLAT 12%’’ OFF at Checkout.
the best video series on prolog present on the internet. thanks for your efforts to upload this series Arnab Sir.
Thank you so much, tomorrow is my practical exam and I've understood the prolog codes now 🙏🙏🙏
01:30 Jim's parents, Peter and Pat, are either full siblings or half-siblings, since Bob is a parent of both!! In any case Peter is not even shown on the graphical tree, but is shown in the prolog statements.
Thank you for so many videos. I have a scenario where names are not unique causing conflict.
#1 parent(joe, joe).
#2 parent(sam,sue).
#3 parent(sam,sue).
Although renaming (first come first entitled to their original name), while duplicates have a unique identifier added is a simple solution, but is also a distraction from the pure logic aspect of the problem at hand. Just thought I'd mention this because my project exercise is facing this dilemma.
thank you sooo much sir , without these prolog videos maybe it was not possible to learn it.
Perfectly explained
Awesome
this video equal of all prolog lessons.
It will be better if you add caption or subtitle
Muitissimo obrigado. Estava ja doido procurando esse assunto.
thanks alot
In Prolog, can the relationship be the unknown search for?
For example, I want to know the Kinship between john and jane, can I use something like X(john, jane). ?
She`s Leach or anyway Liz?
sir i have a Doubt in the tree of parent(bob,peter). and parent(peter,jim).
Extend the program by adding rules for the following family relationships (add more facts as you need ).
Rules
father(X.Y) >
Father (z,w)
where X is Y's father
father(X,Y):>male(X),Parent(X, Y).
brother(X, Y):
where X is Y's brother brother(X,Y):-male().praent(X,Y).
Brother (y.w)
sister(X,Y):-famale(X),praent(X, Y).
sister(X,
Y):
where X is Y's sister
Sister(w.y)
son(X, Y)>
son(X,Y):-male(X), praent(Y,X).
where X is Y's son
Son(y.z)
daughter(X, Y) :- Daughter (w,x)
where X is Y's daughter daughter(X,Y):-famale(X), praent(Y.X).
where X and Y are sibling Sibling(X, Y):-praent(X,Y), praent(X, Y).
Sibling(X.Y): Sibling(w.y)
hint) Solved example:
female(mary).
Facts
male(joe).
parent(mary, joe).
mother(MX)- female(M). parenx(M, X)
Rule
Question →
?-mother (mary. joe).
Answer
True.
(hint) draw a family tree if you need.
sir faces many warnings during execution of this program
You are explaining so much you must be getting tired... Reading the ppt is your art...
hahaha😂😅😂
Can we get the program file please
how i solve warnings
I think for international audience it`s better to provide English translation (British or American variants).
Nah i can clearly understand him
Too much reading from slides
Why does a professional of such a high level explain the basics?