5-First Prolog Code

Поділитися
Вставка
  • Опубліковано 8 лис 2024

КОМЕНТАРІ • 74

  • @techdose4u
    @techdose4u  Рік тому

    🟣 JOIN our 𝐋𝐈𝐕𝐄 𝐢𝐧𝐭𝐞𝐫𝐯𝐢𝐞𝐰 𝐭𝐫𝐚𝐢𝐧𝐢𝐧𝐠 𝐩𝐫𝐨𝐠𝐫𝐚𝐦 through whatsapp query: +91 8918633037
    🔴 𝐂𝐡𝐞𝐜𝐤𝐨𝐮𝐭 𝐚𝐥𝐥 𝐨𝐮𝐫 𝐂𝐨𝐮𝐫𝐬𝐞𝐬: techdose.co.in/

  • @rogueb1137
    @rogueb1137 9 місяців тому +2

    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.

  • @techdose4u
    @techdose4u  5 років тому

    Please SUBSCRIBE to help our channel and keep me going :)

  • @momochi536
    @momochi536 5 років тому +20

    users/itachi ... :)) So this is where Naruto fans are hiding... mastering Prolog. Thanks for the tutorial, sensei! :))

  • @athmaram2006
    @athmaram2006 3 роки тому +7

    Sir, thanks for class in prolog.
    Ur explanation is so clear to begin prolog

  • @edwardgrabczewski
    @edwardgrabczewski 5 років тому +19

    valuable(gold).
    female(jane).
    owns(jane,gold).
    father(john,mary).
    gives(john,book,mary).
    play(john,mary,football).
    play(jane,jim,badminton).

  • @paky4ever1
    @paky4ever1 11 місяців тому +1

    man, i cant believe how awesome you are!! thank you soo much!

  • @ayushthakur691
    @ayushthakur691 11 місяців тому +1

    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.

  • @quvomiddinkamalov3292
    @quvomiddinkamalov3292 11 місяців тому

    Thank you for this videos on prolog, you saved my exam❤

  • @dharamendratomar664
    @dharamendratomar664 3 роки тому +2

    its very nice and clear explanation and that too step by step.

  • @s01tan
    @s01tan 2 роки тому +1

    Thanks Sir, u explain so beatiful

  • @wizardatmath
    @wizardatmath 11 місяців тому

    Great exposition ❤

  • @ashokrathod5067
    @ashokrathod5067 3 роки тому +1

    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

  • @rv4tyler
    @rv4tyler 11 місяців тому

    Very helpful, thanks

  • @as46364
    @as46364 2 роки тому +8

    My GF : so who is jane ?

  • @shiivaamusic8619
    @shiivaamusic8619 2 роки тому +1

    Thank you mr itachi uchiha.

  • @akanksha7474
    @akanksha7474 4 роки тому +2

    Thank you! very helpful.

  • @ssgsudheernaidu3902
    @ssgsudheernaidu3902 8 місяців тому

    Very helpful ❤

  • @carltallon2130
    @carltallon2130 9 місяців тому

    THANKS BRO LIKED AND SUBSCRIBED, SENDING LOVE XXXX

  • @neelchauhan9770
    @neelchauhan9770 3 роки тому +1

    Thank you so much for sharing

  • @yaswanthkumar-ff6wg
    @yaswanthkumar-ff6wg Рік тому +2

    " What the heck!!" 😂😂😂😂

  • @bibhrajsaha1634
    @bibhrajsaha1634 2 роки тому +1

    Thanks Itachi!

  • @aysecerencoban3623
    @aysecerencoban3623 Рік тому

    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?

  • @Mina-hk7xg
    @Mina-hk7xg 3 роки тому +2

    that was helpful, thanks.

  • @yugrawal5541
    @yugrawal5541 5 років тому +1

    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?

    • @techdose4u
      @techdose4u  5 років тому +2

      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 :)

    • @kavitasingh4909
      @kavitasingh4909 4 роки тому

      @@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?

  • @TechAndroJavaOfficial
    @TechAndroJavaOfficial 2 роки тому

    Good explain Sir

  • @rachna7198
    @rachna7198 4 роки тому +1

    Well explained 🎉🎉

  • @retrogame3138
    @retrogame3138 4 роки тому +1

    There is prolog lab and done 4 5 program so should i include in my skill as i somewhat familiar with it

  • @EDUARDOARIELJUAREZVAZQUEZ
    @EDUARDOARIELJUAREZVAZQUEZ 7 місяців тому

    I love u bro, u saved me tnx dude

  • @jyotirani189
    @jyotirani189 3 роки тому

    Will you write prolog program to swap two number without using third variable?

  • @sifatsanjeen1078
    @sifatsanjeen1078 4 роки тому +2

    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

    • @techking...8473
      @techking...8473 11 місяців тому

      Assign new variable like Z then define X is a grandfather of X

  • @realrishiiscoolgaming9548
    @realrishiiscoolgaming9548 Рік тому

    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

  • @muhdtaufik4818
    @muhdtaufik4818 2 роки тому

    what if i want to write
    valuable(gold).
    valuable(diamond).
    is there a way to make it one line?

  • @amrassal4056
    @amrassal4056 3 роки тому

    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?

  • @onethkahandawa1745
    @onethkahandawa1745 4 роки тому +1

    very helpful🙂

  • @thuytienche1094
    @thuytienche1094 3 роки тому +1

    thank you so much

  • @ayushthakur691
    @ayushthakur691 11 місяців тому

    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

  • @Raoul-ph8pr
    @Raoul-ph8pr 12 днів тому

    thank you man

  • @ayushthakur691
    @ayushthakur691 11 місяців тому

    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).

  • @nilambale6946
    @nilambale6946 2 місяці тому

    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

  • @bllove73
    @bllove73 4 роки тому +1

    thanks

  • @ayushthakur691
    @ayushthakur691 11 місяців тому

    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)).

  • @shrayanbhattacharya
    @shrayanbhattacharya Рік тому

    Blud has jane in his mind😏

  • @zap6878
    @zap6878 3 роки тому +2

    amazing video damn are books are useless!!!!

  • @Scorpiolo
    @Scorpiolo 3 роки тому

    F for Cyprus

  • @ochiengokumu8295
    @ochiengokumu8295 Рік тому

    Who is Jane

  • @sangamadhikari.61
    @sangamadhikari.61 Рік тому +1

    what the heck!!

  • @surajitroy_roll-5023
    @surajitroy_roll-5023 3 роки тому

    I think sir you love Jane

  • @hibadu251
    @hibadu251 5 років тому +1

    I need a code for hitori game or any help in that

    • @techdose4u
      @techdose4u  5 років тому

      I will search and see if its available. If you already have the code then mail me, i will try it.

    • @techdose4u
      @techdose4u  5 років тому +1

      Have a look at this github.com/kjellhaaland/hitori-prolog

  • @hodamohamed1683
    @hodamohamed1683 Рік тому

    how can i make a Domino pilling with bumps in cells

  • @davlatbekkobiljonov911
    @davlatbekkobiljonov911 Рік тому

    thanks bro