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

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

КОМЕНТАРІ • 105

  • @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!

  • @LanOfLight
    @LanOfLight 9 років тому +69

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

    • @dhidhi1000
      @dhidhi1000 8 років тому

      +LanOfLight They're quite basic indeed.

  • @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.

  • @brandoncontreras343
    @brandoncontreras343 5 років тому +70

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

  • @0kazaki
    @0kazaki 9 років тому +79

    Please continue the tutorials! they are great

  • @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!

  • @theincredibleschalk
    @theincredibleschalk 9 років тому +15

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

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

  • @m.aminaimeur8846
    @m.aminaimeur8846 5 років тому +13

    I wish you published the recurrsion tutorial :'(

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

    2022 and this video is still awesome, thanks

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

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

  • @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.

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

  • @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~~

  • @sharma30vijay
    @sharma30vijay 6 років тому

    this video gonna make my exam awesome

  • @yuradanilkin7528
    @yuradanilkin7528 9 років тому +3

    looking forward to part 5!)

  • @maiyousry9285
    @maiyousry9285 9 років тому +13

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

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

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

  • @alexdarklord
    @alexdarklord 9 років тому +7

    We need more please ^^

  • @JamWard
    @JamWard 9 років тому +1

    Fantastic, just what I was looking for!

  • @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.

  • @KatonaNorbertSEO
    @KatonaNorbertSEO 9 років тому +2

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

  • @unknownunicorn387
    @unknownunicorn387 6 років тому

    Please, continue this tutorials!!

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

    I am waiting for the part 5

  • @anrkekd
    @anrkekd 9 років тому +1

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

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

  • @genwav
    @genwav 6 років тому

    great series

  • @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.

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

  • @hulksuperstar
    @hulksuperstar 5 років тому +3

    RIP this is the end of the tutorials

  • @issacccom
    @issacccom 9 років тому

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

  • @haalandk6000
    @haalandk6000 9 років тому

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

  • @saadhasan9206
    @saadhasan9206 9 років тому +2

    Thank you man very much
    please continue :)

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

  • @abhishekgupta-qi4fj
    @abhishekgupta-qi4fj 9 років тому

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

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

    2021 and still no part 5 :/

  • @ildisiri
    @ildisiri 9 років тому +3

    wtf dude -.- please continue!

  • @riccardocandido
    @riccardocandido 9 років тому

    Thanks man is an incredible video! very helpful!!

  • @RubzZgurl
    @RubzZgurl 10 років тому

    Thank you, this was very helpful!

  • @WZamp
    @WZamp 6 років тому

    Thanks you!

  • @GoingthroghIT
    @GoingthroghIT 9 років тому

    Very helpful, thanks!

  • @WIZLHAB
    @WIZLHAB 9 років тому +2

    Wont u create more videos?

  • @tim7538
    @tim7538 8 років тому

    Good job man!

  • @Frank-ch3fe
    @Frank-ch3fe 8 років тому +6

    Part 5 Recursion pls!

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

    can i contact you please ?

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

    Thanks a lot! XD

  • @cyzer7
    @cyzer7 10 років тому

    Very nice indeed.

  • @pedram7sd
    @pedram7sd 9 років тому

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

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

    Still waiting part 5

  • @junchaowang4154
    @junchaowang4154 9 років тому +1

    thank you so much

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

  • @KoreanwithNaz
    @KoreanwithNaz 9 років тому +1

    Please keep on doing :)

  • @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.

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

    what about part 5 man ?

  • @Shady-pv9nd
    @Shady-pv9nd 9 років тому

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

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

    yo nice

  • @DowaKaday
    @DowaKaday 9 років тому

    can you explain more on recursion please

  • @zzahraa12
    @zzahraa12 9 років тому

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

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

  • @yasmins1751
    @yasmins1751 8 років тому

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

  • @mobinmaasoumi
    @mobinmaasoumi 9 років тому

    thnx very much

  • @balkrishnahegde5993
    @balkrishnahegde5993 6 років тому

    Hey your next video??

  • @williamleung5230
    @williamleung5230 9 років тому

    Cool vids, thanks

  • @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-(

  • @amanagarwal9562
    @amanagarwal9562 9 років тому +1

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

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

  • @99ARPITJAIN
    @99ARPITJAIN 9 років тому

    whats the name of the track

  • @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]].

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

    Next part?

  • @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.

  • @liutenghou
    @liutenghou 9 років тому

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

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

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

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

  • @aws0mo63
    @aws0mo63 9 років тому

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

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

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

  • @jokervsriddler
    @jokervsriddler 8 років тому +1

    dudes where is the next video?

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

    • @TheSimpleEngineer
      @TheSimpleEngineer  5 років тому +4

      Still alive ;)

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

      @@TheSimpleEngineer Then pleeease make more videos. I need to learn Prolog. I can fund you

  • @mexico9500
    @mexico9500 8 років тому

    ANY P5?

  • @gmarsenopoulos
    @gmarsenopoulos 7 років тому

    year 2017
    still no part 5

  • @mya7590
    @mya7590 7 років тому

    where is part5?

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

    You misspelled 'Cents' with a S

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