Longest Common Subsequence - Dynamic Programming

preview_player
Показать описание
Today we discuss how similar the LCS and LIS problems are, and go over a dynamic programming solution.
Рекомендации по теме
Комментарии
Автор

Many say "what" to do -- "Why" is answered here. Way to go UnderDog.

kalee
Автор

Great LCS/LIS tutorial, one of the best. Keep it up CSbreakdown, you've got a subscriber.

nourbouzid
Автор

The first video of CSB which i did understood, good job.

samarthseth
Автор

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)

AnantChowdhary
Автор

best explanation so far!, great effort

nebimertaydin
Автор

Thanks frfr frfrr! Glad you enjoyed it!

CSBreakdown
Автор

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?

ON-nerd
Автор

Thank you very much! I have one question: would the complexity be the same as that of edit distance O(nm)?

AngelExia
Автор

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

bynull
visit shbcf.ru