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

  Рет қаралды 10,191

Ghassan Shobaki Computer Science Lectures

Ghassan Shobaki Computer Science Lectures

Күн бұрын

Пікірлер: 21
@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
@pushkarsoni8927
@pushkarsoni8927 5 жыл бұрын
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 жыл бұрын
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
@mabenyjohnson6908
@mabenyjohnson6908 Жыл бұрын
Thank you so much Professor Ghassan. You are gifted in teaching!
@aghavvikas
@aghavvikas 4 жыл бұрын
Thank you so much. Don't stop uploading videos. Forever grateful.
@gsb22
@gsb22 4 жыл бұрын
I knew the solution to this already but the way he explained is so intuitive. @14:00 It was so awesome.
@kushinbunte
@kushinbunte 4 жыл бұрын
I've been grateful for your uploadings, many thanks to the professor for demystifying the dynamic programming technique, wish you all the best!
@ritwik121
@ritwik121 3 жыл бұрын
the best explanation of longest common substring. Thank you sir
@vermoidvermoid7124
@vermoidvermoid7124 5 жыл бұрын
best session on common substring problem. Thanks you sir.
@Aman-gw7ro
@Aman-gw7ro 4 жыл бұрын
Thank you so much for uploading this..only video which explains everything about LCS
@jlgak0
@jlgak0 5 жыл бұрын
This is the clearest and best explanation that I've met! Thank you very much for sharing this with us.
@-Mohamed_bayan
@-Mohamed_bayan 2 жыл бұрын
The best prof. ever
@obinnaubah9045
@obinnaubah9045 4 жыл бұрын
This is definitely the best explanation I've seen yet
@NStriker13
@NStriker13 3 жыл бұрын
You explain so well!
@mageshp5998
@mageshp5998 4 жыл бұрын
Thanks prof, wonder how equals cases is possible in the nested else at 38:00?
@biswajeetsethi7689
@biswajeetsethi7689 5 жыл бұрын
n0w i underst00d the c0ncet f DP , thank y0u
@aimiliosdraginis3178
@aimiliosdraginis3178 4 жыл бұрын
Biswajeet sethi ....wheon “o” key doesnt work.
@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 жыл бұрын
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
Algorithms Lecture 20: Backtracking and Branch-and-Bound (Part 1)
1:13:24
Ghassan Shobaki Computer Science Lectures
Рет қаралды 10 М.
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 57 МЛН
Algorithms Lecture 17: Greedy Algorithms, Room Scheduling Problem (Interval Graph Coloring)
51:20
Ghassan Shobaki Computer Science Lectures
Рет қаралды 9 М.
Find The Longest Increasing Subsequence - Dynamic Programming Fundamentals
19:21
Lecture 19: Dynamic Programming I: Fibonacci, Shortest Paths
51:47
MIT OpenCourseWare
Рет қаралды 2,8 МЛН
Algorithms Lecture 2: Asymptotic Complexity (Part 1)
1:15:10
Ghassan Shobaki Computer Science Lectures
Рет қаралды 15 М.
Rod Cutting - Dynamic Programming
15:22
CSBreakdown
Рет қаралды 158 М.
Lecture 1: Algorithmic Thinking, Peak Finding
53:22
MIT OpenCourseWare
Рет қаралды 6 МЛН