Programming in Prolog Part 4 - Lists, Pairs and the Member Function

Поделиться
HTML-код
  • Опубликовано: 6 ноя 2024

Комментарии • 105

  • @brandoncontreras343
    @brandoncontreras343 5 лет назад +70

    Im waiting for part 5 like I'm waiting for my dad to get back from buying cigarettes

  • @LanOfLight
    @LanOfLight 9 лет назад +69

    Disappointed there's no part 5, these videos are great!

    • @dhidhi1000
      @dhidhi1000 8 лет назад

      +LanOfLight They're quite basic indeed.

  • @pAWNproductionsDE
    @pAWNproductionsDE 9 лет назад +53

    so many programming videos are made by people who can't speak english well (if at all) and/or can't explain it well at all. it's nice to find someone who speaks clearly and explains things simply and efficiently. love the videos man, they're really helping me!

  • @isurisuhara6881
    @isurisuhara6881 4 года назад +3

    Please give part 5,I am gonna watch part 4 now and I know I will want part 5 after watching it. It gives a feeling like watching a film series,very addictive.

  • @0kazaki
    @0kazaki 9 лет назад +79

    Please continue the tutorials! they are great

  • @m.aminaimeur8846
    @m.aminaimeur8846 5 лет назад +13

    I wish you published the recurrsion tutorial :'(

  • @theincredibleschalk
    @theincredibleschalk 9 лет назад +15

    urgently neeeeeeeeed part 5 ... writing exam in few weeks. thank you! danke.

  • @jacknoone3005
    @jacknoone3005 9 лет назад +11

    Hey. Really enjoying your videos. They're greatly helping me understand Prolog for my Final Year Project. Just interested if you will be doing anymore of them. Thanks!

  • @maiyousry9285
    @maiyousry9285 9 лет назад +13

    Aren't you going to complete the tutorial ?
    It's really helpful, wish you continue it :/ .

  • @user-px2jq1bm8t
    @user-px2jq1bm8t 7 лет назад +1

    i am from taiwan, my english is poor, however, the speaker makes it real simple that i could understand as well, thank you~~

  • @paularequena9340
    @paularequena9340 2 года назад +1

    Great videos!! I found them very useful, I hope you make the fifth tutorial!

  • @prempreeti4180
    @prempreeti4180 4 года назад +1

    Are you publishing the next tutorial? I hope you do.. they are very good!

  • @TheLulacoco
    @TheLulacoco 6 лет назад +1

    Please continue the tutorials! They are really good and I don't understand recursion. Help :)

  • @faizalsuleman5673
    @faizalsuleman5673 2 года назад

    2022 and this video is still awesome, thanks

  • @ayanindia2009
    @ayanindia2009 8 лет назад +1

    I have been scouring the youtube for past 3 days for prolog programming tutorial video. This is one of the finest I have found till date. Effective, precise and right on to the point. BTW where is that part 5 video. You have been teasing the recursion function since part 3. :) Keep up the good work.

  • @iAkOu1
    @iAkOu1 9 лет назад +2

    An awesome short video tutorial series on Prolog basics. Keep up the good work!

  • @romanshestakov8856
    @romanshestakov8856 9 лет назад +5

    Excellent! Very useful, looking forward to part 5

  • @dmitryponyatov2158
    @dmitryponyatov2158 5 лет назад

    Do you have plans to continue on wrting computer languaga processing in Prolog lije parsing and writing tiny compilers/asemblers?

  • @ramrachaimarma3553
    @ramrachaimarma3553 3 года назад +1

    I am waiting for the part 5

  • @EnianMadeMyDay
    @EnianMadeMyDay 8 лет назад +1

    thank you so much!! helped me a lot :) would be happy if you could do part 5 and more.. i still have troubles with recursive functions

  • @ghstrider100
    @ghstrider100 4 года назад

    Sir can you please tell me how can i delete even numbers from a list? And sort the list in ascending order. Thanks.

  • @haalandk6000
    @haalandk6000 9 лет назад

    Thanks dude.
    It's awesome!!
    Will you update a new chapter?

  • @sharma30vijay
    @sharma30vijay 6 лет назад

    this video gonna make my exam awesome

  • @hulksuperstar
    @hulksuperstar 5 лет назад +3

    RIP this is the end of the tutorials

  • @Anup4814
    @Anup4814 6 лет назад +1

    4 years has already past but still there's no part 5.. What may be the reason for it since in part 4 the speaker himself mentions to include more in part 5 and so on?

    • @isurisuhara6881
      @isurisuhara6881 4 года назад

      Maybe he changed his mind,I am going to start watching the fourth one now,but I feel sad , everyone ask for a part 5 in the comments.I will need a part 5 after watching too.He just finish it like in a film series,giving a to be continued feeling.I do not feel time going when I listen to it.Its 3:40 a.m ,but I feel wide awake.

  • @yuradanilkin7528
    @yuradanilkin7528 9 лет назад +3

    looking forward to part 5!)

  • @alexdarklord
    @alexdarklord 9 лет назад +7

    We need more please ^^

  • @mohabamr
    @mohabamr 8 лет назад

    I just don't get the last part, why is H=2? I mean yeah sure I know a dolar is 2 H but what piece of this code says that? it's a list and you're using member rule so it should output all the options which are 0,1,2 right? I mean how does it calculate how many H's and the rest?

  • @JamWard
    @JamWard 9 лет назад +1

    Fantastic, just what I was looking for!

  • @KatonaNorbertSEO
    @KatonaNorbertSEO 9 лет назад +2

    Great tutorials, keep it up. It helped a lot!!!

  • @unknownunicorn387
    @unknownunicorn387 6 лет назад

    Please, continue this tutorials!!

  • @genwav
    @genwav 6 лет назад

    great series

  • @pedram7sd
    @pedram7sd 9 лет назад

    Watched all 4 Tutorials ?
    is there more ?
    if not do you have any recommendations on where I should properly learn prolog ?

  • @bakarisheghembe7898
    @bakarisheghembe7898 9 лет назад

    Hope that all is well wherever you are, really enjoying your videos, but where is video five.
    Especially on the point of recursive functions

  • @anrkekd
    @anrkekd 9 лет назад +1

    This was big help, thanks man, keep it up!

  • @HinaFirdaus
    @HinaFirdaus 7 лет назад

    I am getting singleton variable error if i m not declaring T n H
    member(X,T [X|T]).
    member(X,H [H|T]):-
    member(X,T).

  • @abhishekgupta-qi4fj
    @abhishekgupta-qi4fj 9 лет назад

    how to concatenate two list and make third list ????

  • @issacccom
    @issacccom 9 лет назад

    I found this very useful but I hope to see more in next video :)

  • @WIZLHAB
    @WIZLHAB 9 лет назад +2

    Wont u create more videos?

  • @saadhasan9206
    @saadhasan9206 9 лет назад +2

    Thank you man very much
    please continue :)

  • @Shady-pv9nd
    @Shady-pv9nd 9 лет назад

    very nice ! and can you tell me the name of the song 00:00

  • @Frank-ch3fe
    @Frank-ch3fe 8 лет назад +6

    Part 5 Recursion pls!

  • @caiosiqueira6138
    @caiosiqueira6138 3 года назад +1

    2021 and still no part 5 :/

  • @ildisiri
    @ildisiri 9 лет назад +3

    wtf dude -.- please continue!

  • @varshathnk
    @varshathnk 7 лет назад

    how do i print the elements of a list inside a list? For example, if i have a list print_list([[b,c,f],[a,d,g],[h,e]]), i want the output to be |b|c|f|a|d|g|h|e

  • @cesarsalazar7402
    @cesarsalazar7402 5 лет назад +2

    Still waiting part 5

  • @abdelghanimahammedi6149
    @abdelghanimahammedi6149 4 года назад +1

    what about part 5 man ?

  • @yasmins1751
    @yasmins1751 8 лет назад

    I went to the site but ''Create a new program or notebook here '' Which should I use?

  • @riccardocandido
    @riccardocandido 9 лет назад

    Thanks man is an incredible video! very helpful!!

  • @RubzZgurl
    @RubzZgurl 10 лет назад

    Thank you, this was very helpful!

  • @dmitryponyatov2158
    @dmitryponyatov2158 8 лет назад

    How can I "normalize" last code in this video replacing lists [1,..,20] by some nested rule generating this lists ?
    Factically I want not _rule_, but _function_ here, and my imperative habits brokes my mind on groking Prolog in this cases. I spend lot of time trying to grok prolog approach and still far from this goal 8-(

  • @DowaKaday
    @DowaKaday 9 лет назад

    can you explain more on recursion please

  • @darwinchan5573
    @darwinchan5573 6 лет назад

    i have a problem here. suppose i have several points connected with one and other.
    I need to use member and list function to figure out the order of how they are connected. It involves recursion as well.
    connected(1,2).
    connected(2,1).
    connected(1,3).
    connected(3,1).
    connected(4,2).
    connected(4,5).
    connected(5,6).
    member(X, [H|T]).
    member(X, [H|T]):- member(X, T).
    path(X, Y) = connected(X, Y), not(member(X, Y))
    path(X, Y, V) = connected(X, Y), not(member(X, V)
    I dunno how to write next to get the results.

  • @tim7538
    @tim7538 8 лет назад

    Good job man!

  • @zzahraa12
    @zzahraa12 9 лет назад

    thank you!!! maybe i'll pass my exam tomorrow ...

  • @GoingthroghIT
    @GoingthroghIT 9 лет назад

    Very helpful, thanks!

  • @WZamp
    @WZamp 6 лет назад

    Thanks you!

  • @123califax
    @123califax 9 лет назад

    hello, can you tell me why this example gives a false answer:
    [a, b, c|rest] = [1, 2, 3, 4, 5].

    • @Gekas311
      @Gekas311 9 лет назад +4

      You should write letters a, b, c and rest with uppercase, because it's variables

  • @daridonkuro3418
    @daridonkuro3418 9 лет назад

    You tutorials are very helpful to me than what I'm learning in class. I am still struggling with list homework, recursively define rules/functions. can you make a video that covers deepsearch, for example, member(4,[2,3,[3,5,[4,5],6],7]) should return true which currently is false because the built-in member() function only supports first level membership check. Yet another recursive problem dealing with converting a lists to integers, add the results then output a list from the result. For example, sum([2,2,2,2],[3,3,3],X) => X = [2,5,5,5] because 2222+333 = 2555. How do you use a result from a sub function as a parameter to another? Like sum(2,2,X) => X =4 but now how do use the value of X in another function?.I hope you respond sooner to this post. Thanks.

  • @aws0mo63
    @aws0mo63 9 лет назад

    Can you please put up a tutorial for finding Maximum value from our database of facts?

  • @liutenghou
    @liutenghou 9 лет назад

    That last part was pretty funny. "Pennies... uh... uh... actually we're not going to include this."

  • @anonymousvevo8697
    @anonymousvevo8697 3 года назад

    can i contact you please ?

  • @balkrishnahegde5993
    @balkrishnahegde5993 6 лет назад

    Hey your next video??

  • @amanagarwal9562
    @amanagarwal9562 9 лет назад +1

    Nice Video..... But where is the next video?

  • @lefterissofras
    @lefterissofras 5 лет назад

    excellent tutorial, but no pairs explained......

  • @lucascampelo4539
    @lucascampelo4539 5 лет назад

    Thanks a lot! XD

  • @cyzer7
    @cyzer7 10 лет назад

    Very nice indeed.

  • @stoicpoetrywisdom
    @stoicpoetrywisdom 8 лет назад

    Hi I wanted to know, how I can print out unique values from a database, so say for instance. This is what I have been trying. But the problem I have is that it does not actually remove the dupliactes.
    This is the predicate to remove duplicates
    deleteCopies([], []).
    deleteCopies([H|T], [H|T1]) :- subtract(T, [H], T2), deleteCopies(T2, T1).
    and this is how I created the predicate to print out unique values from the list below
    isDoggy([]).
    isDoggy([H|T]):- dog(H,_,_), deleteCopies([H|T], [H|T1]), isDoggy(T1).
    dog('Fred',2001,2003).
    dog('Barky',2003,2005).
    dog('Fred',2005,2007).
    dog('Ben',2007,2009).
    dog('Barky',2009,2011).
    dog('Tom',2011,2013).

  • @Zainjerr
    @Zainjerr 5 лет назад

    Next part?

  • @KoreanwithNaz
    @KoreanwithNaz 9 лет назад +1

    Please keep on doing :)

  • @enditend2
    @enditend2 9 лет назад

    anyone know how I can get pairs of a list , let's say I have a list of : [1,2,3]
    the result would be : [[1,2],[1,3],[2,3]].

  • @junchaowang4154
    @junchaowang4154 9 лет назад +1

    thank you so much

  • @johnnycasares8279
    @johnnycasares8279 2 года назад

    yo nice

  • @99ARPITJAIN
    @99ARPITJAIN 9 лет назад

    whats the name of the track

  • @sunflowerstudies8719
    @sunflowerstudies8719 5 лет назад

    sad that there is no part 5
    wanted to understand recursive rules better

  • @williamleung5230
    @williamleung5230 9 лет назад

    Cool vids, thanks

  • @mobinmaasoumi
    @mobinmaasoumi 9 лет назад

    thnx very much

  • @gilbertsenyonjo963
    @gilbertsenyonjo963 5 лет назад

    You funny guy. You indeed a simple engineer. Were you even aware that your prolog videos are the best on the net till now. But just like for all your playlists - incomplete. Did someone kill you ??

  • @jokervsriddler
    @jokervsriddler 8 лет назад +1

    dudes where is the next video?

  • @PKTraceur
    @PKTraceur 3 года назад

    You misspelled 'Cents' with a S

  • @mexico9500
    @mexico9500 8 лет назад

    ANY P5?

  • @gmarsenopoulos
    @gmarsenopoulos 7 лет назад

    year 2017
    still no part 5

  • @mya7590
    @mya7590 7 лет назад

    where is part5?

  • @mexico9500
    @mexico9500 8 лет назад

    dead(z) made me instantly think of Pulp Fiction

  • @denisr.8248
    @denisr.8248 8 лет назад

    i want to see mroe Videos please make soem when yo have time :S

  • @rodolink_0
    @rodolink_0 9 лет назад

    so sad theres not part 5 u_u

  • @АнтонКлатт
    @АнтонКлатт 8 лет назад

    May be I am dumb but i heard penis when you was saying ("Penns" or "pen is") =))))) - funny

  • @cameronpattisall
    @cameronpattisall 9 лет назад +1

    dead(z) baby...dead(z)

  • @arwafaris3682
    @arwafaris3682 8 лет назад

    Thank you so much