Longest Common Subsequence - Dynamic Programming

  Рет қаралды 33,487

CSBreakdown

CSBreakdown

9 жыл бұрын

Today we discuss how similar the LCS and LIS problems are, and go over a dynamic programming solution.

Пікірлер: 18
@21kalee
@21kalee 4 ай бұрын
Many say "what" to do -- "Why" is answered here. Way to go UnderDog.
@nourbouzid6376
@nourbouzid6376 9 жыл бұрын
Great LCS/LIS tutorial, one of the best. Keep it up CSbreakdown, you've got a subscriber.
@nebimertaydin3187
@nebimertaydin3187 6 жыл бұрын
best explanation so far!, great effort
@CSBreakdown
@CSBreakdown 9 жыл бұрын
Thanks frfr frfrr! Glad you enjoyed it!
@carloancellotti2890
@carloancellotti2890 6 жыл бұрын
Great video!! It would be helpful for us if you also mention the time complexity for the problems with a small explanation. Thanks.
@samarthseth6140
@samarthseth6140 8 жыл бұрын
The first video of CSB which i did understood, good job.
@user-bq6bh9ku2b
@user-bq6bh9ku2b 8 жыл бұрын
wonderful video!
@rajhirani3876
@rajhirani3876 8 жыл бұрын
Superb wonderful explanation !!!!!!!!!!!!!!!!!!!!!!.............................
@MuhammadUsman-it4mz
@MuhammadUsman-it4mz 6 жыл бұрын
Much helpful :)
@Angel00Exia
@Angel00Exia 8 жыл бұрын
Thank you very much! I have one question: would the complexity be the same as that of edit distance O(nm)?
@tc07client5
@tc07client5 5 жыл бұрын
Awesome!
@effy1219
@effy1219 7 жыл бұрын
excellent
@ON-ne1rd
@ON-ne1rd 7 жыл бұрын
What if you use a mix of both up and left arrows when you're borrowing the value from neighbors which have the same value?
@johnmichaelkovachi3338
@johnmichaelkovachi3338 6 жыл бұрын
This channel is fucking awesome!
@AnantChowdhary
@AnantChowdhary 7 жыл бұрын
Not sure how at 3:37 , case ii) is correct. x(k) may be equal to a(n) even though a(n) is not equal to b(m)
@bynull
@bynull 6 жыл бұрын
Incorrect solution. A = z y x w x w z y B = w x y x z z LCS = y x z A string doesn't contain yxz
@carloancellotti2890
@carloancellotti2890 6 жыл бұрын
You are wrong. It is not necessary that the LCS should have continuous characters. The only requirement is that the characters in LCS should have their respective indices in increasing order in both strings. In the 'A' string, y,x,z occur at 2nd,3rd and 7th position respectively which are in increasing order.
@nebimertaydin3187
@nebimertaydin3187 6 жыл бұрын
:D its common subsequence problem not common substring.
Rod Cutting - Dynamic Programming
15:22
CSBreakdown
Рет қаралды 151 М.
Change Making Problem - Dynamic Programming
13:24
CSBreakdown
Рет қаралды 65 М.
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 51 МЛН
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 85 МЛН
1❤️#thankyou #shorts
00:21
あみか部
Рет қаралды 88 МЛН
Sprinting with More and More Money
00:29
MrBeast
Рет қаралды 192 МЛН
Maximum Contiguous Subsequence - Dynamic Programming
6:47
CSBreakdown
Рет қаралды 25 М.
Find The Longest Increasing Subsequence - Dynamic Programming Fundamentals
19:21
5 Simple Steps for Solving Dynamic Programming Problems
21:27
Reducible
Рет қаралды 1 МЛН
Scrypt Password Based Key Derivation Function - Cryptography
20:37
0-1 Knapsack Problem - Dynamic Programming
12:37
CSBreakdown
Рет қаралды 57 М.
Longest common subsequence algorithm -- example
8:03
Daniel
Рет қаралды 117 М.
What is a Monad? - Computerphile
21:50
Computerphile
Рет қаралды 594 М.
Longest Common Subsequence- Dynamic Programming | Data structures and algorithms
25:47
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 51 МЛН