CYK Algorithm Made Easy (Parsing)

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ม.ค. 2025

ความคิดเห็น • 216

  • @DMSmarine
    @DMSmarine 8 ปีที่แล้ว +172

    It's rare to find a complex concept explained so clearly. Fantastic work. Hope your voice is better now :)

  • @dofkaw
    @dofkaw 6 ปีที่แล้ว +321

    I'm pretty sure you forgot to mention that starting terminal (S in this case) needs to be in the top row cell, otherwise the string is not part of the grammar.

    • @dofkaw
      @dofkaw 4 ปีที่แล้ว

      @Gazi Mashrur I have no idea what this video is at the moment. But I will check tomorrow or the day after and will let you know, if I find out.

    • @sammas3179
      @sammas3179 4 ปีที่แล้ว +5

      @@dofkaw It has been 2 years since you first saw it, probably because of uni, do you actually use this?:p

    • @marcuschiu8615
      @marcuschiu8615 4 ปีที่แล้ว +13

      @Gazi Mashrurif you are talking about 𝐴,𝑆 and 𝑆,𝐴 which are written in the grid they mean the same thing because the comma denotes OR and order doesn't matter. HOWEVER, if you are talking about 𝐴𝑆 and 𝑆𝐴 which are produced by the cartesian product then they are not the same, order matters in this case.

    • @funnyreddit4600
      @funnyreddit4600 4 ปีที่แล้ว +2

      @Gazi Mashrur yes it is . idk f im too late but it is for anyone concerned

    • @husseinyoussef6998
      @husseinyoussef6998 3 ปีที่แล้ว +1

      It's called start variable tho, not terminal

  • @MrEdwinlima
    @MrEdwinlima 8 ปีที่แล้ว +31

    absolutely the best, I watched three videos before this one but none of them explained this clearly as you did

  • @domoandfriends
    @domoandfriends 6 ปีที่แล้ว +166

    You sound truly miserable in this video but now I understand the CYK algorithm, so thanks!

    • @XxwookiedancerxX
      @XxwookiedancerxX 5 ปีที่แล้ว +9

      lmao

    • @user-ym4yt9bo2u
      @user-ym4yt9bo2u 4 ปีที่แล้ว +39

      he sounds like he's being held at gunpoint to explain this

    • @noahross3642
      @noahross3642 3 ปีที่แล้ว

      Lol

    • @Sketchy870
      @Sketchy870 3 หลายเดือนก่อน

      lmfaoo

    • @martinbolz920
      @martinbolz920 2 หลายเดือนก่อน +1

      its a miserable algo designed for a compu not a human xD

  • @CZProtton
    @CZProtton 6 ปีที่แล้ว +30

    You are a legend. I tried to figure this out for hour and a half. You managed to basicaly explain it in 4 minutes. The rest was just you showing it for better understanding. i love it.

  • @Speedycey
    @Speedycey 11 หลายเดือนก่อน +3

    After many years, still a gold to watch. Your video is better than all free AI explanations.

  • @harryman0412
    @harryman0412 7 ปีที่แล้ว +3

    Not even my teacher explained it this clearly. Thank you very much sir. Helped a lot.

  • @Fisheater05
    @Fisheater05 8 ปีที่แล้ว +8

    Probably one of the best explanations for beginners to the algorithm. Thanks!

  • @notacriativa
    @notacriativa 8 ปีที่แล้ว +7

    thank you so much, I appreciate it! It was the best video that I've found, it explains easily the CYK algorithm!

  • @eruditeminds4887
    @eruditeminds4887 หลายเดือนก่อน +2

    Happiest computer scientist

  • @roknovak9991
    @roknovak9991 3 ปีที่แล้ว +5

    It's important that the final cell contains the start symbol of the grammar. Otherwise, the string can't be produced

  • @cleverclover7
    @cleverclover7 6 ปีที่แล้ว +4

    The best one simply because you showed the different substring combinations you could get and why we could represent those with the values we derived before. Also easier to connect this with why it has to be in Chomsky-normal-form because we need binary derivations for the cartesian products. Not sure everyone who made a video on this understands that. Thank you!

  • @tanzeelzahra7863
    @tanzeelzahra7863 5 ปีที่แล้ว +2

    Thank you so much. Was studying for finals and you explained the concept better than the PhD professor.

  • @iJustinCabral
    @iJustinCabral ปีที่แล้ว +2

    In a Foundations of CS masters course right now. This video is so much better than the explanation my professor gave. Thank you!

  • @bastienduclos3340
    @bastienduclos3340 4 ปีที่แล้ว +1

    WoW you just saved my life, I have a test on this in 2hours and 15 min were enough to understand thanks to you

  • @mansurahmadipour7224
    @mansurahmadipour7224 7 ปีที่แล้ว +2

    Great Work Out There Buddy.
    I gonna have a 'formal language and autamata ' exam in university
    and this video really helped me..

  • @jojolelebkn2353
    @jojolelebkn2353 6 ปีที่แล้ว

    I searched for a good explanation in the last 3 days and none of them was good, but your explanation is great! Finally understood this thing :D

  • @hieuluutran7572
    @hieuluutran7572 2 ปีที่แล้ว

    thank you so so much. I was stuck and resourced to TH-cam. I wish there are more people like you

  • @jujenks
    @jujenks 7 ปีที่แล้ว +8

    Finally ! a very well explained example. Thank you very much !

  • @costyy96Scorpius
    @costyy96Scorpius 5 ปีที่แล้ว +5

    THE BEST TUTORIAL! THANK YOU FROM ROMANIA!

  • @zhongzhong5851
    @zhongzhong5851 2 ปีที่แล้ว +1

    Really appreciate your explanation , it’s really helpful for me , I was very frustrated with the textbook.

  • @ryanwoodward7447
    @ryanwoodward7447 6 ปีที่แล้ว

    this video was better than lecture, office hours, textbook, websites, other solutions. Thanks so much!

  • @PureAsbestos
    @PureAsbestos 2 ปีที่แล้ว

    Best explanation. Couldn't have figured this out without it. You're doing the lord's work man. 10/10

  • @faridasyraf1612
    @faridasyraf1612 2 หลายเดือนก่อน

    great video! I was completely lost in my class jn but you have made everything clear, thanks for sharing! :)

  • @charlations
    @charlations 8 ปีที่แล้ว

    Thank you so much, dude!!!! you totally nailed it with your explination. I know it's a little bit late but I hope you got well quickly!!!

  • @factsandanalysis5985
    @factsandanalysis5985 ปีที่แล้ว +1

    At 4:42 how CB = BC ?

  • @dolphinextreme48
    @dolphinextreme48 5 ปีที่แล้ว

    And I was trying to avoid this question from Unit 4 of my Pattern Recognition Course. Now I'm gonna attempt this specifically. Thanks for clarifying so well!

  • @nate9013
    @nate9013 8 ปีที่แล้ว

    Thank you soooooo much!!!!! This is the best video I've ever seen on this topic. It's a lot better than the lecture conducted by my professor.

  • @elenavasileva2892
    @elenavasileva2892 ปีที่แล้ว +1

    Very helpful video! Thanks :D

  • @quicksanddiver
    @quicksanddiver 6 ปีที่แล้ว

    That was a legitimately awesome explanation! Thanks a ton!

  • @JuantheJohn1
    @JuantheJohn1 3 ปีที่แล้ว +1

    0:00 "hello everyone"
    me: *falls asleep*

    • @VsEdits59
      @VsEdits59 4 หลายเดือนก่อน

      🤣🤣

  • @adamjahani4494
    @adamjahani4494 8 หลายเดือนก่อน

    Bro explained this so well. Such a hard concept

  • @amitgaurav773
    @amitgaurav773 2 ปีที่แล้ว

    How many substrings of baaba are members of the given grammar ?

  • @FXK23
    @FXK23 4 ปีที่แล้ว

    So in the end we showed that w=baaba can be made starting from S or A or C?

  • @h-ym2ul
    @h-ym2ul 9 หลายเดือนก่อน

    Loved Your explanation of this video on this topic

  • @denismazurak2925
    @denismazurak2925 4 ปีที่แล้ว

    Only after this video I finally got it! Thank you so much!

  • @SadullahCihan
    @SadullahCihan 3 ปีที่แล้ว

    The useful video ever about this algorithm! Thanks.

  • @vrundavarvedia530
    @vrundavarvedia530 7 ปีที่แล้ว

    Best. My paid online tutor cannot explain this good.Awesome explanation.

  • @HaischelDabian0
    @HaischelDabian0 8 ปีที่แล้ว +2

    very good explanation saved me a lot of time!! Cheers!!

  • @re-Rina
    @re-Rina ปีที่แล้ว

    so you can't derivate the string from the grammar if you don't reach S in the top most square?

  • @PikuStation
    @PikuStation 8 ปีที่แล้ว

    This was helpful and, surprisingly, intuitive as promised.

  • @tama9k920
    @tama9k920 2 หลายเดือนก่อน

    Thank you so much for your explanation. It is easier to understand than the way my teacher explains TT^TT.

  • @shopnochora99
    @shopnochora99 8 ปีที่แล้ว

    Tnx a lot man... Best video about CYK algorithm so far

  • @flywithnature
    @flywithnature 5 ปีที่แล้ว

    Thanks for the clear explanation. Need it for my exam at the university

  • @ahmedsheeraz9075
    @ahmedsheeraz9075 8 ปีที่แล้ว

    Thanks alot watched many videos but none of them explained so clearly..

  • @SandhyaCs2101
    @SandhyaCs2101 7 ปีที่แล้ว

    Woah.. Beautifully explained.. This ones simple as hell .. Thanks a ton

  • @sridharann8348
    @sridharann8348 ปีที่แล้ว

    Great explanation, Thanks!

  • @rishabh8808
    @rishabh8808 5 ปีที่แล้ว +2

    Great video, very easily explained.

  • @jabbar3093
    @jabbar3093 7 ปีที่แล้ว

    The best ever easy and clear, wish you will get well and you can speak loud :)

  • @justinesdepiscis343
    @justinesdepiscis343 4 ปีที่แล้ว

    Qué grande capo!! Barrilete cósmico, crack! Saludos desde Argentina.

  • @iojoe229
    @iojoe229 2 ปีที่แล้ว

    You helped me a lot , thanks

  • @KJ-ii1hq
    @KJ-ii1hq 2 ปีที่แล้ว

    Very helpful! Thank you!

  • @cicakmuhamed
    @cicakmuhamed 7 หลายเดือนก่อน

    Important note: After you finish this CYK algorithm, if the starting symbol of the grammar (in this case S) is in the top-row (last row) of our procedure, then the given input string is part of the grammar, otherwise it is not. In this case S is part of {S, A, C} which means that the given input string "baaba" is part of the grammar defined by the production rules. The time complexity of the CYK algorithm is O(n^3) where n is the length of the input string (in this case "baaba", so n=5).

  • @Mahsun23
    @Mahsun23 2 หลายเดือนก่อน

    The final cell needs to have the start symbol to conclude the string is in the Language

  • @fake_tourist
    @fake_tourist 5 ปีที่แล้ว

    This was really useful. Thank you!

  • @sarparslan8035
    @sarparslan8035 ปีที่แล้ว

    Very good explanation thank you sir!

  • @musicmaker7889
    @musicmaker7889 8 ปีที่แล้ว +2

    How can we read the parse tree from the table? Great video btw!

  • @aleksybalazinski
    @aleksybalazinski 2 ปีที่แล้ว

    Also note that the algorithm works on grammars in Chomsky normal form

  • @nourtaki6987
    @nourtaki6987 6 ปีที่แล้ว

    Thank you man, i really appreciate the explanation

  • @melikajameian9227
    @melikajameian9227 2 ปีที่แล้ว

    You are an actual life saver :)))) thank you very much for this tutorial

  • @marygreene1122
    @marygreene1122 6 ปีที่แล้ว

    Wow I want this voice to put me to sleep every night

  • @smikkelbeer7890
    @smikkelbeer7890 8 หลายเดือนก่อน

    Thanks. Unfortunately this method seems to be excruciatingly long to work out especially if your string is like 6 to 7 symbols long.

  • @saminbinkarim6962
    @saminbinkarim6962 6 ปีที่แล้ว

    Awesome tutorial! Crisp and clear.

  • @bondymagnomous3544
    @bondymagnomous3544 7 ปีที่แล้ว +1

    Finally someone did a clear explanation. Thanks.

  • @DemoNick95
    @DemoNick95 6 ปีที่แล้ว

    best video out there on CYK example

  • @Qlas111
    @Qlas111 8 ปีที่แล้ว +5

    Thank you so much!

  • @princedesperado7787
    @princedesperado7787 6 ปีที่แล้ว +1

    Thank you bro now I also get how the index works in the pseudo code!

  • @anstjd_ys
    @anstjd_ys 7 หลายเดือนก่อน

    Great explanation

  • @Ukazvsetko
    @Ukazvsetko 7 ปีที่แล้ว +51

    Holy fuck, it's not Indian lol

    • @KlanakCZ
      @KlanakCZ 7 ปีที่แล้ว +2

      made my day

  • @jacobmoore8734
    @jacobmoore8734 5 ปีที่แล้ว

    This is going to sound like a stupid question, but here goes... Isn't this algorithm supposed to find the most likely syntax structure of a sentence given its words? I've seen other tutorials using strings like "baaba", but I'm lost as to how that relates to the task at hand (parsing a sentence for noun phrase, verb phrase, etc etc.) This isn't a critique of your video, I'm just not seeing the connection yet!

  • @Mew__
    @Mew__ 2 ปีที่แล้ว +1

    You could say he was "cyk" when he recorded this. 🤔

  • @marjojohannasutinen406
    @marjojohannasutinen406 8 ปีที่แล้ว

    Great video, thanks a lot!

  • @GCOrigin
    @GCOrigin 6 ปีที่แล้ว

    Superb explanation! Thank you lots.

  • @kristiyantsvetanov8082
    @kristiyantsvetanov8082 8 ปีที่แล้ว

    Very good explanation. Thank you!

  • @redeem5
    @redeem5 5 ปีที่แล้ว

    With this method, how would I be able to find in what position an entry appears in the table? I have a problem like this and I know what the correct answer is, but I don't know how to find that answer.

  • @ahmedabdelkarim1339
    @ahmedabdelkarim1339 6 ปีที่แล้ว

    You are amazing brother u have a great mind , one of a kind

  • @manolia4221
    @manolia4221 5 ปีที่แล้ว

    thank you so much it's for my finals and i got everything so clear

  • @pobodjjd
    @pobodjjd 6 ปีที่แล้ว

    Thank you very much! It is very clear and helpful!

  • @ErikaAlejandraGonzalez
    @ErikaAlejandraGonzalez 4 ปีที่แล้ว

    Hey do you know how can I have a sentences in the Chomsky normal form or something like that? btw thank you so much!

  • @hey_its_me_Gayathri
    @hey_its_me_Gayathri 4 ปีที่แล้ว

    u really saved me..................i have a test tomorrow.............................thank uuuuuuuuuuuuuuuuuuu

  • @SaurabhR777
    @SaurabhR777 2 หลายเดือนก่อน

    Thanks Man absolutely a good video😁😁😁😁🤧🤧

  • @explodingpineapple7471
    @explodingpineapple7471 4 ปีที่แล้ว

    Thanks a lot, you saved my homework.

  • @HamidKarimiDS
    @HamidKarimiDS 6 ปีที่แล้ว

    Explained very well. Thanks

  • @evileye2766
    @evileye2766 2 ปีที่แล้ว

    Very well explanned i completly get it now, ill get better result on the exam because of this haha

  • @firexgodx980
    @firexgodx980 6 ปีที่แล้ว

    You skipped the hardest part, which is extracting the multiple parse trees that form a valid sentence

  • @MichaelKoutsostamatis
    @MichaelKoutsostamatis 8 ปีที่แล้ว +4

    fantastic

  • @AtaurRahman-jt8bd
    @AtaurRahman-jt8bd 7 ปีที่แล้ว

    You explained it quite nice. Thank you...

  • @jacamaca123
    @jacamaca123 6 ปีที่แล้ว

    could you explain how you make a parse tree or derivation tree from this table?

  • @tanzimhasan9904
    @tanzimhasan9904 3 ปีที่แล้ว

    what about for 6 string

  • @newellgster
    @newellgster 23 วันที่ผ่านมา

    Good job. I agree that the vast majority of youtube videos covering this topic are honestly pretty bad. I'd also point out that online results from standard google searches yield very little of use... this sort of operational explanation goes a long way towards allowing a student to then be able to explore the dynamic programming algorithm itself and graps the key coding concepts. Well done.

  • @gabrielgarcia1334
    @gabrielgarcia1334 7 ปีที่แล้ว

    Good job! Finally understood it :)

    • @BrunoBraziel
      @BrunoBraziel 7 ปีที่แล้ว +1

      Congratulations, I wish you a very good and pleasant test!

    • @gabrielgarcia1334
      @gabrielgarcia1334 7 ปีที่แล้ว

      it was a shame, maybe next time

    • @BrunoBraziel
      @BrunoBraziel 7 ปีที่แล้ว

      Fortunately no more Database 2 for us

  • @marco.nascimento
    @marco.nascimento 5 ปีที่แล้ว

    Only forgot to say how the string is accepted or not, the most important part

  • @annisasyauqiah
    @annisasyauqiah 4 ปีที่แล้ว

    Thank you so much!!! This really help me for tomorrow exam😭😭

  • @realeatisaiy
    @realeatisaiy 3 ปีที่แล้ว

    Very cool, thank you

  • @via_domus
    @via_domus 5 ปีที่แล้ว

    good work

  • @rfatcakr
    @rfatcakr 7 ปีที่แล้ว +1

    ty for nice explanation!

  • @meshudebnath3391
    @meshudebnath3391 8 ปีที่แล้ว

    Awesome explanation.. Thank you

  • @dkd0m23
    @dkd0m23 5 ปีที่แล้ว

    Thank you, very clear explanation _:)

  • @naomialidinata4099
    @naomialidinata4099 3 ปีที่แล้ว

    thank you so much!

  • @medta.2532
    @medta.2532 4 ปีที่แล้ว

    Thank you 🙏🏻