Algorithms Lecture 19: Dynamic Programming, Longest Common Subsequence and Longest Common Substring

Поділитися
Вставка
  • Опубліковано 12 вер 2024
  • California State University, Sacramento
    Spring 2018
    Algorithms
    by Ghassan Shobaki
    Text book: Introduction to Algorithms by Cormen, Leiserson, Rivest, and Stein, 3rd Edition, MIT Press, Cambridge (2009)

КОМЕНТАРІ • 21

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

    Thank you so much, sir, this was exactly I was looking for, other videos on youtube just taught how to fill the table whether to go diagonal or up or left but didn't explain the formula behind, but you explained to the point. I am grateful. Thanks, Love from India.

  • @umairalvi7382
    @umairalvi7382 3 роки тому +3

    If i was in his class i would never ever miss or jump his class.
    Literally never.
    Students having professors like him are so lucky

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

    Wow! What a lecture. I have been trying to grasp this algorithm for a long time and it was pretty hard. I finally got it after this brilliant explanation. Thanks so much, Professor! One thing I wanted to mention is that after some trying to get it working on my machine, I learnt that access to x and y strings should be @ index i-1 and not i since we increase the size of dp array by 1

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

    I've been grateful for your uploadings, many thanks to the professor for demystifying the dynamic programming technique, wish you all the best!

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

    Thank you so much Professor Ghassan. You are gifted in teaching!

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

    I knew the solution to this already but the way he explained is so intuitive. @14:00 It was so awesome.

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

    Thank you so much. Don't stop uploading videos. Forever grateful.

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

    best session on common substring problem. Thanks you sir.

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

    This is the clearest and best explanation that I've met! Thank you very much for sharing this with us.

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

    the best explanation of longest common substring. Thank you sir

  • @Aman-gw7ro
    @Aman-gw7ro 4 роки тому

    Thank you so much for uploading this..only video which explains everything about LCS

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

    This is definitely the best explanation I've seen yet

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

    You explain so well!

  • @-Mohamed_bayan
    @-Mohamed_bayan 2 роки тому

    The best prof. ever

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

    Thanks prof, wonder how equals cases is possible in the nested else at 38:00?

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

    n0w i underst00d the c0ncet f DP , thank y0u

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

    Shouldn't the complexity of constructing LCS(longest common subsequence) should Min(m,n) because there is an && in while loop so which ever i or j becomes 0 first that is how much time loop will be executed.
    Correct me if wrong

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

      No, that's not true, because they don't get both decremented in each iteration of the loop. In some iterations, only one of them will get decremented and we don't know which one.

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

      @@ghassanshobakicomputerscie9478 got it sir thank you so so so much for replying and uploading these lectures.
      You are an extremely knowledgeable person please never stop uploading.

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

    thnkx